Page 1 of 1

set up the OpenVPN Gateway client on ubuntu

Posted: Mon Feb 01, 2021 9:41 pm
by alain.bouz
Hello Everyone,

sorry if this question asked before, i have an openvpn server up and running on centos server everything is working fine for the clients they are able to ping the internal network behind the server and no issues,

i've decided to setup a site to site vpn using my existing server so i installed Ubuntu in a virtual machine in site B and i followed the instruction in openvpn website: https://openvpn.net/vpn-server-resource ... in-detail/

so basically on the client machine i enables IP_Forwarding and i added all necessary static route in my routers in both site A & B but the pc's in both sites are not able to ping each other

i tried to add static routes to the openvpn server / client same issue didn't work as well !


Server route table

10.8.0.0/24 dev tun0 proto kernel scope link src 10.8.0.1
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.18 metric 100

i added 192.168.1.0/24 to router routing table to server IP: 192.168.0.18

client route table

default via 10.8.0.1 dev tun0 proto static metric 50
default via 192.168.1.1 dev enp0s3 proto dhcp metric 100
10.8.0.0/24 dev tun0 proto kernel scope link src 10.8.0.6 metric 50
169.254.0.0/16 dev enp0s3 scope link metric 1000
192.168.0.0/24 via 10.8.0.1 dev tun0 proto static metric 50
192.168.1.0/24 dev enp0s3 proto kernel scope link src 192.168.1.26 metric 100
192.168.1.1 dev enp0s3 proto static scope link metric 100

i added 192.168.0.0/24 to router routing table to client IP: 192.168.1.26

anyone has configured the same if you can guide me it will be highly appreciated !
Thanks!