Khan Honney Posted November 27, 2018 Share Posted November 27, 2018 How to remove port forwarding? Link to comment Share on other sites More sharing options...
0 Eugene Bally Posted December 4, 2018 Share Posted December 4, 2018 Check that which port forwardings exist in your system with below command. sudo iptables -t nat --line-numbers -L The command above should give an output live below Chain PREROUTING (policy ACCEPT)num target prot opt source destination 1 REDIRECT tcp -- anywhere anywhere tcp dpt:https redir ports 54432 REDIRECT tcp -- anywhere anywhere tcp dpt:http redir ports 5080... Delete the rule by line number. For instance to delete the http -> 5080 forwarding, run the command below iptables -t nat -D PREROUTING 2 parameter 2 is the line number, if you want to delete https -> 5443, you should use 1 instead of 2 Link to comment Share on other sites More sharing options...
Question
Khan Honney
How to remove port forwarding?
Link to comment
Share on other sites
Top Posters For This Question
1
1
Popular Days
Nov 27
1
Dec 4
1
Top Posters For This Question
Khan Honney 1 post
Eugene Bally 1 post
Popular Days
Nov 27 2018
1 post
Dec 4 2018
1 post
1 answer to this question
Recommended Posts