Filter WAN NAT Redirection don't work

Post new topic   Reply to topic    DD-WRT Forum Index -> X86 based Hardware
Goto page Previous  1, 2
Author Message
NizZ8
DD-WRT Novice


Joined: 13 Feb 2014
Posts: 1

PostPosted: Thu Feb 13, 2014 10:05    Post subject: Reply with quote
Thanks for sharing, this helped me access my DDNS address from my local LAN... Much appreciated!
Sponsor
bmatthewshea
DD-WRT User


Joined: 31 Jul 2008
Posts: 53

PostPosted: Thu Sep 24, 2015 17:25    Post subject: Reply with quote
m4g1k wrote:

Try this iptables command instead:
Code:
iptables -t nat -A POSTROUTING -o br0 -s 192.168.0.0/24 -d 192.168.0.0/24 -j SNAT --to-source 10.0.0.1

Where 192.168.0.0/24 is your LAN and 10.0.0.1 is your WAN IP.


Know this thread is a bit old, but thanks for that^

Better form to use:
Code:

....      --to-source `nvram get wan_ipaddr`


For users that have their Internet Provider frequently change Internet/WAN IP. Though a router reboot may be needed to update iptables to current WAN addr.
No harm that I can see using this (instead) either way.
Goto page Previous  1, 2 Display posts from previous:    Page 2 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> X86 based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum