Using iptables to forward traffic destined for specific ip via specific interface
Posted
by
shapeshifter
on Server Fault
See other posts from Server Fault
or by shapeshifter
Published on 2012-09-19T06:29:57Z
Indexed on
2012/09/19
9:41 UTC
Read the original article
Hit count: 262
I want to forward traffic destined for a specific ip from my internal network via a specific interface. I have two interfaces which are currently load balanced. I need all requests for a certain ip to go out via eth0 otherwise my external ip changes and sessions are dropped.
eg. all requests from 10.1.1.1/24 to ip 11.22.33.44 on port 443 must go out via interface eth0.
How can I do this with iptables?
© Server Fault or respective owner