LINUX.ORG.RU

Настройка подключения VPN [SUSE]

 


0

1

Есть winduz'ойдные компы, подключаемые через vpn к внутренней сети, ничего конфигурировать на них не надо, остается ввести адрес, ввести пароль и логин. Как настроить тоже самое под linux?

★★★★★

Судя по тому, что в виндузоидных всё из коробки, то это наверняка pptp. В линуксе с этим очень просто. Нужно поискать что есть в репах по маске pptp, поставить (без фанатизма) и настроить соединение в networkmanager.

imul ★★★★★
()
Ответ на: комментарий от imul

Вот лог:

Aug 29 13:23:25 linux pppd[7767]: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so loaded.
Aug 29 13:23:25 linux pppd[7767]: pppd 2.4.5 started by root, uid 0
Aug 29 13:23:25 linux pppd[7767]: Using interface ppp0
Aug 29 13:23:25 linux pppd[7767]: Connect: ppp0 <--> /dev/pts/3
Aug 29 13:23:25 linux pptp[7768]: nm-pptp-service-7764 log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Aug 29 13:23:25 linux pptp[7774]: nm-pptp-service-7764 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Aug 29 13:23:25 linux pptp[7774]: nm-pptp-service-7764 log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Aug 29 13:23:25 linux pptp[7774]: nm-pptp-service-7764 log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Aug 29 13:23:26 linux pptp[7774]: nm-pptp-service-7764 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Aug 29 13:23:26 linux pptp[7774]: nm-pptp-service-7764 log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Aug 29 13:23:26 linux pptp[7774]: nm-pptp-service-7764 log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 48785).
Aug 29 13:23:26 linux pptp[7768]: nm-pptp-service-7764 log[decaps_gre:pptp_gre.c:405]: discarding duplicate or old packet 0 (expecting 2)
Aug 29 13:23:28 linux pptp[7774]: nm-pptp-service-7764 log[ctrlp_disp:pptp_ctrl.c:950]: PPTP_SET_LINK_INFO received from peer_callid 41463
Aug 29 13:23:28 linux pptp[7774]: nm-pptp-service-7764 log[ctrlp_disp:pptp_ctrl.c:953]:   send_accm is 00000000, recv_accm is FFFFFFFF
Aug 29 13:23:28 linux pptp[7774]: nm-pptp-service-7764 warn[ctrlp_disp:pptp_ctrl.c:956]: Non-zero Async Control Character Maps are not supported!
Aug 29 13:23:29 linux pppd[7767]: CHAP authentication succeeded
Aug 29 13:23:29 linux pptp[7774]: nm-pptp-service-7764 log[ctrlp_disp:pptp_ctrl.c:950]: PPTP_SET_LINK_INFO received from peer_callid 41463
Aug 29 13:23:29 linux pptp[7774]: nm-pptp-service-7764 log[ctrlp_disp:pptp_ctrl.c:953]:   send_accm is FFFFFFFF, recv_accm is FFFFFFFF
Aug 29 13:23:29 linux pptp[7774]: nm-pptp-service-7764 warn[ctrlp_disp:pptp_ctrl.c:956]: Non-zero Async Control Character Maps are not supported!
Aug 29 13:23:29 linux pppd[7767]: LCP terminated by peer (wA<M-w^@<M-Mt^@^@^BM-f)
Aug 29 13:23:29 linux pptp[7774]: nm-pptp-service-7764 log[ctrlp_disp:pptp_ctrl.c:912]: Received Call Clear Request.
Aug 29 13:23:31 linux pppd[7767]: Connection terminated.
Aug 29 13:23:31 linux pppd[7767]: Modem hangup
Aug 29 13:23:31 linux pptp[7768]: nm-pptp-service-7764 warn[decaps_hdlc:pptp_gre.c:204]: short read (-1): Input/output error
Aug 29 13:23:31 linux pptp[7768]: nm-pptp-service-7764 warn[decaps_hdlc:pptp_gre.c:216]: pppd may have shutdown, see pppd log
Aug 29 13:23:31 linux pppd[7767]: Script /usr/sbin/pptp 195.151.61.50 --nolaunchpppd --logstring nm-pptp-service-7764 finished (pid 7768), status = 0x0
Aug 29 13:23:31 linux pptp[7774]: nm-pptp-service-7764 log[callmgr_main:pptp_callmgr.c:234]: Closing connection (unhandled)
Aug 29 13:23:31 linux pptp[7774]: nm-pptp-service-7764 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Aug 29 13:23:31 linux pptp[7774]: nm-pptp-service-7764 log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
Настраивал по аналогии с win$(узел, логин, пароль), но не срослось что-то.

deterok ★★★★★
() автор топика

Вот еще:

Aug 29 13:28:02 linux NetworkManager: <debug> [1314610082.791790] ensure_killed(): waiting for vpn service pid 7958 to exit
Aug 29 13:28:02 linux NetworkManager: <debug> [1314610082.791878] ensure_killed(): vpn service pid 7958 cleaned up
Aug 29 13:29:33 linux NetworkManager: <info>  Starting VPN service 'org.freedesktop.NetworkManager.pptp'...
Aug 29 13:29:33 linux NetworkManager: <info>  VPN service 'org.freedesktop.NetworkManager.pptp' started (org.freedesktop.NetworkManager.pptp), PID 8092
Aug 29 13:29:33 linux NetworkManager: <info>  VPN service 'org.freedesktop.NetworkManager.pptp' just appeared, activating connections
Aug 29 13:29:33 linux NetworkManager: <info>  VPN plugin state changed: 1
Aug 29 13:29:33 linux NetworkManager: <info>  VPN plugin state changed: 3
Aug 29 13:29:33 linux NetworkManager: <info>  VPN connection 'VPN-соединение 1' (Connect) reply received.
Aug 29 13:29:37 linux NetworkManager: <info>  VPN plugin failed: 1
Aug 29 13:29:37 linux NetworkManager: <info>  VPN plugin failed: 1
Aug 29 13:29:37 linux NetworkManager: <info>  VPN plugin failed: 1
Aug 29 13:29:37 linux NetworkManager: <info>  VPN plugin state changed: 6
Aug 29 13:29:37 linux NetworkManager: <info>  VPN plugin state change reason: 0
Aug 29 13:29:37 linux NetworkManager: <WARN>  connection_state_changed(): Could not process the request because no VPN connection was active.
Aug 29 13:29:37 linux NetworkManager: <debug> [1314610177.053755] run_netconfig(): Spawning '/sbin/netconfig modify --service NetworkManager'
Aug 29 13:29:37 linux NetworkManager: <debug> [1314610177.057115] write_to_netconfig(): Writing to netconfig: DNSSEARCH='WORK WORK'
Aug 29 13:29:37 linux NetworkManager: <debug> [1314610177.170883] write_to_netconfig(): Writing to netconfig: DNSSERVERS='80.252.130.254 192.168.1.1'
Aug 29 13:29:37 linux NetworkManager: <info>  Clearing nscd hosts cache.
Aug 29 13:29:37 linux NetworkManager: <info>  Policy set 'Auto elfav' (ra0) as default for routing and DNS.
Aug 29 13:29:49 linux NetworkManager: <debug> [1314610189.058625] ensure_killed(): waiting for vpn service pid 8092 to exit
Aug 29 13:29:49 linux NetworkManager: <debug> [1314610189.058717] ensure_killed(): vpn service pid 8092 cleaned up

deterok ★★★★★
() автор топика

если в виде ничего не менялось то смотреть в настройках require-mppe или что-то типа такого, раньше я такие соединения подымал ястом, без всяких НМ. только require-mppe требовалось в sysconfig дописать.

Novell-ch ★★★★★
()

ТС топай на вики опенсюсе, там это есть даже в картинках.

MikeDM ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.