I'm having problems being a gateway for my freebsd box at home (I can acccess internet, but others can't).
I have no problem to use the internet from my freebsd box with or without the natd rule enabled. This is what is puzzling me. I can access the outside net, through natd and via tun0, so natd must be working. Again I confirmed this by the count on ipfw rule which is showing that I am going through natd via the divert rule. What is it other than gateway, and natd that might be causing packets not be routed properly for the other clients? I've checked that the gateway ip and tcpip connection is ok for the clients also. Any help would be much appreciated as always. fxp0 = conneciton to local network fxp1 = pppoe device that ppp uses tun0 I've confirmed that, net.inet.ip.forwarding: 1 and here's my setup: in rc.conf gateway_enable="YES" ppp_enable="YES" ppp_mode="ddial" ppp_profile="streamyx" firewall_enable="YES" firewall_script="/etc/ipfw.rules" firewall_quiet="NO" log_in_vain="NO" natd_enable="YES" natd_interface="tun0" natd_flags="-dynamic" and my simple firewall rules (I've deleted stuff which is not important and working like dns, ntp etc.): #firewall command fwcmd="/sbin/ipfw" # Force a flushing of the current rules before we reload. $fwcmd -f flush ##### RULES FOR INTERNAL NETWORK ###### # Setup localhost $fwcmd add allow ip from any to any via lo0 $fwcmd add allow any from any to any via fxp0 # Divert all packets through the tunnel interface. $fwcmd add divert natd all from any to any via tun0
Description: This is a digitally signed message part