I got 2 customer that using 2 FreeBSD box serving as their gateway. Both are installed squid to cache their web browsing for the network. It's time to upgrade both of the box, I thinking of using OpenBSD as a gateway to see how OpenBSD perform.
IP Forwarding:
Permanenant:
#vi /etc/sysctl.conf
Change from:
#net.inet.ip.forwarding=1
To
net.inet.ip.forwarding=1
You can change it on the spot by issuing the command
#sysctl net.inet.ip.forwarding=1
But this will revert to default once you reboot the machine, use permanent then.
I'm working on my virtualbox to test before deploy and implement them :)
Basic networking for OpenBSD
IP Forwarding:
Permanenant:
#vi /etc/sysctl.conf
Change from:
#net.inet.ip.forwarding=1
To
net.inet.ip.forwarding=1
You can change it on the spot by issuing the command
#sysctl net.inet.ip.forwarding=1
But this will revert to default once you reboot the machine, use permanent then.
Setting up IP address :
File : /etc/hostname.em0 (depends on your network card)
Structure : type address netmask broadcast others
#vi /etc/hostname.em0
inet 10.0.0.1 255.255.255.0 NONE
Setting interface for DHCP
#vi /etc/hostname.em0
dhcp
http://www.openbsd.org/faq/faq6.html
Once done, restart the service
#sh /etc/netstart
Setting up package :
Set PKG_PATH
#export PKG_PATH=ftp://ftp.jaist.ac.jp/pub/OpenBSD/5.1/packages/`machine -a`
Get list of available ftp mirror that nearest for you
http://www.openbsd.org/ftp.html
how to install :
#pkg_add -i vim
i - interactive, you can choose from variety of package available.
Once done, restart the service
#sh /etc/netstart
Setting up package :
Set PKG_PATH
#export PKG_PATH=ftp://ftp.jaist.ac.jp/pub/OpenBSD/5.1/packages/`machine -a`
Get list of available ftp mirror that nearest for you
http://www.openbsd.org/ftp.html
how to install :
#pkg_add -i vim
i - interactive, you can choose from variety of package available.
Comments