DNAT to a specific interface?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a multihomed server. eth0 for internal NAT, eth1 for default internet, and eth3 for VOIP.

VOIP comes into the server with dport set to 19999. What I'd like to do is have all those VOIP packets set to a real VOIP port ( which I think I can figure out ) and go out eth3. I can't set up a static route going out eth3 since the SIP proxies are dynamic, so they don't have a fixed ip address.

So:

iptables -t nat -A POSTROUTING -i eth0 -p udp --dport 19999 -j DNAT --to :5469 iptables -t nat -A PREROUTING -i eth3 -p udp --dport 5469 -j DNAT --to :19999

would change the port, but how can I tell it to use interface eth3?

sean

--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux