Linux Netfilter discussions
 help / color / mirror / Atom feed
* need to forward req between same network ip within same machine
@ 2002-06-20 13:14 Sathi
  2002-06-20 13:13 ` Antony Stone
  0 siblings, 1 reply; 5+ messages in thread
From: Sathi @ 2002-06-20 13:14 UTC (permalink / raw)
  To: netfilter

Hello All,

I have a Redhat linux box with two NIC which i am going to use as firewall
machine.

Foe some reason i want to assign a ip address for these 2 NIC in same
network say

eth0: 10.10.10.1/24----------> to router
eth1: 10.10.10.2/24<---------- from client

eth0 and eth1 are connected in different switch

All clients are connected through eth1.I did not want any masquerading to
happen here.i want to just forward the request from eth1 to eth0 and
response from eth0 to eth1

i test with these rules as

iptables -A FORWARD -i eth1 -o eth0 -p all -s 10.10.10.0/24 -d 0/0 -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -p all -s 0/0 -d 10.10.10.0/24 -j ACCEPT

but this doesn't work
clients are unable to connect internet

I enabled ip_forward in kernel also.

What should be the exact rule to make clients use internet through this
linux box.

Do i need to change anything do with routing table
What should be a entry in the routing table

Thanks
Sathi



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

end of thread, other threads:[~2002-06-21 10:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-20 13:14 need to forward req between same network ip within same machine Sathi
2002-06-20 13:13 ` Antony Stone
2002-06-20 22:48   ` James Mello
2002-06-21  4:17   ` Sathi
2002-06-21 10:04     ` Antony Stone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox