From owner-freebsd-stable Sun Oct 11 15:00:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA15649 for freebsd-stable-outgoing; Sun, 11 Oct 1998 15:00:09 -0700 (PDT) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from schuimpje.snt.utwente.nl (schuimpje.snt.utwente.nl [130.89.238.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA15600 for ; Sun, 11 Oct 1998 15:00:03 -0700 (PDT) (envelope-from gelderen@mediaport.org) Received: from wit395301.student.utwente.nl ([130.89.235.121]:43272 "HELO deskfix" ident: "NO-IDENT-SERVICE[2]") by schuimpje.snt.utwente.nl with SMTP id <7994-7233>; Sun, 11 Oct 1998 23:59:30 +0200 Message-ID: <085901bdf562$6c3bcb20$1400000a@deskfix.local> From: "Jeroen C. van Gelderen" To: Subject: NATD: rc.network change required?? Date: Sun, 11 Oct 1998 23:59:30 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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