May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Categories

May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

firewalld add

Assuming you’re using the default zone of “public” (you may need to temporarily disable selinux (setenforce 0)):

1. To allow everyone to access port 8080/tcp: 

  firewall-cmd –zone=public –add-port=8080/tcp –permanent

2. Allow a server from the IPv4 address 192.168.1.50 to access this server on port 128 over UDP:

firewall-cmd –zone=public –add-rich-rule=’rule family=”ipv4″ source address=”192.168.1.50/32″ port port=”128″ protocol=”udp” accept’ –permanent

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>