disable local routing between eth0 and eth1 - iptables
- From: astonishs@xxxxxxxxx
- Date: Tue, 27 May 2008 05:44:01 -0700 (PDT)
I've a Linux PC with 2 NICs eth0 and eth1 configured with IP 10.0.0.1
and 20.0.0.1 respectively.
|-------------------|
eth0 (10.0.0.1) ------------| |
| L2 SWITCH |
| |
eth1 (20.0.0.1) ------------| |
|-------------------|
I want to disable local routing between eth0 and eth1 so that whenever
I ping 20.0.0.1 from PC console, ICMP packets should come out of
interface eth0 and should reach eth1 through connected switch.
Similarly, whenever I ping 10.0.0.1 from PC console, ICMP packets
should come out of interface eth1 and should reach eth0 through
connected switch.
How can I do it using iptables, if at all possible?
Thanks in advance.
.
- Follow-Ups:
- Re: disable local routing between eth0 and eth1 - iptables
- From: Joe Beasley
- Re: disable local routing between eth0 and eth1 - iptables
- From: David Schwartz
- Re: disable local routing between eth0 and eth1 - iptables
- From: Pascal Hambourg
- Re: disable local routing between eth0 and eth1 - iptables
- Prev by Date: Re: How to access the queue of incoming packets (Snort and libpcap)...
- Next by Date: Re: How to access the queue of incoming packets (Snort and libpcap)...
- Previous by thread: [Commercial] : Learn To Manage Linux File System from Industry Experts
- Next by thread: Re: disable local routing between eth0 and eth1 - iptables
- Index(es):
Relevant Pages
|