Date: Mon, 19 Feb 2001 06:36:30 -0700 From: "Robert Daniels" <rdaniels38@home.com> To: <freebsd-questions@FreeBSD.ORG> Subject: NATD&GATEWAY PROBLEMS Message-ID: <009c01c09a78$f7833ca0$43701518@cx628451A>
next in thread | raw e-mail | index | archive | help
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2> 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 <A=20
href=3D"mailto:cox@home">cox@home</A>. (Cable Modem)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> Computer 1 name is =
FOO (will=20
serve as gateway)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> Computer 2 name is =
BAR (Running=20
Free BSD 4.0)</FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> Computer 3 name is =
BAZ(Running=20
Dual Boot Win2000 Professional & Red Hat Linux 7.0)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> I compiled =
IPFIREWALl, IPDIVERT,=20
IPFIREWALL_VERBOSE, and IPFIREWALL_DEFAULT_TO_ACCEPT in my Kernel on =
computer=20
FOO. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2> </FONT></DIV>
<DIV><FONT face=3DArial size=3D2> I put the following =
lines in my=20
rc.conf file on computer FOO</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> =20
hostname=3D"CX628451-A"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> ifconfig_dc0"inet =
192.168.1.1=20
netmask 255.255.255.0" # Private IP</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =
ifconfig_dc1"inet =20
24.21.112.xxx netmask 255.255.255.0" # Public =
IP</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
gateway_enable=3D"YES"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =
defaultrouter=3D"24.21.112.1" #=20
Gateway for my ISP. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =
natd_enable=3D"YES"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
natd_interface=3D"dc1"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> natd_flags"-l -u -s=20
-m"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
firewall_enable=3D"YES"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =
firewall_type=3D"OPEN"=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>The rc.conf fie on BAR looks as=20
follows.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial =
size=3D2> hostname=3D"BAR"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> ifconfig_x10=3D"inet =
192.168.1.2=20
netmask 255.255.255.0" # Private non-routable IP</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =
defaultrouter=3D"192.168.1.1"=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =
gateway_enable"NO"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>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. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Any help on this matter would be =
greatly=20
apreciated. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thank You,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Robert Daniels =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> </FONT></DIV>
<DIV><FONT face=3DArial size=3D2> </FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial =
size=3D2> </FONT></DIV></BODY></HTML>
------=_NextPart_000_0099_01C09A3E.4B108E80--
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?009c01c09a78$f7833ca0$43701518>
