Участник с: 18 марта 2012
|
Клиент заставляет заходить в его сеть используя впн. Настройки такого типа
VPN Addresses: pptp.mysetup.co.uk
l2tp.mysetup.co.uk (Note the pre shared key / shared secret for L2TP setup is – *********)
Username: username
Password: password
Установил xl2tpd пакеты networkmanager-l2tp. создал L2TPD подключение, но при попытке подключится выдает ошибку
❯❯❯ sudo /usr/lib/NetworkManager/nm-l2tp-service --debug ⏎
[sudo] password for waldemar:
nm-l2tp[2618] <debug> nm-l2tp-service (version 1.2.8) starting...
nm-l2tp[2618] <debug> uses default --bus-name "org.freedesktop.NetworkManager.l2tp"
nm-l2tp[2618] <info> ipsec enable flag: yes
** Message: Check port 1701
** Message: Can't bind to port 1701
nm-l2tp[2618] <warn> L2TP port 1701 is busy, using ephemeral.
connection
id : "VPN" (s)
uuid : "a810ba7c-977e-42c7-89bd-3bdf6a830b24" (s)
interface-name : NULL (sd)
type : "vpn" (s)
permissions : ["user:waldemar:"] (s)
autoconnect : TRUE (sd)
autoconnect-priority : 0 (sd)
autoconnect-retries : -1 (sd)
timestamp : 0 (sd)
read-only : FALSE (sd)
zone : NULL (sd)
master : NULL (sd)
slave-type : NULL (sd)
autoconnect-slaves : ((NMSettingConnectionAutoconnectSlaves) NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES_DEFAULT) (sd)
secondaries : NULL (sd)
gateway-ping-timeout : 0 (sd)
metered : ((NMMetered) NM_METERED_UNKNOWN) (sd)
lldp : -1 (sd)
stable-id : NULL (sd)
ipv6
method : "auto" (s)
dns : [] (s)
dns-search : [] (s)
dns-options : NULL (sd)
dns-priority : 0 (sd)
addresses : ((GPtrArray*) 0x7fddd4001580) (s)
gateway : NULL (sd)
routes : ((GPtrArray*) 0x5647c08b8f40) (s)
route-metric : -1 (sd)
ignore-auto-routes : FALSE (sd)
ignore-auto-dns : FALSE (sd)
dhcp-hostname : NULL (sd)
dhcp-send-hostname : TRUE (sd)
never-default : FALSE (sd)
may-fail : TRUE (sd)
dad-timeout : -1 (sd)
dhcp-timeout : 0 (sd)
ip6-privacy : ((NMSettingIP6ConfigPrivacy) NM_SETTING_IP6_CONFIG_PRIVACY_UNKNOWN) (sd)
addr-gen-mode : 1 (sd)
token : NULL (sd)
proxy
method : 0 (sd)
browser-only : FALSE (sd)
pac-url : NULL (sd)
pac-script : NULL (sd)
vpn
service-type : "org.freedesktop.NetworkManager.l2tp" (s)
user-name : NULL (sd)
persistent : FALSE (sd)
data : ((GHashTable*) 0x5647c08c1120) (s)
secrets : ((GHashTable*) 0x7fddd4004b00) (s)
timeout : 0 (sd)
ipv4
method : "auto" (s)
dns : [] (s)
dns-search : [] (s)
dns-options : NULL (sd)
dns-priority : 0 (sd)
addresses : ((GPtrArray*) 0x5647c08b8f40) (s)
gateway : NULL (sd)
routes : ((GPtrArray*) 0x7fddd4001580) (s)
route-metric : -1 (sd)
ignore-auto-routes : FALSE (sd)
ignore-auto-dns : FALSE (sd)
dhcp-hostname : NULL (sd)
dhcp-send-hostname : TRUE (sd)
never-default : FALSE (sd)
may-fail : TRUE (sd)
dad-timeout : -1 (sd)
dhcp-timeout : 0 (sd)
dhcp-client-id : NULL (sd)
dhcp-fqdn : NULL (sd)
nm-l2tp[2618] <info> starting ipsec
Stopping strongSwan IPsec failed: starter is not running
Starting strongSwan 5.6.0 IPsec [starter]...
Loading config setup
Loading conn 'a810ba7c-977e-42c7-89bd-3bdf6a830b24'
found netkey IPsec stack
nm-l2tp[2618] <info> Spawned ipsec up script with PID 2701.
initiating Main Mode IKE_SA a810ba7c-977e-42c7-89bd-3bdf6a830b24[1] to 91.230.243.163
generating ID_PROT request 0 [ SA V V V V V ]
sending packet: from 192.168.0.110[500] to 91.230.243.163[500] (240 bytes)
sending retransmit 1 of request message ID 0, seq 1
sending packet: from 192.168.0.110[500] to 91.230.243.163[500] (240 bytes)
nm-l2tp[2618] <warn> Timeout trying to establish IPsec connection
nm-l2tp[2618] <info> Terminating ipsec script with PID 2701.
Stopping strongSwan IPsec...
destroying IKE_SA in state CONNECTING without notification
establishing connection 'a810ba7c-977e-42c7-89bd-3bdf6a830b24' failed
nm-l2tp[2618] <warn> Could not establish IPsec tunnel.
(nm-l2tp-service:2618): GLib-GIO-CRITICAL **: g_dbus_method_invocation_take_error: assertion 'error != NULL' failed
~ ❯❯❯
с ВПН никогда не работал, куда лезть не знаю
|