Linux Netfilter discussions
 help / color / mirror / Atom feed
* Routing the DNS Traffic via specific interface.
@ 2012-01-25  7:41 Netravali Ganesh
  2012-01-25  8:41 ` Yann Lejeune
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Netravali Ganesh @ 2012-01-25  7:41 UTC (permalink / raw)
  To: netfilter@vger.kernel.org

Hi ..

I have 2 interfaces eth0 and eth1 on the system connected to different subnets. I need to route all the outgoing DNS traffic of the system via eth1 interface. Pls let me know if below IPTABLES rules is proper way ?

Block the output DNS traffic on eth0 interface.

iptables -A FORWARD -p udp -o eth0 --dport 53 -j DROP

Forward output DNS traffic from eth1 interface

iptables -A FORWARD -p udp -o eth1 --dport 53 -j ACCEPT


Thanks
Ganesh



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

end of thread, other threads:[~2012-02-05  9:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-25  7:41 Routing the DNS Traffic via specific interface Netravali Ganesh
2012-01-25  8:41 ` Yann Lejeune
2012-01-25  9:33 ` gapsf
2012-01-27 15:51   ` SamLT
2012-02-02  4:52   ` Netravali Ganesh
2012-02-03  7:30     ` gapsf
2012-02-05  9:46       ` Olshvang, LevX
2012-01-25 18:00 ` Rick Jones

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