command

iptables -t nat -F
iptables -t nat -I PREROUTING -d 116.251.209.180/32 -p tcp --dport 8989 -j REDIRECT --to-ports 80
iptables -t nat -I OUTPUT -d 127.0.0.1/32 -p tcp --dport 8989 -j REDIRECT --to-ports 80

test

curl http://localhost
curl http://book.opschina.org
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2017-07-11 11:32:48

results matching ""

    No results matching ""