OpenWrt Forum Archive

Topic: Create iptables to redirect internet requests to local ip

The content of this topic has been archived on 7 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi I'm trying to create ipetables without success.
What I need to do the iptable is that when detecting any request from internet  Be redirected to my local server 192.168.1.100:8080
Any ideas?
Thank you.

Try this iptable rule:
iptables -t nat -I PREROUTING -p tcp -j DNAT --to-destination 192.168.1.100:8080

The discussion might have continued from here.