Hi cgallery,
You are absolutely right. The redirect module needs to be loaded and i assumed that you had done that. Correct, i can run these commands without any issues as i had it enabled.
root@unknown:/tmp/home/root# iptables -t nat -I OUTPUT —src 0/0 —dst 192.168.1.1 -p tcp —dport 8080 -j REDIRECT —to-ports 8123
root@unknown:/tmp/home/root#
The result:
root@unknown:/tmp/home/root# iptables -t nat -L -n -v
Chain PREROUTING (policy ACCEPT 38 packets, 1999 bytes)
pkts bytes target prot opt in out source destination
422 28972 WANPREROUTING all — * * 0.0.0.0/0 192.168.1.101
0 0 DROP all — vlan1 * 0.0.0.0/0 192.168.90.0/24
422 28972 upnp all — * * 0.0.0.0/0 192.168.1.101
Chain POSTROUTING (policy ACCEPT 2 packets, 885 bytes)
pkts bytes target prot opt in out source destination
10587 710K MASQUERADE all — * vlan1 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 8 packets, 1260 bytes)
pkts bytes target prot opt in out source destination
0 0 REDIRECT tcp — * * 0.0.0.0/0 192.168.1.1 tcp dpt:8080 redir ports 8123
Chain WANPREROUTING (1 references)
pkts bytes target prot opt in out source destination
0 0 DNAT icmp — * * 0.0.0.0/0 0.0.0.0/0 to:192.168.90.1
Chain upnp (1 references)
pkts bytes target prot opt in out source destination
Have a great day!