Slight Off-topic, but at least the host are Gentoo.

Is it possible, using iptables or something equivalent, to redirect traffic to some specific TCP ports to another gateway than the default-gateway?

Eg.

Host 192.168.1.100/24 has a default-gateway of 192.168.1.1
Now I want to send all traffic from this host to destination-tcp-port 80 to gateway 192.168.2.1 instead (the host has a second interface with the address 192.168.2.100/24 as well). I only want the traffic to port 80 to go thru this GW (and then to its final destination).
And port 80 is just an example, it could be port 12345 as well.

Is this possible? If yes, any suggestion on how to do it?

Regards,
--
Dan Johansson,
***************************************************
This message is printed on 100% recycled electrons!
***************************************************

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to