NFS 서비스포트 firewall 통과시키기
nfs 서버와 클라이언트 사이에 방화벽이 있을경우 portmap 에서 랜덤하게 포트를 배당하므로 고정적으로 port 설정할수 있는 방법을 설명한다
1. echo “MOUNTD_PORT=4002” >> /etc/sysconfig/nfs
2. echo “STATD_PORT=4003” >> /etc/sysconfig/nfs
3. service nfs restart
4. iptables -A INPUT -s 192.168.0.x -p tcp –dport 2049 -j ACCEPT
5. iptables -A INPUT -s 192.168.0.x -p udp –dport 2049 -j ACCEPT
6. iptables -A INPUT -s 192.168.0.x -p tcp –dport 111 -j ACCEPT
7. iptables -A INPUT -s 192.168.0.x -p udp –dport 111 -j ACCEPT
8. iptables -A INPUT -s 192.168.0.x -p tcp –dport 4002:4003 -j ACCEPT
9. iptables -A INPUT -s 192.168.0.x -p udp –dport 4002:4003 -j ACCEPT
10. service iptables restart
%% tcp 111 및 2049 포트는 static
4 Responses
… [Trackback]
[…] Here you can find 81786 additional Information to that Topic: nblog.syszone.co.kr/archives/3004 […]
… [Trackback]
[…] Find More to that Topic: nblog.syszone.co.kr/archives/3004 […]
… [Trackback]
[…] Read More on that Topic: nblog.syszone.co.kr/archives/3004 […]
… [Trackback]
[…] Find More on to that Topic: nblog.syszone.co.kr/archives/3004 […]