由于IPTABLES更改,SVN不起作用 [英] SVN doesn't work since IPTABLES changed

查看:93
本文介绍了由于IPTABLES更改,SVN不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我重新启动了安装了svn的Ubuntu服务器,因此无法从便携式计算机访问它.使用svnX时,当我尝试浏览库时,出现错误:

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

整个历史是这样的:

  • 当我第一次发现svn不能正常工作时,我怀疑我的iptables启动脚本不接受svn连接...是的,所以我更改了iptables规则,以便接受svn连接
  • 但是它什么都没有改变:我和以前一样遇到了同样的错误!

现在我重新启动并添加了SVN,这是我的iptables,这有什么错误吗?

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

推荐答案

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

OK, I've made a stupid mistake.

我的问题是我输入了:

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

代替

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

看到 eht 而不是 eth 吗? :(

对于给您带来的不便,我们深表歉意,但是如果这有帮助,我很高兴成为这个错误的傻瓜!

Sorry for the inconvenience but if this might help, i was glad to be the fool to make this mistake!

这篇关于由于IPTABLES更改,SVN不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆