开发者

SVN doesn't work since IPTABLES changed

开发者 https://www.devze.com 2023-02-17 06:32 出处:网络
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 :

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 :

sv开发者_StackOverflown: 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


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!

0

精彩评论

暂无评论...
验证码 换一张
取 消