From: Gavin O Gorman (gavin at domain Redbrick.DCU.ie)
Date: Wed 01 Aug 2001 - 11:52:39 IST
Howdy,
Having a wee bit of trouble with this. I'm running rehat 7.1 with kernel
2.4.6.
The situation is fairly standard, I have 2 cards in the redhat machien,
eth0 - 192.168.100.2
eth1 - 159.134.206.7 ( external address, not real one )
159.134.207.7 is connected to 159.134.206.1, the router to the net.
I want to be able to ping 159.134.206.1 ( not actually get on the net, i'm
not looking to do NAT here, just barebones ip forwarding )
So i have set /proc/sys/net/ipv4/ip_forard to 1
iptables -L has FORWARD chain to ACCEPT
I set the gateway of the internal machine to 192.168.100.2
when i attempt to ping 159.134.207.7 it is grand. When i attempt to
ping 159.134.206.1, it times out.
I then added a rule to the FORWARD chain
iptables -A FORWARD -s 192.168.100.0/24 -d 0/0 -j ACCEPT
( I didn't think I needed this, but tried it anyway )
with still no luck. One possibility I thought of is that the router will
just drop any packets it recieves from a private IP address. Could that be
it ? Do I need to do anything else to configure forwarding on the machine
?
Any thoughts, or links to decent docs would be good. I've gone through
most of the rusty iptables docs but cant find much on forwarding.
Thanks,
Gav
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:11:25 GMT