sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3000 # 查看 nat 链规则 sudo iptables -t nat -L -n --line-number # 删除规则 PREROUTING 的规则 1 sudo iptables -t nat -D PREROUTING 1