К сожалению, там, где я сейчас, других провайдеров нет. Приходится возиться с этим.
Стоят net-dialup/pptpclient, net-dialup/ppp, net-dialup/xl2tpd, sys-apps/iproute2.
В твоём скрипте исходном поменял адрес впн-сервера, нынче он vpn.internet.beeline.ru
В твоём варианте не кушало, т.к. одна переменная содержала сразу 2 адреса. Нашёл ещё форумы (которые поначалу не работали):
Apr 25 00:43:35 homegate pppd[12934]Apr 25 00:47:15 homegate pppd[14369]: Plugin passwordfd.so loaded.
Apr 25 00:47:15 homegate pppd[14370]: pppd 2.4.4 started by root, uid 0
Apr 25 00:47:15 homegate pptp[14371]: anon log[main:pptp.c:272]: The synchronous pptp option is NOT activated
Apr 25 00:47:15 homegate /etc/init.d/net.ppp0[13079]: WARNING: net.ppp0 has started, but is inactive
Apr 25 00:47:15 homegate pppd[14370]: Serial connection established.
Apr 25 00:47:15 homegate pppd[14370]: Using interface ppp0
Apr 25 00:47:15 homegate pppd[14370]: Connect: ppp0 <--> /dev/pts/5
Apr 25 00:47:15 homegate pptp[14378]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Apr 25 00:47:15 homegate pptp[14378]: anon log[ctrlp_disp:pptp_ctrl.c:738]: Received Start Control Connection Reply
Apr 25 00:47:15 homegate pptp[14378]: anon log[ctrlp_disp:pptp_ctrl.c:772]: Client connection established.
Apr 25 00:47:16 homegate pptp[14378]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Apr 25 00:47:16 homegate pptp[14378]: anon log[ctrlp_disp:pptp_ctrl.c:857]: Received Outgoing Call Reply.
Apr 25 00:47:16 homegate pptp[14378]: anon log[ctrlp_disp:pptp_ctrl.c:896]: Outgoing call established (call ID 0, peer's call ID 8343).
Apr 25 00:47:49 homegate pppd[14370]: Connection terminated.
Apr 25 00:47:49 homegate pptp[14371]: anon warn[decaps_hdlc:pptp_gre.c:197]: short read (-1): Input/output error
Apr 25 00:47:49 homegate pptp[14371]: anon warn[decaps_hdlc:pptp_gre.c:209]: pppd may have shutdown, see pppd log
Apr 25 00:47:49 homegate pptp[14378]: anon log[callmgr_main:pptp_callmgr.c:231]: Closing connection (unhandled)
Apr 25 00:47:49 homegate pptp[14378]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Apr 25 00:47:49 homegate pptp[14378]: anon log[call_callback:pptp_callmgr.c:78]: Closing connection (call state)
Apr 25 00:48:19 homegate pptp[14382]: anon log[main:pptp.c:272]: The synchronous pptp option is NOT activated
Apr 25 00:48:19 homegate pptp[14385]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Apr 25 00:48:19 homegate pptp[14385]: anon log[ctrlp_disp:pptp_ctrl.c:738]: Received Start Control Connection Reply
Apr 25 00:48:19 homegate pptp[14385]: anon log[ctrlp_disp:pptp_ctrl.c:772]: Client connection established.
Apr 25 00:48:19 homegate pppd[14370]: Serial connection established.
Apr 25 00:48:19 homegate pppd[14370]: Using interface ppp0
Apr 25 00:48:19 homegate pppd[14370]: Connect: ppp0 <--> /dev/pts/5
Apr 25 00:48:20 homegate pptp[14385]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Apr 25 00:48:20 homegate pptp[14385]: anon log[ctrlp_disp:pptp_ctrl.c:857]: Received Outgoing Call Reply.
Apr 25 00:48:20 homegate pptp[14385]: anon log[ctrlp_disp:pptp_ctrl.c:896]: Outgoing call established (call ID 0, peer's call ID 56352).
modules="dhcp"
config_eth0="dhcp"
VPNSERV='vpn.internet.beeline.ru'
config_ppp0="ppp"
link_ppp0="pty 'pptp $VPNSERV --nolaunchpppd --nobuffer --loglevel 1'"
username_ppp0='имя'
password_ppp0='пасс'
pppd_ppp0="
connect /bin/true
name имя
nodeflate
nobsdcomp
noauth
persist
maxfail 0
lcp-echo-interval 30
lcp-echo-failure 4
require-chap
refuse-eap
refuse-mschap
"
т.к. хочу, чтобы соединение хотя бы запускалось и держалось.