Allowing NFS through iptables/firewalld: Difference between revisions
Jump to navigation
Jump to search
(Added firewalld/iptables for NFS) |
(created page on allowing NFS through iptables/firewalld) |
||
Line 1: | Line 1: | ||
=== | ===firewalld=== | ||
# Look at current firewalld settings: | # Look at current firewalld settings: | ||
[root@qof ~]# firewall-cmd --list-all | [root@qof ~]# firewall-cmd --list-all | ||
Line 39: | Line 39: | ||
icmp-blocks: | icmp-blocks: | ||
rich rules: | rich rules: | ||
Revision as of 18:29, 2 July 2018
firewalld
# Look at current firewalld settings: [root@qof ~]# firewall-cmd --list-all public (active) target: default icmp-block-inversion: no interfaces: eno1 eno2 sources: services: ssh dhcpv6-client ports: protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: # add NFS services to firewalld's allowances. Use permanent flag so that services remain allowed even after firewalld reloads [root@qof ~]# firewall-cmd --permanent --add-service=nfs success [root@qof ~]# firewall-cmd --permanent --add-service=mountd success [root@qof ~]# firewall-cmd --permanent --add-service=rpc-bind success [root@qof ~]# firewall-cmd --reload success # Verify changes stay [root@qof ~]# firewall-cmd --list-all public (active) target: default icmp-block-inversion: no interfaces: eno1 eno2 sources: services: ssh dhcpv6-client nfs mountd rpc-bind ports: protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: