Hello,
I have been trying to get a Linux box set up as a gateway to forward,
masquerade and route packets from 2 client machines ( Pentium running
Win95
or Linux, and a SUN UltraSparc 1, Solaris 2.6). The local network
machines
can see each other, but cannot see outside the local net. The gateway
linux
box can see both the local net and the outside world.
The gateway machine (gate) is running RedHat 4.2. I recompiled the
kernel
(2.0.30) with support for masquerading, forwarding, firewalls, etc as
documented in the various HOWTOs and FAQs. Here are my IP assignments:
161.44.128.227 - ppp0 interface on gateway Linux (linked to .206)
192.168.1.1 - eth0 interface on gateway Linux
192.168.1.10 - ethernet interface on Pentium Win95/Linux
192.168.1.144 - ethernet interface le0 on UltraSPARC Solaris 2.6
I've loaded ip_masq_ftp, ip_masq_irc, and ip_masq_raudio modules.
I've configured the forwarding rules as follows:
/sbin/ipfwadm -F -p deny
/sbin/ipfwadm -F -a accept -m -S 192.168.1.0/24 -D 0.0.0.0/0
The -I and -O rules are all set up to default accept.
My routing table looks like:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
161.44.128.206 0.0.0.0 255.255.255.255 UH 0 0 0
ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 2
eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 5
lo
0.0.0.0 161.44.128.206 0.0.0.0 UG 0 0 27
ppp0
IP forwarding is enabled. I checked /proc/sys/net/ipv4/ip-forward to
make
sure it contained 1.
The gate machine forwards _NO_ packets from the client machines. If I
try to
telnet to an outside address like 128.114.129.26, it will try a while,
and
then return unsuccessful.
I've used tcpdump to try to find out whats going on. If I look for a
packets with a specific host, like tcpdump -i eth0 host 128.114.129.26,
and
telnet to that address from my local net, all I see are some arp
requests on
the local net: arp who-has 128.114.129.26 tell 161.44.128.227. If I look
on
the ppp0 port, I see no packets with host address of 128.114.129.26.
Does anyone out there have a clue as to what might be wrong here? Gate
should be forwarding packets, but isn't.
Any insights would be greatly appreciated. I'll be eagerly watching this
newsgroup.
Thanks
-Jonathan
------------------------------------------------------------------------
Jonathan Crockett
Build Engineer
Global Alliances
Cisco Systems, Inc.
------------------------------------------------------------------------
"Life moves pretty fast. If you don't stop and look around once in a
while
you could miss it."