Linux Netfilter discussions
 help / color / mirror / Atom feed
* DNAT to a specific interface?
@ 2008-11-10 18:34 news.gmane.org
  2008-11-10 21:38 ` Grant Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: news.gmane.org @ 2008-11-10 18:34 UTC (permalink / raw)
  To: netfilter

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-10 21:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-10 18:34 DNAT to a specific interface? news.gmane.org
2008-11-10 21:38 ` Grant Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox