Date: Sun, 11 Oct 1998 23:59:30 +0200 From: "Jeroen C. van Gelderen" <gelderen@mediaport.org> To: <stable@FreeBSD.ORG> Subject: NATD: rc.network change required?? Message-ID: <085901bdf562$6c3bcb20$1400000a@deskfix.local>
next in thread | raw e-mail | index | archive | help
Please bear with me as I'm kindof new to FreeBSD... I've enabled natd in my rc.conf which works fine except when booting. This has something to do with NATD only getting loaded in pass 3 of rc.network. In the first pass of rc.network ipfw gets initialized and it is instructed to divert everything to the natd which is not running at the time. Then the various services (sendmail, etc) are started. Problem is that they lack internet connectivity because traffic is diverted but natd is not yet running (gets only initialized in pass 3). The patch attached below fixes the problem for me, but it might not be the right solution. I'd like someone to take this over and/or give some feedback... Cheers, Jeroen *** rc.network Sun Oct 11 22:14:49 1998 --- rc.network.new Sun Oct 11 22:14:19 1998 *************** *** 87,98 **** --- 87,104 ---- echo "but firewall rules are not enabled." echo " All ip services are disabled." fi fi fi + + # Network Address Translation daemon + if [ "X${natd_enable}" = X"YES" -a "X${natd_interface}" != X"" -a "X${firewall_enable}" = X"YES" ]; then + echo -n ' natd'; natd ${natd_flags} -n ${natd_interface} + fi + # Configure routing if [ "x$defaultrouter" != "xNO" ] ; then static_routes="default ${static_routes}" route_default="default ${defaultrouter}" fi *************** *** 252,267 **** unset stash_flag fi # IP multicast routing daemon if [ "X${mrouted_enable}" = X"YES" ]; then echo -n ' mrouted'; mrouted ${mrouted_flags} - fi - - # Network Address Translation daemon - if [ "X${natd_enable}" = X"YES" -a "X${natd_interface}" != X"" -a "X${firewall_enable}" = X"YES" ]; then - echo -n ' natd'; natd ${natd_flags} -n ${natd_interface} fi echo '.' network_pass3_done=YES } --- 258,268 ---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?085901bdf562$6c3bcb20$1400000a>