NFS 的防火牆設定 - Linux

Caitlin avatar
By Caitlin
at 2009-08-12T17:18

Table of Contents

vi /etc/sysconfig/nfs
枭MOUNTD_PORT=xxxx (指定NFS固定Port)


而 Port 111 是portmap所使用的Port枭


iptables -A INPUT -i eth0 -s 10.0.100.0/24 -p tcp -m multiport \
--dport 111,2049,xxxx -j ACCEPT

iptables -A INPUT -i eth0 -s 10.0.100.0/24 -p udp -m multiport \
--dport 111,2049,xxxx -j ACCEPT


Good luck~





※ 引述《g03 (閒閒的研究生)》之銘言:
: 我想在 Fedora 7 上想建立一個 NFS server
: 已經開啟 rpcbind nfs,但是在防火牆的設定方面有點問題:
: 在 client 端打 showmount -e (IP),如果我關閉防火牆,client端可以正常顯示,
: 如果防火牆開啟後,會出現
: mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive
: 如果我打開 111:tcp 111:udp 2049:tcp 2049:udp 後,會出現
: rpc mount export: RPC: Unable to receive; errno = No route to host
: 我搜尋了一些文章,有人提到 nfs 開啟的 port 是隨機的,
: 所以要到 /etc/sysconfig/nfs, 指定 nfs 使用的 TCP/UDP Port
: 但是rpcbind(或稱portmap)的功能不就是固定 port 為 111 嗎?
: 我不知道是什麼地方出錯了,請各位前輩指導一下,謝謝。

--
Tags: Linux

All Comments

Re: 請問 Ubuntu 要如何設定自動登入

Agatha avatar
By Agatha
at 2009-08-12T13:04
我確定9.04安裝的時候可以勾選自動登入, 我家媽媽就從來不用輸入密碼。 ※ 引述《monicalenphyatkkcity.com.tw ( )》之銘言: : 我的系統是 Ubuntu 8.04 系列的,因為長輩要使用電腦, : 如果需要輸入帳號密碼的話,對他們來說,是很大的障礙。 : 所以想要請教大家 ...

kernek oanic的問題

Rachel avatar
By Rachel
at 2009-08-12T11:08
※ 引述《DerrickRose1 (螺絲)》之銘言: : VFS: Cannot open root device and#34;LABEL=/and#34; or 00:00 : Please append a correct and#34;root=and#34; boot option : kerne ...

kernek oanic的問題

Brianna avatar
By Brianna
at 2009-08-12T10:34
各位好 這台電腦灌的是RH9 本來都用的好好的 不過前兩天有次停電,電腦不正常關機 隔天開機之後,系統就進不去了 畫面停在 VFS: Cannot open root device and#34;LABEL=/and#34; or 00:00 Please append a correct and#34;r ...

bootable 硬碟不能 automount

Thomas avatar
By Thomas
at 2009-08-12T02:23
※ 引述《indept (真人)》之銘言: : ID : 5 : Attribute: Reallocated Sector Count : current : 100 : worst : 100 : threshold: 36 : value : 3 sectors : statu ...

Thinkpad R400裝Ubuntu9.04的無線網路和記憶體

Audriana avatar
By Audriana
at 2009-08-12T01:05
已經試過各種方法了 無線網路還是有問題 03:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01) 1. hardware manager和官網 ...