What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Can I get an IP Tables assist, please ?

PeteUKinUSA

New Around Here
Hey folks

I want to do a DNS redirect for Chromecast. Essentially anything 8.8.8.8 needs to get sent to my internal DNS. There's plenty of examples but they're all for when the router is in gateway mode, not AP mode. My understanding is that when the router is in AP mode all the NAT table stuff gets thrown away.

Essentially what I want to happen is something like "if DNS traffic for port 53 to IP 8.8.8.8 is seen coming in on br0, grab it and redirect it to 172.21.0.99". So, what I've got so far is...

iptables -t filter -A OUTPUT -p udp -i br0 -d 8.8.8.8 --dport 53 -j REDIRECT -to-destination 172.21.0.99

Unfortunately it tells me that the IP is a bad argument. Any suggestions ? I'm usually capable of educating myself but this is driving me nuts.

Thanks

Pete
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top