Help adding two static nat rules
-
Hi
I want to add these two static nat rules via the pfsense gui (running latest version) how would i go about doing that ?
iptables -t nat -A PREROUTING -d 8.8.8.8 -j DNAT –to-destination 208.122.23.22
iptables -t nat -A PREROUTING -d 8.8.4.4 -j DNAT --to-destination 208.122.23.23Best regards
Jan -
That would be through Firewall: NAT: Outbound.
-
I can't seem to get it to work, can anyone tell what to put in the gui
-
so you want to redirect queries to googledns to voxel? Why would be my first question ;)
But how to do it would be like this - going to use opendns as my example because its easy to show that its working because there is a url to test if using opendns.
So as you can see from first attachment - my box is set to use 8.8.8.8 for dns - and if I use the http://www.opendns.com/welcome/ check url to see if using opendns.. Tells my nope not using it.
But if I do a nat, which no is not on the outbound tab btw, but you would set the interface to your lan interface vs the wan under the nat tab.
See it says using opendns, but my box is pointed to google.. Just use whatever dns IP you want to redirect to in the rule vs my example of opendns. BTW once you make the nat(portforward) make sure you flush your local dns cache and restart your browser or close the tab, etc. - they like to cache dns as well.
-
Hi johnpoz
Thank you! just got it working :D
To answer your question: I need that NAT to be able to use the unblockus service with my chromecast device which is hardcoded by google to
use 8.8.8.8 and 8.8.4.4 so it's kind of a work around.I just could't figure out how to build the NAT rule in the gui, so ones again thanks for your help :)
Kind regards
Jan