Kategorien
Sonstiges

Firewall Centos 7

sudo systemctl enable firewalld
sudo systemctl start firewalld
sudo firewall-cmd --add-port=80/tcp --permanent
sudo firewall-cmd --add-forward-port=port=80:proto=tcp:toaddr=127.0.0.1:toport=8080 --permanent
sudo firewall-cmd --reload
sudo systemctl status firewalld
sudo firewall-cmd --list-all