A question for those network pros!

MirageF1

Executive Member
Joined
Jun 29, 2018
Messages
8,161
Reaction score
4,585
We have a web server on a private network behind a router (with wlan0 and eth0 interfaces) , connected wirelessly (interface wlan0) to our home router by WiFi. This web server is serving (listening) on address 10.0.0.50 as per router DHCP assignment.

Now, we want to access this web server on our home network , yet no success.

Our commands on the router:

sudo iptables -t nat -A PREROUTING -i wlan0 -p tcp --dport 80 -j DNAT --to-destination 10.0.0.50:80

sudo iptables -t nat -A POSTROUTING -p tcp -d 10.0.0.50 --dport 80 -j SNAT --to-source 10.0.0.1



The address 10.0.0.1 is the router’s eth0 device IP.

Been struggling with this for a few days, the solution given seems simple enough but does not work!
 
Used wlan0 IP address (external/public facing) of router instead of eth0 address (internal) in URL....
 
I am a bit of a network noob. But from what you described, your web server which is behind a router which connects wirelessly to your home router is something I have been attempting to do, but not only connect wirelessly to my home router but to also broadcast its signal as a range extender / repeater. Is this possible to do with my router, which is an Asus DSL-AC52U?
 
Top
Sign up to the MyBroadband newsletter
X