Skip to contentSkip to conversation

forcing outgoing traffic thought eth3

DISCUSSION Benjamin Jeeves 2 participants 2 messages May 4, 2005

lore
Share & tools
lore
#0 lore raw

Hi all

I would like to use iptables for do something like this.

when a request is made from my client computer say 192.168.1.14 to my NFS server which runs on say 192.168.1.7 I want to be able to force all the outgoing traffic thought 192.168.1.6 would this be possable in iptables. If so can you point down the right road please.

Thank you

Benjamin Jeeves

#1 lore raw
Quoted 1 line

when a request is made from my client computer say 192.168.1.14 to my NFS server which runs on say 192.168.1.7 I want to be able to force all the outgoing traffic thought 192.168.1.6 would this be possable in iptables. If so can you point down the right road please.

I think you will be looking at the ROUTE target (not sure where this is, hopefully someone else on the list can pick up here for me) to define where the traffic goes out of the system.

If you don't want to mess with the ROUTE target you could probably MARK the traffic and then match it with an "ip rule ... fwmark" and have a specific route back to the network via a different routing table.

Grant. . . .