由于 IPTABLES 更改,SVN 无法工作

发布于 2024-10-22 05:37:14 字数 1310 浏览 8 评论 0原文

由于我重新启动了安装了 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蓝天 2024-10-29 05:37:14

好吧,我犯了一个愚蠢的错误。

我的问题是我输入了:

iptables -A INPUT -p tcp -i eht0 --dport 3690 -j ACCEPT

而不是

iptables -A INPUT -p tcp -i eth0 --dport 3690 -j ACCEPT 

See that eht 而不是 eth ? :(

很抱歉给您带来不便,但如果这可能有帮助,我很高兴自己是个傻瓜,犯了这个错误!

OK, I've made a stupid mistake.

My problem was I had typed :

iptables -A INPUT -p tcp -i eht0 --dport 3690 -j ACCEPT

instead of

iptables -A INPUT -p tcp -i eth0 --dport 3690 -j ACCEPT 

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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文