-A PREROUTING -d 192.168.1.77 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.1.77:7777
Are you trying to reroute packets intended for port 80 to port 7777 on the same machine? If so, use the REDIRECT target instead:
Code:
-A PREROUTING -d 192.168.1.77 -p tcp -m tcp --dport 80 -j REDIRECT --to-port 7777
That sends packets arriving on port 80 of 192.168.1.77 to port 7777 on the localhost interface, 127.0.0.1. Give that a try.