Routing the DNS Traffic via specific interface.

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


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]

Add to Google Powered by Linux