From: Gavin O Gorman (gavin at domain Redbrick.DCU.ie)
Date: Wed 01 Aug 2001 - 11:52:39 IST
Having a wee bit of trouble with this. I'm running rehat 7.1 with kernel
The situation is fairly standard, I have 2 cards in the redhat machien,
eth0 - 192.168.100.2
eth1 - 126.96.36.199 ( external address, not real one )
188.8.131.52 is connected to 184.108.40.206, the router to the net.
I want to be able to ping 220.127.116.11 ( 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 18.104.22.168 it is grand. When i attempt to
ping 22.214.171.124, 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.
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:11:25 GMT