[FreeBSD9.0]Question about IP Forwarding feature

kuni_kachi at ybb.ne.jp kuni_kachi at ybb.ne.jp
Fri Jul 27 03:55:13 UTC 2012


Hello, 

I have question about how i can enable ip forwarding
I set gateway_enable = "YES" in /etc/rc.conf 
When I restart/start FreeBSD,OS started completely but ip forwarding feature is not enabled.
------------------------
#sysctl net.inet.ip.forwarding
net.inet.ip.forwarding: 0
------------------------
I check start scripts 
#/etc/rc.d/routing start 
and found the folowing result:
eval: check_kern_features: not found
eval: check_kern_features: not found
But when using  /etc/rc.d/routing start inet
this is OK
#/etc/rc.d/routing start inet
Additional inet routing options: gateway=YES.
#sysctl net.inet.ip.forwarding
net.inet.ip.forwarding: 1
How i can configure to enable ip forwarding [net.inet.ip.forwarding: 1 ] 
 
*FreeBSD Version
9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Sat Jul 21 14:09:44 JST 2012     thang at server:/usr/obj/usr/src/sys/GENERIC  i386

*/etc/rc.conf
--------------------------------------
named_enable="YES"
named_flags="-c /etc/namedb/named.conf"
firewall_enable="YES"
firewall_type="open"
gateway_enable="YES"
ppp_nat="NO"
natd_enable="YES"
natd_program="/sbin/natd"
natd_interface="tun0"
natd_flags="-f /etc/natd.conf"
routed_enable="YES"
------------------------------------
Thank you!


More information about the freebsd-questions mailing list