Answer the question
In order to leave comments, you need to log in
Strange IP in l2tp ipsec?
ubuntu server 16.04 installed on the VPS
Script found: https://github.com/hwdsl2/setup-ipsec-vpn
Addressing, attendances\passwords corrected in the script The
phone connects successfully and the traffic runs, but Mikrotik connects, but the traffic does not run, moreover it gets a strange IP from the server:
local address: 192.168.89.1
remote address: 192.168.29.254
conn xauth-psk
auto=add
leftsubnet=0.0.0.0/0
rightaddresspool=192.168.30.10-192.168.30.249
modecfgdns1=8.8.8.8
modecfgdns2=8.8.4.4
leftxauthserver=yes
rightxauthclient=yes
leftmodecfgserver=yes
rightmodecfgclient=yes
modecfgpull=yes
xauthby=file
ike-frag=yes
ikev2=never
cisco-unity=yes
also=shared
[global]
port = 1701
[lns default]
ip range = 192.168.29.10-192.168.29.249
local ip = 192.168.29.254
require chap = yes
refuse pap = yes
require authentication = yes
name = l2tpd
pppoptfile = /etc/ppp/options.xl2tpd
length bit = yes
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 XXX.XXX.XXX.X 0.0.0.0 UG 0 0 0 ens3
XXX.XXX.XXX.X 0.0.0.0 255.255.255.255 UH 0 0 0 ens3
192.168.89.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
<LOGIN>:XXXXXXXXXXXXXXXXXXXXXX:xauth-psk
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question