* relocating packets
@ 2005-10-13 9:50 Mark Oden
2005-10-13 13:35 ` /dev/rob0
2005-10-13 21:53 ` Henrik Nordstrom
0 siblings, 2 replies; 3+ messages in thread
From: Mark Oden @ 2005-10-13 9:50 UTC (permalink / raw)
To: netfilter
Assuming I had two NICs in my machine that happen to be on the same
network, is there a way to force packets of certain ports to use only
one NIC or IP?
Thanks,
~Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: relocating packets
2005-10-13 9:50 relocating packets Mark Oden
@ 2005-10-13 13:35 ` /dev/rob0
2005-10-13 21:53 ` Henrik Nordstrom
1 sibling, 0 replies; 3+ messages in thread
From: /dev/rob0 @ 2005-10-13 13:35 UTC (permalink / raw)
To: netfilter
On Thursday 2005-October-13 04:50, Mark Oden wrote:
> Assuming I had two NICs in my machine that happen to be on the same
> network, is there a way to force packets of certain ports to use only
> one NIC or IP?
I believe this scenario is covered by the LARTC HOWTO. In brief: use
"-j MARK --set-mark 0xff" in mangle. Use dual routing tables, and a
rule to put "fwmark 0xff" traffic in the alternate table. The mark can
be anything from 0x0 to 0xffff.
http://lartc.org/howto/
--
mail to this address is discarded unless "/dev/rob0"
or "not-spam" is in Subject: header
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: relocating packets
2005-10-13 9:50 relocating packets Mark Oden
2005-10-13 13:35 ` /dev/rob0
@ 2005-10-13 21:53 ` Henrik Nordstrom
1 sibling, 0 replies; 3+ messages in thread
From: Henrik Nordstrom @ 2005-10-13 21:53 UTC (permalink / raw)
To: Mark Oden; +Cc: netfilter
On Thu, 13 Oct 2005, Mark Oden wrote:
> Assuming I had two NICs in my machine that happen to be on the same network,
> is there a way to force packets of certain ports to use only one NIC or IP?
If you have multiple NICs in the same Ethernet broadcast segment then I
would recommend you to enable "arp_ignore".
echo 1 >/proc/sys/net/ipv4/conf/all/arp_ignore
If not things will get very confusing with traffic "randomly" coming in on
either interface.
Once this is done you can firewall each NIC separately as you please,
policy routing, marking etc to control how the interfaces are used.
Regards
Henrik
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-10-13 21:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-13 9:50 relocating packets Mark Oden
2005-10-13 13:35 ` /dev/rob0
2005-10-13 21:53 ` Henrik Nordstrom
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.