SOLVED: Port forwarding doesn't work
Posted: Fri Dec 02, 2016 6:40 pm
Hi,
I setup a linux router,
it has nat-gateway and is working perfectly.
Except the port forwarding from the internet to the local network.
I think i did everything ok.
When i test the connection from the outside,
it just time out.
I setup a linux router,
it has nat-gateway and is working perfectly.
Except the port forwarding from the internet to the local network.
I think i did everything ok.
Code: Select all
echo 1 > /proc/sys/net/ipv4/ip/forward
iptables -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to 192.168.1.2:8080
it just time out.