R&D/OS

iptables

sunshout 2016. 3. 15. 10:34


iptables 를 활용한 port forwarding


iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to-destination 192.0.2.2



iptables -t nat -A PREROUTING -i em1 -p tcp --dport 8082 -j DNAT --to 192.168.0.83:80