/ | Home | / | OpenBSD as a Router |
NOTE: this was done with OpenBSD 4.5
shared-network LOCAL-NET { option domain-name "my.domain"; option domain-name-servers 192.168.1.3, 192.168.1.5; subnet 192.168.1.0 netmask 255.255.255.0 { option routers 192.168.1.1; range 192.168.1.32 192.168.1.127; host static-client { hardware ethernet 22:33:44:55:66:77; fixed-address 192.168.1.200; } } |
# /usr/sbin/dhcpd sis1 |
dhcpd_flags="sis1" |
/var/log/messages |
/var/db/dhcpd.leases |
#pf config data here |
# sysctl -w net.inet.ip.forwarding=1 |
net.inet.ip.forwarding=1 # 1=Permit forwarding (routing) of IPv4 packets |
# pfctl -e |
# pfctl -d |
# pfctl -f /etc/pf.conf |
pf=YES |
# sh /etc/netstart |