Double NAT Linksys WRT1900AC

Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.)
Goto page Previous  1, 2
Author Message
chzuck
DD-WRT Novice


Joined: 24 Aug 2014
Posts: 27
Location: Pennsylvania

PostPosted: Thu Jun 06, 2024 20:19    Post subject: Reply with quote
kernel-panic69 wrote:
Your modem can be placed in modem mode only to remove double NAT, but double NAT shouldn't be your issue with connecting between devices on the LAN side of your WRT1900AC. Placing the modem in modem-only mode may require changing WAN connection type in DD-WRT, so if it is connecting to the internet just fine, I don't see a reason to change that. It could be other DD-WRT / Windows configuration issues or using such and old build. Need more information to determine the problem, specifically screenshots of DD-WRT configuration, including wireless, that apply.

https://www.netgear.com/support/product/dm200/
https://www.downloads.netgear.com/files/GDC/DM200/DM200_UM_EN.pdf

Thank you. I will update to the newer build and go from there.
Sponsor
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 7199
Location: Romerike, Norway

PostPosted: Fri Jun 07, 2024 15:52    Post subject: Reply with quote
Place this in the Firewall rules. It will NAT everything out the WAN interface.

iptables -t nat -A POSTROUTING -o `get_wanface` -j MASQUERADE
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 2064

PostPosted: Fri Jun 07, 2024 16:33    Post subject: Reply with quote
Alternatively, you can use:
Code:
iptables -t nat -A POSTROUTING -o $(get_wanface) -j MASQUERADE

_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
chzuck
DD-WRT Novice


Joined: 24 Aug 2014
Posts: 27
Location: Pennsylvania

PostPosted: Fri Jun 07, 2024 17:22    Post subject: Reply with quote
Per Yngve Berg wrote:
Place this in the Firewall rules. It will NAT everything out the WAN interface.

iptables -t nat -A POSTROUTING -o `get_wanface` -j MASQUERADE

I apologize for my ignorance, I am not real computer savvy. Firewall rules on what device, PC, WiFi router, or modem?
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 7199
Location: Romerike, Norway

PostPosted: Fri Jun 07, 2024 20:40    Post subject: Reply with quote
The Router where traffic goes out to the Internet.
Goto page Previous  1, 2 Display posts from previous:    Page 2 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.) 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