iptables on 7800N
Posted: Sat Feb 01, 2014 11:35 am
Having recently bought a Chromecast, and finding out Google have hard baked their own DNS servers into the config, I need to be able to modify the iptables rules on my 7800N to allow me to nat any internal DNS requests to 8.8.8.8/8.8.4.4 to DNS servers of my own choice. I know the commands I need to use, which are;
iptables -t nat -A PREROUTING -d 8.8.8.8 -j DNAT --to-destination <my DNS server IP>
iptables -t nat -A PREROUTING -d 8.8.4.4 -j DNAT --to-destination <my DNS server IP>
It doesn't look like the firewall options in the web gui have the functionality to allow this, but I seem to be able to list/manipulate the iptables rules from the command line..... but, having entered the necessary commands (which seemed to be accepted), iptables --list doesn't show them. Do I need to specify a particular CHAIN to use (I thought PREROUTING should be enough), or can't I actually modify the firewall rules via the CLI? If I can't use these rules, I'm going to lose a lot of Chromecast functionality, which would be a real shame.
Firmware is the latest 1.06h.
iptables -t nat -A PREROUTING -d 8.8.8.8 -j DNAT --to-destination <my DNS server IP>
iptables -t nat -A PREROUTING -d 8.8.4.4 -j DNAT --to-destination <my DNS server IP>
It doesn't look like the firewall options in the web gui have the functionality to allow this, but I seem to be able to list/manipulate the iptables rules from the command line..... but, having entered the necessary commands (which seemed to be accepted), iptables --list doesn't show them. Do I need to specify a particular CHAIN to use (I thought PREROUTING should be enough), or can't I actually modify the firewall rules via the CLI? If I can't use these rules, I'm going to lose a lot of Chromecast functionality, which would be a real shame.
Firmware is the latest 1.06h.