I dont want to get from the server to the client, only the other way round.
The problem is the routing at the VPS. Here is a traceroute from my client:
C:\Users\Jan>tracert 192.168.2.1
Routenverfolgung zu 192.168.2.1 über maximal 30 Hops
1 35 ms 35 ms 34 ms 192.168.3.1
2 * * * Zeitüberschreitung der Anforderung.
3 * * * Zeitüberschreitung der Anforderung.
4 ^C
You'll see that it routes correctly to the VPS, but then it cant hop further.
ip route on my VPS:
root@JanCo-IT-Testserver:~# ip route
192.168.3.2 dev tun1 proto kernel scope link src 192.168.3.1
192.168.2.1 via 192.168.2.5 dev tun0
192.168.2.5 dev tun0 proto kernel scope link src 192.168.2.6
192.168.178.0/24 via 192.168.2.5 dev tun0
192.168.3.0/24 via 192.168.3.2 dev tun1
default dev venet0 scope link
The server on the VPS:
server 192.168.3.0 255.255.255.0
port 1195
proto udp
dev tun1
ca certs/server/ca.crt
cert certs/server/server.crt
key certs/server/server.key
dh certs/server/dh2048.pem
client-config-dir ccd
cipher AES-256-CBC
push "route 192.168.2.0 255.255.255.0"
push "route 192.168.178.0 255.255.255.0"
ping-timer-rem
keepalive 20 180
verb 3
mute 50
log-append /var/log/openvpn/server.log
The client on the VPS:
client
remote nas-vanbruegge.dynv6.net 1194
proto udp6
dev tun0
ca certs/client/ca.crt
cert certs/client/client.crt
key certs/client/client.key
ns-cert-type server
cipher AES-256-CBC
verb 3
mute 50
log-append /var/log/openvpn/client.log
The home server has the same config as the VPS except that he has other routing commands:
push "route 192.168.178.0 255.255.255.0"
push "route 192.168.2.0 255.255.255.0"
route 192.168.178.0 255.255.255.0 192.168.178.1 1
The last command is because I want to get the other clients in the network and .1 is my router.
Any idea?