Changes between Version 3 and Version 4 of iptables


Ignore:
Timestamp:
09/08/16 14:34:32 (8 years ago)
Author:
sky
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • iptables

    v3 v4  
    4141iptables -t raw -A OUTPUT -p tcp -m multiport --sports 80,3128 -j NOTRACK
    4242}}}
     43
     44
     45{{{
     46## Random port for Server receiver
     47iptables -t nat -A PREROUTING -d server-ip/32 -p tcp -m multiport --dport 444:1023 -j REDIRECT --to-ports 443
     48iptables -t nat -A PREROUTING -d server-ip/32 -p udp -m multiport --dport 444:1023 -j REDIRECT --to-ports 443
     49
     50## Random port for Client sender
     51iptables -t nat -I OUTPUT 1 -d server-ip/32 -p tcp --dport 443 -j DNAT --to-destination server-ip:444-1023 --random
     52iptables -t nat -I OUTPUT 1 -d server-ip/32 -p udp --dport 443 -j DNAT --to-destination server-ip:444-1023 --random
     53}}}
     54
     55