@
360dust 很简单,就是 iptables redirect 端口,比如
把 9440 端口映射成 11440 ,22440 ,33440 等等
10441 端口的 tcp udp 映射到 11441 ,22441 等等。
你把 9440 换成你的 ssh 端口号,或者把 你的 v2ray 对应替换掉 10441 ,就可以了……
‘’’
iptables -A INPUT -i eth0 -p tcp -m multiport --dports 11440,22440,33440,44440,55440 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -i eth0 -p tcp -m multiport --dports 11441,22441,33441,44441,55441 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -t nat -A PREROUTING -p tcp -m multiport --dports 11440,22440,33440,44440,55440 -j REDIRECT --to-ports 9440
iptables -t nat -A PREROUTING -p tcp -m multiport --dports 11441,22441,33441,44441,55441 -j REDIRECT --to-ports 10441
iptables -t nat -A PREROUTING -p udp -m multiport --dports 11441,22441,33441,44441,55441 -j REDIRECT --to-ports 10441
‘’’