why my forward port couldn't work use firewall-cmd
0
votes
0
answers
238
views
1. config forward port
2. open a server use:
firewall-cmd --permanent --add-masquerade
firewall-cmd --permanent --add-forward-port=port=81:proto=tcp:toaddr=127.0.0.1:toport=80
firewall-cmd --reload
now, this is my firwall-cmd.

nc -lk 80
3. use nc -v 127.0.0.1 81
couldn't work, but nc -v 127.0.0.1 80
could work
Asked by Yunbin Liu
(101 rep)
Dec 12, 2024, 12:44 AM