I am running CentOS 6. It is connected to OpenVPN with the following routes:
Destination Gateway Genmask Flags Metric Ref Use Iface
126.96.36.199 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
188.8.131.52 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
10.97.156.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
0.0.0.0 10.97.156.1 0.0.0.0 UG 0 0 0 eth0
When connected, my ifconfig shows the correct address for tun0:
After setting up the VPN, I restart sshd.
When I try to ssh in to this system from a host on the VPN, the connection attempt times out.
If I use
tcpdump -i tun0 I get:
09:25:30.592685 IP 184.108.40.206.26605 > 220.127.116.11.ssh: Flags [S], seq 2108197737, win 8192, options [mss 1366,nop,nop,sackOK], length 0
However, no response ever goes back across the tunnel. The response isn't being sent across eth0 either- I trapped eth0 and didn't have a packet trying to go back to 18.104.22.168.
I know sshd is listening on all interfaces because
netstat -l shows:
tcp 0 0 *:ssh : LISTEN
I even made sure my iptables allow incoming connections on the VPN port and the SSH port, although that shouldn't be an issue because the connections should be piggybacking on the current VPN session.
Any ideas? I'm at a loss, because as far as I can tell everything is set up properly.