配置转发
49152~65535 –> 989
1 |
iptables -t nat -A PREROUTING -p tcp --dport 49152:65535 -j REDIRECT --to-ports 989 |
验证
1 |
iptables -t nat -L --line-number |
开启ufw(不需要,因为iptables已绕过ufw)
1 |
ufw allow 49152:65535 |
删除
1 |
iptables -t nat -D PREROUTING 2 |
There are no comments yet