I think the issue is the the clients-config file is not working properly. I don't really understand why as I copied it from the previous topic and my old setup worked
Both machines have tun0 and there seems to be a connection but the problem is with the routing.
The client machine can ping the server machine but none of the other computers on the server side.
The server can not ping the client machine.
server.conf
Code: Select all
local 10.1.1.100
port 1194
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 10.1.1.0 255.255.255.0"
client-config-dir /etc/openvpn/client-configs
route 192.168.2.0 255.255.255.0
keepalive 10 120
comp-lzo
max-clients 10
;user nobody
;group nogroup
persist-key
persist-tun
status /var/log/openvpn-status.log
log /var/log/openvpn.log
verb 3
daemon
Code: Select all
iroute 192.168.2.0 255.255.255.0
push "route 10.1.1.0 255.255.255.0 vpn_gateway"
ifconfig-push 10.8.0.22 10.8.0.21
Code: Select all
client
log /var/log/openvpn.log
dev tun
proto tcp
remote xx.xxx.xxx.xxx 1194
resolv-retry infinite
;nobind
ca ca.crt
cert client.crt
key client.key
;ns-cert-type server
comp-lzo
verb 3
;user nobody
;group nobody
persist-tun
persist-key
daemon
Code: Select all
default ControlPanel.Ho 0.0.0.0 UG 0 0 0 eth0
10.1.1.0 * 255.255.255.0 U 0 0 0 eth0
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
10.8.0.2 * 255.255.255.255 UH 0 0 0 tun0
192.168.2.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
Code: Select all
default 192.168.2.1 0.0.0.0 UG 0 0 0 eth0
10.1.1.0 10.8.0.5 255.255.255.0 UG 0 0 0 tun0
10.8.0.1 10.8.0.5 255.255.255.255 UGH 0 0 0 tun0
10.8.0.5 * 255.255.255.255 UH 0 0 0 tun0
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0