跳到主要内容

iptables操作

本机端口转发

iptables -t nat -A PREROUTING -p tcp --dport 7777 -j REDIRECT --to-port 6666

访问7777会访问到6666