Hi
I'm having rather a weird problem. I have four OpenVPN servers all configured in routing mode.
When I connect to VPN server 1, I can ping it, SSH to it, I can ping all other internal servers including the other 3 VPN server but I can't SSH to any of them.
Here's what the server configuration file looks like:
port 1194
proto udp
dev tun
ca ca.crt
cert vLabVPN.crt
key vLabVPN.key
dh dh1024.pem
server 172.16.0.0 255.255.192.0
persist-key
persist-tun
push "route 10.0.0.0 255.255.0.0"
topology subnet
user nobody
group nogroup
daemon
log-append /var/log/openvpn.log
keepalive 10 120
The other server are configures the same way except I'm using ports 1195, 1196 and 1197 respectively and of course using different subnets for each VPN server as the following:
server 172.16.64.0 255.255.192.0 # for server 2
server 172.16.128.0 255.255.192.0 # for server 3
server 172.16.192.0 255.255.192.0 # for server 4
I enabled the ip forwarding in all servers using this command:
sysctl -w net.ipv4.ip_forward=1
I also added routing rules to the gateway as the following:
ip route add 172.16.0.0/18 via 10.0.0.21
ip route add 172.16.64.0/18 via 10.0.0.22
ip route add 172.16.128.0/18 via 10.0.0.23
ip route add 172.16.192.0/18 via 10.0.0.24
iptables in all servers is configured to ACCEPT all incoming, outgoing and forward traffic. And the gateway admin told me it's configured to allow incoming TCP traffic from any source and to any destination.
Any idea to what is causing me not being able to SSH other internal servers?
Thanks!