由于 IPTABLES 更改,SVN 无法工作
由于我重新启动了安装了 svn 的 Ubuntu 服务器,因此我无法从笔记本电脑访问它。使用 svnX,当我尝试浏览我的曲目库时,我收到错误:
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
Since I rebooted my Ubuntu server where my svn is installed, I can't access it from my laptop computer. With svnX, when I try to browse my repertory, I get the error :
svn: Can't connect to host 'xxx.xxx': Address already in use
When I try to update any working copy, I get a different error :
svn: Can't connect to host 'xxx.xxx': Operation timed out
The whole history is this :
- when I first found out svn wasn't working, I suspected my iptables boot script was not accepting svn connections... which was true so I've changed my iptables rules so that svn connections ARE accepted
- but it didn't change anything : i get the same errors as before!
Here is my iptables now I've rebooted and added SVN, is there any error in this?
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我犯了一个愚蠢的错误。
我的问题是我输入了:
而不是
See that eht 而不是 eth ? :(
很抱歉给您带来不便,但如果这可能有帮助,我很高兴自己是个傻瓜,犯了这个错误!
OK, I've made a stupid mistake.
My problem was I had typed :
instead of
See that eht instead of a eth ? :(
Sorry for the inconvenience but if this might help, i was glad to be the fool to make this mistake!