All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] linux ip forwarding problem
@ 2005-06-17 17:14 Ji Li
  2005-06-17 17:28 ` Dariusz Dwornikowski
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ji Li @ 2005-06-17 17:14 UTC (permalink / raw)
  To: lartc

Hi,
I have three linux machines, and I want to let one of them forward packets
betwen the other two. The forwarding node has two ethernet cards,
connecting the two two machines respectively. However, when I ping between
the two end points, the forwarding node can receive the ping requests at
its eth0, but it never forwards them to its eth1. So is the reverse
direction.

The forwarding node is Redhat 7.2, kernel 2.4.7-10. The two end points are
FC3, 2.6.9-1.667smp.

What we have done to enable IP forwarding on the RH7.2 node are:
(1) In /etc/sysconfig/network, add "FORWARD_IPV4=yes"
(2) "echo 1 > /proc/sys/net/ipv4/ip_forward".
(3) Change "net.ipv4.ip_forward=1" in /etc/sysctl.conf.
(4)
"echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter"
"echo 0 > /proc/sys/net/ipv4/conf/eth1/rp_filter"
(5) We tried "iptables -F" to flush the rules, but ip forwarding still
doesn' work, so we add some rules as follows. We run "iptables" to
configure firewall to enable IP forwarding.
iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT

What are we missing, or what did we configure wrong?

Thanks a lot,
-Ji

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-06-19  5:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-17 17:14 [LARTC] linux ip forwarding problem Ji Li
2005-06-17 17:28 ` Dariusz Dwornikowski
2005-06-17 17:40 ` Nelson Castillo
2005-06-19  3:35 ` ji.li3
2005-06-19  5:23 ` Andreas Unterkircher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.