Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
docpublic:systemes:firewalld [2016/10/02 15:16] procacci@tem-tsp.eu [commands] |
docpublic:systemes:firewalld [2019/04/17 06:46] (current) procacci@tem-tsp.eu [references] |
* https://access.redhat.com/discussions/1455033 | * https://access.redhat.com/discussions/1455033 |
* https://bugzilla.redhat.com/show_bug.cgi?id=1112742 | * https://bugzilla.redhat.com/show_bug.cgi?id=1112742 |
| * https://www.it-connect.fr/centos-7-utilisation-et-configuration-de-firewalld/ |
| |
==== install ==== | ==== install ==== |
# firewall-cmd --permanent --add-rich-rule 'rule family="ipv4" source address="192.168.0.1/32" service name="ssh" log prefix="ssh_" accept' | # firewall-cmd --permanent --add-rich-rule 'rule family="ipv4" source address="192.168.0.1/32" service name="ssh" log prefix="ssh_" accept' |
# firewall-cmd --permanent --remove-rich-rule 'rule family="ipv4" source address="192.168.0.1/32" service name="ssh" log prefix="ssh_192.168.0.1" accept' | # firewall-cmd --permanent --remove-rich-rule 'rule family="ipv4" source address="192.168.0.1/32" service name="ssh" log prefix="ssh_192.168.0.1" accept' |
| # firewall-cmd --permanent --add-rich-rule 'rule family="ipv4" source address="192.168.0.0/24" port port=8080 protocol=tcp log prefix="http8080" accept' |
# firewall-cmd --reload | # firewall-cmd --reload |
</code> | </code> |
| |