Use iptables command in Linux for Port Forwarding

AuthorCreatedModifiedFormat
Xin Li[2022-07-24 Sun 22:38:38][2022-07-24 Sun 22:39:22]org-mode

Warning: This is a personal note that may be difficult to understand.

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 4000
Bash