[oconf] I set up an Ubuntu server and Ubuntu client. My traffic does not routed trough the VPN for some reason.

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
slavachicago
OpenVpn Newbie
Posts: 1
Joined: Wed Jul 19, 2023 12:44 am

[oconf] I set up an Ubuntu server and Ubuntu client. My traffic does not routed trough the VPN for some reason.

Post by slavachicago » Wed Jul 19, 2023 12:56 am

I set up an Ubuntu server and Ubuntu a client using this guide: https://www.webhi.com/how-to/how-to-ins ... on-ubuntu/

My server is on google cloud VM. I started a server, connected by the client. Both tell me that "Initialization sequence completed". I have a static IP on my server and it's in USA. But when I check my IP in Google, it turns out that it's still my original client IP, not my VPN server IP.

This is the config that the tutorial gave me:
```
port 1194
proto udp
dev tun
ca /usr/share/easy-rsa/3.0.8/pki/ca.crt
cert /usr/share/easy-rsa/3.0.8/pki/issued/server.crt
key /usr/share/easy-rsa/3.0.8/pki/private/server.key
dh /usr/share/easy-rsa/3.0.8/pki/dh.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
tls-auth /usr/share/easy-rsa/3.0.8/pki/ta.key 0
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
```

I have this same config in my server and client config files.

Please help, what should I change so that my traffic is routed trough a VPN server?

Post Reply