Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2012 12:48:30 +0900 (JST)
From:      kuni_kachi@ybb.ne.jp
To:        "freebsd-questions@FreeBSD.org" <freebsd-questions@FreeBSD.org>
Subject:   [FreeBSD9.0]Question about IP Forwarding feature
Message-ID:  <71969.52693.qm@web200217.mail.kks.yahoo.co.jp>

next in thread | raw e-mail | index | archive | help

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@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!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?71969.52693.qm>