Svn – Connecting to SVN server from a computer outside of the LAN

svnsvnserve

I've got a Fedora server running Subversion and svnserve on port 3690. My repo is at /var/svn/project_name. I have my router forwarding port 3690 to the local server (as well as port 80, 21, 22 and a few others). When I connect locally to svn://192.168.0.2/project_name it works great. When I connect from an external server to svn://my.static.ip/project_name I get a time out connecting to the host. However, if I http://my.static.ip there is no problem, so port forwarding is working (at least for port 80).

I don't want to run WebDAV or svn via HTTP/s. I'd like it to work using svnserve, as documented in the svn book. What have I misconfigured?

EDIT Here is the last part of my iptables dump. I'm not an expert, but it looks OK to me:

ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:svn
ACCEPT     udp  --  anywhere             anywhere            state NEW udp dpt:svn
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpts:6680:6699
ACCEPT     udp  --  anywhere             anywhere            state NEW udp dpts:6680:6699
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited

EDIT 2 Results from sudo netstat -tulpn

tcp        0      0 0.0.0.0:3690                0.0.0.0:*                   LISTEN      1455/svnserve

Best Answer

In this case, it was the server itself (service provider: Bluehost.com) that is blocking port 3690 on their end. The solution was either to pay an additional $$ to have a static IP set up and then they could open that port, or to simply use svn+ssh to access, since SSH port 22 is already open.

Hope this is at least useful to anyone else experiencing this kind of issue from a shared hosting environment.

Related Topic