Projekt

Allgemein

Profil

Aktionen

Config firewalld » Historie » Revision 1

Revision 1/4 | Weiter »
Jeremias Keihsler, 10.09.2020 14:32


Config firewalld

have a look at

to forward a specific port (not yet working!)

firewall-cmd --zone=public --permanent --add-port=2222/tcp
firewall-cmd --zone=public --add-masquerade --permanent
firewall-cmd --zone=public --add-forward-port=port=2222:proto=tcp:toport=22:toaddr=192.168.122.80 --permanent
firewall-cmd --reload
firewall-cmd --zone=public --list-all

Testing

you may consider http://portquiz.net/

http://portquiz.net:1234/

This example tests whether you are able to visit outbound port 1234. You simply change the port number to whatever you like. Also, the site gives some examples that could be used in a command line script:

wget -qO- portquiz.net:1234 
Port 1234 test successful!
Your IP: 198.252.206.16

Von Jeremias Keihsler vor mehr als 4 Jahren aktualisiert · 1 Revisionen