From: "Sathi" <sathiyan@gmx.net>
To: netfilter <netfilter@lists.samba.org>
Subject: need to forward req between same network ip within same machine
Date: Thu, 20 Jun 2002 18:44:04 +0530 [thread overview]
Message-ID: <026701c2185c$5da22340$870110ac@samsi> (raw)
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
next reply other threads:[~2002-06-20 13:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-20 13:14 Sathi [this message]
2002-06-20 13:13 ` need to forward req between same network ip within same machine Antony Stone
2002-06-20 22:48 ` James Mello
2002-06-21 4:17 ` Sathi
2002-06-21 10:04 ` Antony Stone
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='026701c2185c$5da22340$870110ac@samsi' \
--to=sathiyan@gmx.net \
--cc=netfilter@lists.samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox