Hot Downloads

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: OpenBSD

OpenBSD 10 years 4 months ago #15915

  • Bublitz
  • Bublitz's Avatar
  • Offline
  • Senior Member
  • Posts: 301
  • Thank you received: 3
  • Karma: 2
Alright I've decided to make a OpenBsd firewall. Since i'm a linux newb this should be fun (=.

So far I've fully installed OpenBSD and it self boots YAY!

The first problem im running into is configuring interfaces on statup.

I've used the ifconfig commands to setup interfaces but those are erased when system shutsdown.

The openbsd manual says in /ect/hostname.interface file exists for each interface that I have....It doesn't

So i've tried to manually add them using vi (wow hard to get used to vi) so in /ect I created the file Bublitz.vr0

Then added the line in the file
inet (ip) (mask) (broadcast) (description)

On start up this does nothing. I know the system can see my 3 nics cause I can see all three when ifconfig is entered.

Am I missing something?
The Bublitz
Systems Admin
Hospice of the Red River Valley
The administrator has disabled public write access.

Re: OpenBSD 10 years 4 months ago #15917

  • nske
  • nske's Avatar
  • Offline
  • Expert Member
  • Posts: 613
  • Karma: 0
Yes, "hostname" is not meant to be replaced by your actual hostname. Try creating the file "/etc/hostname.vr0" ;)
The administrator has disabled public write access.

Re: OpenBSD 10 years 4 months ago #15918

  • Bublitz
  • Bublitz's Avatar
  • Offline
  • Senior Member
  • Posts: 301
  • Thank you received: 3
  • Karma: 2
Thanks. Yup that was the ticket. Can you put a gateway on a interface, or do you use default routes for that kind of stuff?
The Bublitz
Systems Admin
Hospice of the Red River Valley
The administrator has disabled public write access.

Re: OpenBSD 10 years 4 months ago #15919

  • nske
  • nske's Avatar
  • Offline
  • Expert Member
  • Posts: 613
  • Karma: 0
Yes, you can execute any command through the hostname.interface scripts.

I.e., to add a route for the 192.168.0/24 network, you can add in your hostname.vr0:

[code:1]! /sbin/route -n add 192.168.0.0/24 192.168.0.5[/code:1]

The route will use the interface that has an address to the specific network automatically.
The administrator has disabled public write access.

Re: OpenBSD 10 years 4 months ago #15984

  • Bublitz
  • Bublitz's Avatar
  • Offline
  • Senior Member
  • Posts: 301
  • Thank you received: 3
  • Karma: 2
Whats the ! for ?
The Bublitz
Systems Admin
Hospice of the Red River Valley
The administrator has disabled public write access.

Re: OpenBSD 10 years 4 months ago #15985

  • d_jabsd
  • d_jabsd's Avatar
  • Offline
  • Distinguished Member
  • Posts: 153
  • Karma: 0
Whats the ! for ?

! means (paraphrased) 'execute the following full command outside of the rc init script'


if you only have a default route, you can put it's address in /etc/mygate instead, which is processed by the rc init script.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.081 seconds

CCENT/CCNA

Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V

Linux

  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup