- Subject: Routing the DNS Traffic via specific interface.
- From: Netravali Ganesh <gnetravali@xxxxxxxxxxxx>
- Date: Wed, 25 Jan 2012 07:41:37 +0000
- Accept-language: en-US
- Thread-index: AczbNMR+5zyQby1eSGSyEx6FqRRqHQ==
- Thread-topic: Routing the DNS Traffic via specific interface.
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
--
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
[Linux Netfilter Development]
[Linux Kernel Networking Development]
[Linux Networking Development]
[Linux Kernel Development]
[Linux Resources]
[LARTC]
[Bugtraq]
[Consulting]
[Free Internet Dating]
[Yosemite Forum]
[Photo]