S
S
Sergey Boldyrev2019-04-01 13:58:15
linux
Sergey Boldyrev, 2019-04-01 13:58:15

How to set up internet in VPN with xl2tpd server?

Raised a xl2tpd+ipsec VPN server on my home Linux server (needed to RDP to all my computers without problems with port forwarding).
As a result, all clients are connected (stationaries on Win and Android devices), but there is absolutely no Internet, even direct IPs are not pinged.
I do not connect the server itself as a client, because I'm afraid that then the http-server function will disappear (this is its main function).
There is a slight suspicion that in order to have the Internet, it is necessary, but there is no certainty, I decided to ask here.
xl2tpd default config:

cat /etc/xl2tpd/xl2tpd.conf

[global]
listen-addr = 192.168.1.7

[lns default]
ip range = 10.1.1.100-200
local ip = 10.1.1.1
require chap = yes
refuse pap = yes
require authentication = yes
name = LinuxVPNserver
ppp debug = yes
pppoptfile = /etc/ppp/options.xl2tpd
length bit = yes

cat /etc/ppp/options.xl2tpd

ipcp-accept-local
ipcp-accept-remote
ms-dns 8.8.8.8
ms-dns 8.8.4.4

asyncmap 0
hide-password

# noccp
auth
crtscts
idle 1800
mtu 1410
mru 1410
nodefaultroute
debug
lock
proxyarp
connect-delay 5000

logfile /var/log/ppp/ppp.log

name xl2tpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
persist
logfile /var/log/xl2tpd.log
ms-dns 8.8.8.8
ms-dns 8.8.4.4

When connecting a client:
route -n

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.1.1.100      0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0

My local network acc. 192.168.1.x, gateway/router 192.168.1.1.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Boldyrev, 2019-04-05
@phoenix_tf

It was necessary to add such a thing to iptables
But in the end he scored, and put SoftEther, he does everything himself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question