From owner-freebsd-questions Mon Feb 19 5:38:29 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.rdc1.az.home.com (mail2.rdc1.az.home.com [24.1.240.76]) by hub.freebsd.org (Postfix) with ESMTP id D454037B491 for ; Mon, 19 Feb 2001 05:38:20 -0800 (PST) Received: from cx628451A ([24.21.112.67]) by mail2.rdc1.az.home.com (InterMail vM.4.01.03.00 201-229-121) with SMTP id <20010219133820.TMOI796.mail2.rdc1.az.home.com@cx628451A> for ; Mon, 19 Feb 2001 05:38:20 -0800 Message-ID: <009c01c09a78$f7833ca0$43701518@cx628451A> From: "Robert Daniels" To: Subject: NATD&GATEWAY PROBLEMS Date: Mon, 19 Feb 2001 06:36:30 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0099_01C09A3E.4B108E80" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0099_01C09A3E.4B108E80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, my name is Robert. I am trying to configure my FreeBSD 4.0 = as a gateway. I have a 3 computer network. My ISP is cox@home. (Cable = Modem) Computer 1 name is FOO (will serve as gateway) Computer 2 name is BAR (Running Free BSD 4.0)=20 Computer 3 name is BAZ(Running Dual Boot Win2000 Professional & Red = Hat Linux 7.0) I compiled IPFIREWALl, IPDIVERT, IPFIREWALL_VERBOSE, and = IPFIREWALL_DEFAULT_TO_ACCEPT in my Kernel on computer FOO.=20 =20 I put the following lines in my rc.conf file on computer FOO hostname=3D"CX628451-A" ifconfig_dc0"inet 192.168.1.1 netmask 255.255.255.0" # Private IP ifconfig_dc1"inet 24.21.112.xxx netmask 255.255.255.0" # Public = IP gateway_enable=3D"YES" defaultrouter=3D"24.21.112.1" # Gateway for my ISP.=20 natd_enable=3D"YES" natd_interface=3D"dc1" natd_flags"-l -u -s -m" firewall_enable=3D"YES" firewall_type=3D"OPEN"=20 The rc.conf fie on BAR looks as follows. hostname=3D"BAR" ifconfig_x10=3D"inet 192.168.1.2 netmask 255.255.255.0" # Private = non-routable IP defaultrouter=3D"192.168.1.1" =20 gateway_enable"NO" With this setup I am able to ping computer FOO from computer BAR. I am = able to ping both private and public addresses. I am also able to ping = FOO defaultrouter IP and DNS IP that I have set in resolv.conf. But I am = unable to ping an address out on the internet on computer BAR. Of course = I am able to ping address on the internet with computer FOO. I can = telnet into Foo via BAR and vice versa. I also verified that the line = natd 8668/divert was present in /etc/services. =20 Any help on this matter would be greatly apreciated.=20 Thank You, Robert Daniels =20 =20 =20 =20 ------=_NextPart_000_0099_01C09A3E.4B108E80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
    Hello,  my name = is=20 Robert.  I am trying to configure my FreeBSD 4.0 as a gateway. I = have a 3=20 computer network.  My  ISP is cox@home. (Cable Modem)
 
    Computer 1 name is = FOO (will=20 serve as gateway)
    Computer 2 name is = BAR (Running=20 Free BSD 4.0) 
    Computer 3 name is = BAZ(Running=20 Dual Boot Win2000 Professional & Red Hat Linux 7.0)
 
    I compiled = IPFIREWALl, IPDIVERT,=20 IPFIREWALL_VERBOSE, and IPFIREWALL_DEFAULT_TO_ACCEPT in my Kernel on = computer=20 FOO.
    
    I put the following = lines in my=20 rc.conf file on computer FOO
 
   =20 hostname=3D"CX628451-A"
    ifconfig_dc0"inet = 192.168.1.1=20 netmask 255.255.255.0"  # Private IP
    = ifconfig_dc1"inet =20 24.21.112.xxx netmask 255.255.255.0"   # Public = IP
   =20 gateway_enable=3D"YES"
    = defaultrouter=3D"24.21.112.1" #=20 Gateway for my ISP.
    = natd_enable=3D"YES"
   =20 natd_interface=3D"dc1"
    natd_flags"-l -u -s=20 -m"
   =20 firewall_enable=3D"YES"
    = firewall_type=3D"OPEN"=20
 
 
The rc.conf fie on BAR looks as=20 follows.
 
   hostname=3D"BAR"
    ifconfig_x10=3D"inet = 192.168.1.2=20 netmask 255.255.255.0" # Private non-routable IP
    = defaultrouter=3D"192.168.1.1"=20  
    = gateway_enable"NO"
 
With this setup I am able to ping = computer FOO from=20 computer BAR. I am able to ping both private and public addresses. I am = also=20 able to ping FOO defaultrouter IP and DNS IP that I have set in=20 resolv.conf. But I am unable to ping an address out on the internet = on=20 computer BAR. Of course I am able to ping address on the internet with = computer=20 FOO. I can telnet into Foo via BAR and vice versa.  I=20 also verified that the line natd 8668/divert was present = in=20 /etc/services.  
 
Any help on this matter would be = greatly=20 apreciated. 
 
 
Thank You,
Robert Daniels    =
 
 
   
     
 
 
    
------=_NextPart_000_0099_01C09A3E.4B108E80-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message