3
由於我重新啓動安裝了svn的Ubuntu服務器,因此無法從筆記本電腦訪問它。隨着svnX,當我嘗試瀏覽我的劇目,我得到的錯誤:自IPTABL改變後SVN不起作用
svn: Can't connect to host 'xxx.xxx': Address already in use
當我嘗試更新任何工作拷貝,我得到一個不同的錯誤:
svn: Can't connect to host 'xxx.xxx': Operation timed out
的整個歷史是這樣的:
- ,當我第一次發現SVN是行不通的,我懷疑我的iptables啓動腳本不接受SVN連接...這是真的,所以我已經改變了我的iptables規則,使SVN連接都接受
- 但它沒有改變任何東西:我得到了和以前一樣的錯誤!
這裏是我的iptables現在我已經重新啓動並添加SVN,是否有任何錯誤?
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere state ESTABLISHED
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:www
ACCEPT tcp -- anywhere anywhere tcp dpt:svn
ACCEPT icmp -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere state NEW,RELATED,ESTABLISHED
能否請您提供使用完整的SVN命令?(你可以用替換你的IP /域名「example.com」)。另外,爲了確保,當您刷新IP表並將所有策略設置爲「ACCEPT」時,您是否可以訪問SVN回購? – gotgenes 2011-03-17 16:46:16
在我的服務器上執行「iptables -P INPUT ACCEPT」,svn訪問工作! – 2011-03-17 16:54:55
但是,只要我將其設置回「iptables -P INPUT DROP」,svn訪問不起作用。我的測試是從我的筆記本電腦終端啓動以下命令:「svn checkout svn:// example。 com/repos /「,我得到」svn:無法連接到主機'example.com':操作超時「消息。 – 2011-03-17 16:57:10