Using iptables I know exactly how to do what I want to do...if that makes sence!
Redirect TCP traffic destined for port 80 to port 2020:
from a shell I issue:
however, I am not entiry sure EXACTLY what this does, I know it creates a rule in iptables but where is these rule stored? Is in in a config file anywhere?
Also, if I want to undo this rule; stop redirecting TCP traffic destined for port 80 to port 2020 - returning to normal behaviour, how do I do so?
Thanks,
Redirect TCP traffic destined for port 80 to port 2020:
from a shell I issue:
Code:
iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-ports 2020
however, I am not entiry sure EXACTLY what this does, I know it creates a rule in iptables but where is these rule stored? Is in in a config file anywhere?
Also, if I want to undo this rule; stop redirecting TCP traffic destined for port 80 to port 2020 - returning to normal behaviour, how do I do so?
Thanks,