Re: Packet Forwarding in Linux.
- From: "dwed" <dwedwick@xxxxxxxxx>
- Date: 30 Oct 2006 16:26:38 -0800
Sounds like you want to look at iptables and read about the FORWARD
rules. Search Google for rc.firewall to get some examples, like:
http://iptables-tutorial.frozentux.net/scripts/rc.firewall.txt
You probably wouldn't want to have both network cards with IP's on the
same network subnet. If eth0 and eth1 were both on the same subnet,
why pass through the Linux box?
rramesh1@xxxxxxxxx wrote:
Hi.
I have a requirement like below:
(Host A)
Traffic Generator -> (eth0) Linux box with Two NICs (eth1)---->Router's
Interface
I have a 192.168.x.x /24 IP setup on the eth0, my requirement is to get
the traffic generated from Host 'A' to eth1 (ideally forwarded from
eth0). At this point I have two questions:
1) If I need to get the traffic from eth0 to eth1, should I setup eth1
to have a 192.168.x.x IP? and set a default route to eth1 IP ?
2) Is there any other approach (which will just fwd all packets on eth0
to eth1 irrespective of the IP - at the MAC level) to do this?
Thanks & Regards
Ramesh
.
- References:
- Packet Forwarding in Linux.
- From: rramesh1
- Packet Forwarding in Linux.
- Prev by Date: Re: getting sshd to work on vector linux
- Next by Date: Re: ip route problem
- Previous by thread: Packet Forwarding in Linux.
- Next by thread: Online Linux Books
- Index(es):
Relevant Pages
|