인디노트

Redhat 7 NFS Server Port Iptables 본문

개발 플랫폼 및 언어

Redhat 7 NFS Server Port Iptables

인디개발자 2018. 4. 24. 14:26

# Optional arguments passed to rpc.mountd. See rpc.mountd(8)

RPCMOUNTDOPTS="-p 4000"



[root@entrust sysconfig]# netstat -tnlp | grep rpc

tcp        0      0 0.0.0.0:60089           0.0.0.0:*               LISTEN      1170/rpc.statd

tcp        0      0 0.0.0.0:4000            0.0.0.0:*               LISTEN      1265/rpc.mountd

tcp6       0      0 :::40376                :::*                    LISTEN      1170/rpc.statd

tcp6       0      0 :::4000                 :::*                    LISTEN      1265/rpc.mountd

[root@entrust sysconfig]#


-A INPUT -i tun0 -p tcp -m state --state NEW -m tcp --dport 111 -j ACCEPT

-A INPUT -i tun0 -p udp -m state --state NEW -m udp --dport 111 -j ACCEPT

-A INPUT -i tun0 -p tcp -m state --state NEW -m tcp --dport 4000 -j ACCEPT

-A INPUT -i tun0 -p udp -m state --state NEW -m udp --dport 4000 -j ACCEPT

-A INPUT -i tun0 -p tcp -m state --state NEW -m tcp --dport 2049 -j ACCEPT

-A INPUT -i tun0 -p udp -m state --state NEW -m udp --dport 2049 -j ACCEPT

반응형
Comments