I need some advice with VPN.
I am not too familiar with VPN and it is first time to do on linux, on windows works but on linux not.
So I manage to setup vpn server on centos, I have server certificate and client certificate and config file for both.
Now server is connected with eth1 to my local network which have IP address 192.168.0.0 on that network is also dhcp server.
other nic eth0 is on public IP and directly to internet.
So I need to connect from my home computer to a work network 192.168.0.0 to have full access to winows server, shared folders and printers.
I can connect to my VPN server but when I try to ping network at work 192.168.0.0 it pings only 192.168.0.1 and my IP address is which VPN gives to me 192.168.0.6
Whatever else I ping on 192.168.0.0 I get reply from 192.168.0.1 Destinatoion host unreachable
And internet on my PC doesn't work anymore and have no access to shared foders at work and to server.
I am missing here something.
My client config is below.
client
proto udp
dev tun
ca ca.crt
dh dh2048.pem
cert cpiclient.crt
key cpiclient.key
remote MYSERVERPUBLICIP 1194
cipher BF-CBC
user nobody
group nobody
verb 2
mute 20
tun-mtu 1500
mssfix 1450
keepalive 10 120
comp-lzo
persist-key
persist-tun
float
resolv-retry infinite
nobind
pull
route-method exe
route-delay 2
script-security 2
redirect-gateway def1 bypass-dhcp
tun-mtu-extra 32
ping-timer-rem
mute-replay-warnings
explicit-exit-notify 2
push "redirect-gateway def1"