Skip to content

Iptables

추가

sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080

삭제

sudo iptables -D PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080

iptables 저장

sudo service iptables save

iptables 확인

sudo iptables -t nat -L

iptables 재시작

sudo service iptables restart