You are not logged in.

#1 2019-06-29 15:03:28

brofjst
Member
Registered: 2018-07-09
Posts: 43

[SOLVED]Openvpn cannot route traffic

Hi guys.
I've installed openvpn on my server and on my client i can set up the connection with the vpn, but i can't communicate to internet.
Just to be clear: from my client i can ping the local address of the vpn 10.8.0.1 but i can't ping 8.8.8.8
Here it is my configuration:

Server.conf
client.conf
ifconfig of the server

# cat /proc/sys/net/ipv4/ip_forward 
1

# ufw status
/etc/ufw/before.rules

# iptables -t nat -L -n -v
# iptables -L FORWARD -n -v
# iptables -L ufw-before-forward -n -v

I can't connect to any website except this one https://aws.amazon.com/ it loads correctly with the vpn connection.

Last edited by brofjst (2019-07-01 11:10:06)

Offline

#2 2019-06-30 17:43:01

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 629

Re: [SOLVED]Openvpn cannot route traffic

Maybe look into split tunneling?

Offline

#3 2019-07-01 11:09:36

brofjst
Member
Registered: 2018-07-09
Posts: 43

Re: [SOLVED]Openvpn cannot route traffic

yeah it worked! thank you, i post here the configuration files
Server.conf
Client.conf
Good job mate!

Offline

Board footer

Powered by FluxBB