I have a server (host
) running a Turnkey Trac server (tracsrv
) in Virtualbox, and I'm getting some weird results with networking. Anyone know how to explain this, and if it is possible to fix the problem?
Symptoms
user@randomcomputer ~$ ssh root@tracsrv # works as expected
user@randomcomputer ~$ curl -I http://tracsrv/ # works as expected
user@host ~$ svn co svn://tracsrv/helloworld # works as expected
user@randomcomputer ~$ svn co svn://tracsrv/helloworld # FAILS
randomcomputer
, host
(and therefor also tracsrv
) are all running on the same LAN-network (regular /24 LAN with a single GW, nothing fancy).
Configuration
host
is running iptables, where everything is blocked, except for example http:
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT DROP [0:0]
# Accept any related or established connections
-I INPUT 1 -m state --state RELATED,ESTABLISHED -j ACCEPT
-I OUTPUT 1 -m state --state RELATED,ESTABLISHED -j ACCEPT
# Allow all traffic on the loopback interface
-A INPUT -i lo -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
[...]
# SSH
-A INPUT -i eth1 -p tcp -m tcp --dport 22 -m state --state NEW -j ACCEPT
# HTTP+HTTPS
-A INPUT -i eth1 -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -i eth1 -p tcp -m tcp --dport 443 -j ACCEPT
# Inbound SVN
# Added this as I was unsure whether the host affected the VM
-A INPUT -i eth1 -p tcp -m tcp --dport 3690 -j ACCEPT
COMMIT
But those settings shouldn't interfere with tracsrv
s traffic as its network is in bridged mode:
user@host ~$ VBoxManage showvminfo tracsrv | grep "NIC 1"
NIC 1: MAC: XXXXXXXXXXXX, Attachment: Bridged Interface 'eth1', Cable connected: on, Trace: off (file: none), Type: Am79C973, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny
And finally iptables on tracsrv
accepts all trafic:
root@tracsrv ~# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
And svnserve
is running on tracsrv
:
root@tracsrv ~# lsof -i :svn
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
svnserve 2352 root 3u IPv4 5550 0t0 TCP *:svn (LISTEN)
EDIT: In response to @Guido:
user@randomcomputer ~$ telnet tracsrv 3690
Trying tracsrv...
telnet: Unable to connect to remote host: Connection timed out
user@randomcomputer ~$ svn co svn://tracsrv/helloworld
svn: E000110: Unable to connect to a repository at URL 'svn://tracsrv/helloworld'
svn: E000110: Can't connect to host 'tracsrv': Connection timed out