Hello,
I was trying to accomplish something like this in openwrt:
iptables -t nat -A PREROUTING -p tcp -d 1.1.1.1 --dport 3389 -j DNAT --to-destination 192.168.1.125
The ideia is to have all traffic that is destined to an internet host eg 1.1.1.1 to be forwarded to a local machine.
I tried something like (using the GUI Firewall - Port Forwards):
config redirect
option dest 'lan'
option target 'DNAT'
option name 'rdpfwd1'
option family 'ipv4'
option src 'lan'
option src_dip '1.1.1.1'
option src_dport '3389'
option dest_ip '192.168.1.125'
option dest_port '3389'
list proto 'tcp'
But it doesn't seem to work. Any tips?