Posted: Thu Sep 29, 2022 2:32 Post subject: How to remote into a server that's behind NAT
I have a server that bridges the connection between my dd-wrt router and the comcast router. I want to remote into the server that's in the lan to the server that's behind NAT. How do I setup IP forwarding for this?
For example:
my computer connected to my DD-wrt router is 192.168.1.12
and my server that's connected to the wan port of my router is 10.0.0.3
What setting do I modify to reach the server? I tried IP forwarding but it didn't work. As I understand it, it only helps when trying to connect to a client in the lan, not anything behind NAT.
Joined: 18 Mar 2014 Posts: 12837 Location: Netherlands
Posted: Thu Sep 29, 2022 7:05 Post subject:
Your network setup is not entirely clear to me.
Do you have a Comcast modem/router which is on subnet 10.0.0.0 and your "server" is on that subnet as is your router (e.g. your routers WAN address is also 10.0.0.x)?
Do you want to reach your "server" from the router or from the Internet?
Do you have a Comcast modem/router which is on subnet 10.0.0.0 and your "server" is on that subnet as is your router (e.g. your routers WAN address is also 10.0.0.x)?
Do you want to reach your "server" from the router or from the Internet?
A drawing with LAN/WAN addresses might help.
You also did not mention the router model and build number
Yes - the server is on the same subnet as the comcast router/gateway hence the 10.0.0.0 subnet(comcast's default is a /24 btw). I am trying to remote into the server from a computer on the inner vlan. Here's a diagram.
Do you have a Comcast modem/router which is on subnet 10.0.0.0 and your "server" is on that subnet as is your router (e.g. your routers WAN address is also 10.0.0.x)?
Do you want to reach your "server" from the router or from the Internet?
A drawing with LAN/WAN addresses might help.
You also did not mention the router model and build number
Yes - the server is on the same subnet as the comcast router/gateway hence the 10.0.0.0 subnet(comcast's default is a /24 btw). I am trying to remote into the server from a computer on the inner vlan. Here's a diagram.
In this case I want to reach the server from the router.
It looks to me like your comcast router is doing NAT, your server is in a private address space of 10.0.0.0/24, your DDWRT box may also doing NAT to separate your client network from the server network. I see how things are physically connected, but not the network segments of each section, or if the DDWRT is in gateway mode or router mode and configured as a firewall.