Quote:
Originally Posted by MikeDeltaBrown
You don't need NAT and you shouldn't need to forward since the server is running on the gateway/router.
|
If the machine is the gateway/router he does not even need the route to 10.0.0.0/24 as long as the default gateway is 192.168.1.1.
You could also make the webserver listen at all devices on the gateway.
Doing it with NAT you would use DNAT so that everything on port 80 to 192.168.1.1 is forwarded to 10.0.0.1
Code:
iptables -d 192.168.1.1 -p tcp --dport 80 -j DNAT --to-destination 10.0.0.1