| 43 | |
| 44 | |
| 45 | {{{ |
| 46 | ## Random port for Server receiver |
| 47 | iptables -t nat -A PREROUTING -d server-ip/32 -p tcp -m multiport --dport 444:1023 -j REDIRECT --to-ports 443 |
| 48 | iptables -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 |
| 51 | iptables -t nat -I OUTPUT 1 -d server-ip/32 -p tcp --dport 443 -j DNAT --to-destination server-ip:444-1023 --random |
| 52 | iptables -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 | |