운영체제/Linux

Port-forwarding via iptables in Linux

fdsa_000 2020. 11. 10. 17:50

$ iptables -A PREROUTING -t nat -p udp  -d {EXTERNAL_IP} --dport {EXTERNAL_PORT} -j DNAT --to {INTERNAL_IP}:{INTERNAL_PORT}

 

 

References

https://blog.lael.be/post/69