Routing with OpenBSD Enable IP forwarding via sysctl Configuration file /etc/sysctl.conf # sysctl net.inet.ip.forwarding=1 Interface configuration, see hostname.if(5) Enable routing daemons via /etc/rc.conf.local see rc.conf(8) sample pf.conf rules for BGP and OSPF block in # let bgp traffic form the neighbors in pass in proto tcp from to $IP port bgp keep state # on internal interfaces OSPF is allowed pass on $int_if inet proto ospf