CVS 在 Suse 下的 配置

安裝網絡上教的方法,在本地(服務器端)測試CVS login 是沒有問題的,但在遠程cvs login就出現 登錄超時的現象。最後發現,是 suse的防火牆搞的鬼,於是在防火牆裏面開放 cvspserver便可以了,默認是2401.
防火牆的設置:
方法1:
a.直接修改文件/etc/sysconfig/SuSEfirewall2,添加
FW_SERVICES_EXT_TCP="2401"
FW_SERVICES_EXT_UDP="2401"      ##當然,這裏的2401也可以換成cvspserver,原因在 /etc/services裏面已經把2401和                                                                             ## cvspserver對應完畢。

方法2:
如果採用yast2的圖形界面想開放 cvspserver的話,則要在/etc/sysconfig/SuSEfirewall2.d/services中創建一個文件“cvs“,內容是:
## Name: cvs  pserver
## Description: Opens ports for vsftpd Server.
## Arthor: zhuyu

# space separated list of allowed TCP ports
TCP="cvspserver"

# space separated list of allowed UDP ports
UDP="cvspserver"

# space separated list of allowed RPC services
RPC=""

# space separated list of allowed IP protocols
IP=""

# space separated list of allowed UDP broadcast ports
BROADCAST=""
在創建完這個文件後,在yast2 -> Security and Users ->Firewall  -> Allowed services 中在 Service to allow 中選出 cvs pserver.然後保存,則可!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章