Сбой подключения vpn linux

Linux Mint Forums

Windows 7/10 это подключение работает на ура.
А тут Mint 19.1 не хочет.
Пишет следующее:
—————————
Сбой соединения VPN
Произошёл сбой VPN-соединения, поскольку служба VPN неожиданно завершилась.
————————-

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Labuzhskiy Level 3
Posts: 174 Joined: Fri Aug 23, 2013 12:38 am Location: RU:ru

Re: Сбой соединения VPN

Post by Labuzhskiy » Mon Aug 12, 2019 5:51 am

Karabas99 wrote: ⤴ Thu Jul 25, 2019 1:17 pm Не могу подключиться к VPN.

Windows 7/10 это подключение работает на ура.
А тут Mint 19.1 не хочет.
Пишет следующее:
—————————
Сбой соединения VPN
Произошёл сбой VPN-соединения, поскольку служба VPN неожиданно завершилась.
————————-

Мало информации. Предварительно можно по советовать посмотреть на методы шифрования, используемые при подключении и на путь, по которому лежат сертификаты.

  • Important Notices
  • ↳ Rules & Notices
  • ↳ Releases & Announcements
  • ↳ Main Edition Support
  • ↳ Beginner Questions
  • ↳ Installation & Boot
  • ↳ Software & Applications
  • ↳ Hardware Support
  • ↳ Graphics Cards & Monitors
  • ↳ Printers & Scanners
  • ↳ Storage
  • ↳ Sound
  • ↳ Networking
  • ↳ Virtual Machines
  • ↳ Desktop & Window Managers
  • ↳ Cinnamon
  • ↳ MATE
  • ↳ Xfce
  • ↳ Other topics
  • ↳ Non-technical Questions
  • ↳ Tutorials
  • Debian Edition Support
  • ↳ LMDE Forums
  • ↳ Beginner Questions
  • ↳ Installation & Boot
  • ↳ Software & Applications
  • ↳ Hardware Support
  • ↳ Networking
  • ↳ Tutorials
  • ↳ Other Topics & Open Discussion
  • ↳ LMDE Archive
  • Interests
  • ↳ Gaming
  • ↳ Scripts & Bash
  • ↳ Programming & Development
  • Customization
  • ↳ Themes, Icons & Wallpaper
  • ↳ Compiz, Conky, Docks & Widgets
  • ↳ Screenshots
  • ↳ Your Artwork
  • Chat
  • ↳ Introduce Yourself
  • ↳ Chat about Linux Mint
  • ↳ Chat about Linux
  • ↳ Open Chat
  • ↳ Suggestions & Feedback
  • International
  • ↳ Translations
  • ↳ Deutsch — German
  • ↳ Español — Spanish
  • ↳ Français — French
  • ↳ Italiano — Italian
  • ↳ Nederlands — Dutch
  • ↳ Português — Portuguese
  • ↳ Русский — Russian
  • ↳ Suomi — Finnish
  • ↳ Other Languages
  • ↳ Čeština-Slovenčina — Czech-Slovak
  • ↳ Magyar — Hungarian
  • ↳ 日本語 — Japanese
  • ↳ Polski — Polish
  • ↳ Svenska — Swedish
  • ↳ Українська — Ukrainian
Читайте также:  Linux find in man page

Powered by phpBB® Forum Software © phpBB Limited

Источник

Настройка PPTP(VPN)-сервера, ошибки подключения

Поздравляю всех с Новым Годом. Настроение отличное, в колонках играет радио Record(недавно для себя открыл 🙂 ), повышаю квалификацию и столкнулся с траблой при натройке PPTP-сервера в Ubuntu Server 14.04.
Делаю по ману: Ман, но не коннектит с бука(тоже убунта 14.04, но Desktop) пишет сбой соединения. Как определить тип ошибки(пароль / ip)? IP везде динамические, я просто экспериментирую.

P.S. Когда у меня что-то не получается при настройке в линупсе я всё время психую и переставляю чистую систему заново, чтобы все конфиги были чистые, сейчас не хочу так делать т.к. нет времени, нужно текущую конфу починить.

Автор мана ересь какую-то написал. Если тебе для домашнего сервера надо — делай по https://help.ubuntu.com/community/OpenVPN и забудь про pptp как страшный сон.

manntes-live ★★★ ( 03.01.15 22:53:41 MSK )
Последнее исправление: manntes-live 03.01.15 22:54:00 MSK (всего исправлений: 1)

Команда syslog не работает. Когда указываю явно порт:1723 — пишет Сбой подключения — не удалось запустить службу VPN.

В рамках повышения квалификации
1) научиться читать логи
2) почитать логи

Jan 3 22:48:23 notelab NetworkManager[879]: Starting VPN service 'pptp'. Jan 3 22:48:23 notelab NetworkManager[879]: VPN service 'pptp' started (org.freedesktop.NetworkManager.pptp), PID 2761 Jan 3 22:48:23 notelab NetworkManager[879]: VPN service 'pptp' appeared; activating connections Jan 3 22:48:23 notelab NetworkManager[879]: VPN plugin state changed: starting (3) Jan 3 22:48:23 notelab NetworkManager[879]: VPN connection 'VPN-соединение 1' (Connect) reply received. Jan 3 22:48:23 notelab pppd[2765]: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so loaded. Jan 3 22:48:23 notelab pppd[2765]: pppd 2.4.5 started by root, uid 0 Jan 3 22:48:23 notelab pppd[2765]: Using interface ppp0 Jan 3 22:48:23 notelab pppd[2765]: Connect: ppp0 /dev/pts/2 Jan 3 22:48:23 notelab NetworkManager[879]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Jan 3 22:48:23 notelab NetworkManager[879]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found. Jan 3 22:48:23 notelab NetworkManager[879]: /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring. Jan 3 22:48:23 notelab pptp[2770]: nm-pptp-service-2761 log[main:pptp.c:314]: The synchronous pptp option is NOT activated Jan 3 22:48:23 notelab pptp[2783]: nm-pptp-service-2761 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request' Jan 3 22:48:23 notelab pptp[2783]: nm-pptp-service-2761 log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply Jan 3 22:48:23 notelab pptp[2783]: nm-pptp-service-2761 log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established. Jan 3 22:48:24 notelab pptp[2783]: nm-pptp-service-2761 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request' Jan 3 22:48:25 notelab pptp[2783]: nm-pptp-service-2761 log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply. Jan 3 22:48:25 notelab pptp[2783]: nm-pptp-service-2761 log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 512). Jan 3 22:48:25 notelab pppd[2765]: CHAP authentication succeeded Jan 3 22:48:25 notelab pppd[2765]: LCP terminated by peer (MPPE required but peer negotiation failed) Jan 3 22:48:25 notelab pptp[2783]: nm-pptp-service-2761 log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed Jan 3 22:48:25 notelab pptp[2783]: nm-pptp-service-2761 log[callmgr_main:pptp_callmgr.c:258]: Closing connection (shutdown) Jan 3 22:48:25 notelab pptp[2783]: nm-pptp-service-2761 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request' Jan 3 22:48:25 notelab pptp[2783]: nm-pptp-service-2761 log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed Jan 3 22:48:25 notelab pptp[2783]: nm-pptp-service-2761 log[call_callback:pptp_callmgr.c:79]: Closing connection (call state) Jan 3 22:48:25 notelab pppd[2765]: Modem hangup Jan 3 22:48:25 notelab pppd[2765]: Connection terminated. Jan 3 22:48:25 notelab NetworkManager[879]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Jan 3 22:48:25 notelab NetworkManager[879]: VPN plugin failed: 1 Jan 3 22:48:25 notelab pppd[2765]: Exit. Jan 3 22:48:25 notelab NetworkManager[879]: VPN plugin failed: 1 Jan 3 22:48:25 notelab NetworkManager[879]: VPN plugin failed: 1 Jan 3 22:48:25 notelab NetworkManager[879]: VPN plugin state changed: stopped (6) Jan 3 22:48:25 notelab NetworkManager[879]: VPN plugin state change reason: 0 Jan 3 22:48:25 notelab NetworkManager[879]: Policy set 'mts2' (usb0) as default for IPv4 routing and DNS. Jan 3 22:48:25 notelab NetworkManager[879]: error disconnecting VPN: Could not process the request because no VPN connection was active. Jan 3 22:48:30 notelab NetworkManager[879]: VPN service 'pptp' disappeared

Источник

Читайте также:  What is symlink in linux

How can I troubleshoot «VPN Connection Failed»?

Is there anyway to get an error log for a failed VPN connection attempt? All I get is this notification and I have no idea where to go from there.

7 Answers 7

Log is written to /var/log/syslog .
Open gnome-terminal and do sudo tail -f /var/log/syslog
This will follow the file (prints to terminal new log messages).
Now try to connect to the vpn, the messages then will start showing in the terminal.
When you are done following the log just click Ctrl+c to quit tail.

One can add markers to the log by opening another terminal and doing something like that:
logger «. Starting VPN. «

thank you. my username / password were incorrect but all I got was «connection timed out». the logs told me everything I needed to know!

The new (systemd-)variant to get the logs is

journalctl -u NetworkManager.service 

Not only it is a variant, but it includes more information. Only thanks to looking via journalctl , I was able to find an issue with Window VPN. pppd[15094]: MS-CHAP authentication failed: E=649 No dialin permission

In Fedora and other systemd distro’s that do not have /var/log/syslog, the VPN logs can be accessed with «sudo journalctl -f»

I’d suggest that that isn’t really relevant as this is «askubuntu», but Ubuntu is migrating to systemd, too, and while they’ll probably always have /var/log/syslog (its existence is independent of systemd, and I doubt Fedora used it before systemd), journalctl is always the correct way to view the log on systemd.

What kind of VPN are you trying to establish?

Читайте также:  Как посмотреть запущенные службы linux

Is it PPTP (Microsoft proprietary) or Cisco-compatible ?

The easiest way would be for you to run pptp (for PPTP) or vpnc (for Cisco) from a console and see the possible errors interactively.

I think that vpnc is quite straight forward, you just need to type in the necessary info (gateway ip, group name/pass, user name/pass).

I haven’t actually used a PPTP VPN, but some info about setting it up can be found here at cyberciti

Источник

Оцените статью
Adblock
detector