E
E
Egor Tyuvaev2016-12-30 14:43:00
linux
Egor Tyuvaev, 2016-12-30 14:43:00

How to properly configure an OpenVPN server behind NAT so that you can access the Internet through it?

I want to put an OpenVPN server on OrangePi (inside Ubuntu) connected to a router so that all traffic goes through this server.
I installed the necessary packages, generated keys, created a config , everything starts up, the client connects, but I can’t connect to any website, although I have access to the hardware itself from under the VPN.
output of the iptables -L
command output of the ip routes show command
192.168.1.3 - address of the orange
192.168.1.1 - address of the router
Please help me figure out what I did wrong, or where to dig to understand the problem.
Thanks to.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
1
15432, 2016-12-30
@15432

Have you configured traffic forwarding?
Something like
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE With
only your addresses and interface names

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question