Abills ubuntu 16.10 подключение к VPN из мира

Установка, настройка, поддержка
dushkosoft
Сообщения: 3
Зарегистрирован: Чт янв 04, 2018 3:55 am

Abills ubuntu 16.10 подключение к VPN из мира

Сообщение dushkosoft » Чт янв 04, 2018 3:59 am

Доброго времени суток, есть необходимость использовать VPN подключение из вне (мира), существует такая возможность? открыл accel-ppp наружу, порт 1723 виден, но vpn не подключаеться.
Заранее благодарен.

antoman
Сообщения: 38
Зарегистрирован: Пт май 22, 2015 6:49 am

Re: Abills ubuntu 16.10 подключение к VPN из мира

Сообщение antoman » Чт янв 04, 2018 2:05 pm

Здравствуйте. Для работы ppptp, нужна еще поддержка gre протокола.

Уточните, смотрит ли у Вас сервер в интернет напрямую или через port forwarding.

dushkosoft
Сообщения: 3
Зарегистрирован: Чт янв 04, 2018 3:55 am

Re: Abills ubuntu 16.10 подключение к VPN из мира

Сообщение dushkosoft » Чт янв 04, 2018 4:43 pm

Смотрит напрямую, методом тыка добился подключения, теперь подключаеться висит 10 сек и отключается. Нашел подобную проблему тут, но решение вопроса которое там описано добавлением

Код: Выделить всё

accounting {
       abills_acc
}

не помогает пишет нету модуля abbils_acc, может все дело в gre?
Лог точно такой же как приведен по ссылке.
Спасибо!

dushkosoft
Сообщения: 3
Зарегистрирован: Чт янв 04, 2018 3:55 am

Re: Abills ubuntu 16.10 подключение к VPN из мира

Сообщение dushkosoft » Пт янв 05, 2018 8:11 pm

После долгих манипуляций завести так и не удалось:
По порядку: Ubuntu 16.10 x64
uname -a:

Код: Выделить всё

Linux servname 4.8.0-59-generic #64-Ubuntu SMP Thu Jun 29 19:38:34 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


В конфигах после автоустановки ничего не менял.

Если подключаюсь с windows по впн radiusd -X:

Код: Выделить всё

Sending Access-Accept of id 1 to 127.0.0.1 port 57645
        Framed-IP-Netmask = 255.255.255.255
        MS-MPPE-Encryption-Types = 0x00000006
        Session-Timeout = 2259995
        Framed-IP-Address = 10.0.0.181
        MS-CHAP2-Success = 0x01533d343246464633463241353832433534323437313233384443354338384439       42444334454436373742
        Acct-Interim-Interval = 300
        User-Name = "test"
        MS-MPPE-Recv-Key = 0xd85bab551b313d170ae4215704559a3e
        MS-MPPE-Encryption-Policy = 0x00000001
        MS-MPPE-Send-Key = 0xd924239512e3872f011f6bcb6f164182
Finished request 1.
Going to the next request
Waking up in 4.9 seconds.
rad_recv: Accounting-Request packet from host 127.0.0.1 port 35197, id=1, length=168
Received Accounting-Request packet from client 127.0.0.1 with invalid Request Authenticator!  (       Shared secret is incorrect.) Dropping packet without response.
Going to the next request
Waking up in 0.9 seconds.
Cleaning up request 2 ID 1 with timestamp +40
Waking up in 3.8 seconds.
rad_recv: Accounting-Request packet from host 127.0.0.1 port 35197, id=1, length=168
Received Accounting-Request packet from client 127.0.0.1 with invalid Request Authenticator!  (       Shared secret is incorrect.) Dropping packet without response.
Going to the next request
Waking up in 0.9 seconds.
Cleaning up request 3 ID 1 with timestamp +43
Waking up in 0.9 seconds.
Cleaning up request 1 ID 1 with timestamp +40
Ready to process requests.
rad_recv: Accounting-Request packet from host 127.0.0.1 port 35197, id=1, length=168
Received Accounting-Request packet from client 127.0.0.1 with invalid Request Authenticator!  (       Shared secret is incorrect.) Dropping packet without response.
Going to the next request
Waking up in 0.9 seconds.
Cleaning up request 4 ID 1 with timestamp +46
Ready to process requests.


Accel-ppp.log:

Код: Выделить всё

[2018-01-05 20:13:23]:  info: pptp: new connection from xxx.xxx.xxx.xxx
[2018-01-05 20:13:23]:  info: : recv [PPTP Start-Ctrl-Conn-Request <Version 1> <Framing 1> <Bearer 1> <Max-Chan 0>]
[2018-01-05 20:13:23]:  info: : send [PPTP Start-Ctrl-Conn-Reply <Version 1> <Result 1> <Error 0> <Framing 3> <Bearer 3> <Max-Chan 1>]
[2018-01-05 20:13:23]:  info: : recv [PPTP Outgoing-Call-Request <Call-ID cccf> <Call-Serial 25> <Min-BPS 300> <Max-BPS 100000000> <Bearer 3> <Framing 3> <Window-Size 64> <Delay 0>]
[2018-01-05 20:13:23]:  info: : send [PPTP Outgoing-Call-Reply <Call-ID 1> <Peer-Call-ID cccf> <Result 1> <Error 0> <Cause 0> <Speed 100000000> <Window-Size 64> <Delay 0> <Channel 0>]
[2018-01-05 20:13:23]:  info: ppp0: connect: ppp0 <--> pptp(xxx.xxx.xxx.xxx)
[2018-01-05 20:13:23]: debug: ppp0: lcp_layer_init
[2018-01-05 20:13:23]: debug: ppp0: auth_layer_init
[2018-01-05 20:13:23]: debug: ppp0: ccp_layer_init
[2018-01-05 20:13:23]: debug: ppp0: ipcp_layer_init
[2018-01-05 20:13:23]: debug: ppp0: ipv6cp_layer_init
[2018-01-05 20:13:23]: debug: ppp0: ppp established
[2018-01-05 20:13:23]: debug: ppp0: lcp_layer_start
[2018-01-05 20:13:23]:  info: ppp0: send [LCP ConfReq id=1 <auth MSCHAP-v2> <mru 1436> <magic 643c9869>]
[2018-01-05 20:13:23]:  info: ppp0: recv [PPTP Set-Link-Info]
[2018-01-05 20:13:23]:  info: ppp0: recv [LCP ConfReq id=0 <mru 1400> <magic 3b9918e3> <pcomp> <accomp> < d 3 6 >]
[2018-01-05 20:13:23]:  info: ppp0: send [LCP ConfRej id=0  <pcomp> <accomp> < d 3 6 >]
[2018-01-05 20:13:23]:  info: ppp0: recv [LCP ConfReq id=1 <mru 1400> <magic 3b9918e3>]
[2018-01-05 20:13:23]:  info: ppp0: send [LCP ConfAck id=1 ]
[2018-01-05 20:13:26]: debug: ppp0: fsm timeout
[2018-01-05 20:13:26]:  info: ppp0: send [LCP ConfReq id=1 <auth MSCHAP-v2> <mru 1436> <magic 643c9869>]
[2018-01-05 20:13:26]:  info: ppp0: recv [PPTP Set-Link-Info]
[2018-01-05 20:13:26]:  info: ppp0: recv [LCP ConfAck id=1 <auth MSCHAP-v2> <mru 1436> <magic 643c9869>]
[2018-01-05 20:13:26]: debug: ppp0: lcp_layer_started
[2018-01-05 20:13:26]: debug: ppp0: auth_layer_start
[2018-01-05 20:13:26]:  info: ppp0: send [MSCHAP-v2 Challenge id=1 <4c9d3c6185b9cda1e8d58bcf664cb3>]
[2018-01-05 20:13:26]:  info: ppp0: recv [LCP Ident id=2 <MSRASV5.20>]
[2018-01-05 20:13:26]:  info: ppp0: recv [LCP Ident id=3 <MSRAS-0-CORE>]
[2018-01-05 20:13:26]:  info: ppp0: recv [LCP Ident id=4 <▒▒▒K#▒J▒▒v▒7▒>]
[2018-01-05 20:13:26]:  info: ppp0: recv [MSCHAP-v2 Response id=1 <ffc48d4eafb5371ca943f54a6db12f64>, <cad66030458e5c8a1fa707c5ec37e9f4dfb5bfddd3ed44>, F=0, name="test"]
[2018-01-05 20:13:26]:  info: ppp0: send [RADIUS(1) Access-Request id=1 <User-Name "test"> <NAS-IP-Address 127.0.0.1> <NAS-Port 0> <NAS-Port-Type Virtual> <Tunnel-Type PPTP> <Service-Type Framed-User> <Framed-Protocol PPP> <Calling-Station-Id "xxx.xxx.xxx.xxx"> <Called-Station-Id "xxx.xxx.xxx.xxx"><Microsoft MS-CHAP-Challenge ><Microsoft MS-CHAP2-Response >]
[2018-01-05 20:13:26]:  info: ppp0: recv [RADIUS(1) Access-Accept id=1 <Framed-IP-Netmask 255.255.255.255><Microsoft MS-MPPE-Encryption-Type 6> <Session-Timeout 2259995> <Framed-IP-Address 10.0.0.181><Microsoft MS-CHAP2-Success > <Acct-Interim-Interval 300> <User-Name "test"><Microsoft MS-MPPE-Recv-Key ><Microsoft MS-MPPE-Encryption-Policy 1><Microsoft MS-MPPE-Send-Key >]
[2018-01-05 20:13:26]:  warn: ppp0: radius: MS-MPPE-Recv-Key: incorrect key length (23)
[2018-01-05 20:13:26]:  warn: ppp0: radius: MS-MPPE-Send-Key: incorrect key length (149)
[2018-01-05 20:13:26]:  info: ppp0: send [MSCHAP-v2 Success id=1 "S=42FFF3F2A582C542471238DC5C88D9BDC4ED677B M=Authentication succeeded"]
[2018-01-05 20:13:26]: debug: ppp0: auth_layer_started
[2018-01-05 20:13:26]: debug: ppp0: ccp_layer_start
[2018-01-05 20:13:26]: debug: ppp0: ipcp_layer_start
[2018-01-05 20:13:26]: debug: ppp0: ipv6cp_layer_start
[2018-01-05 20:13:26]:  info: ppp0: test: authentication succeeded
[2018-01-05 20:13:26]:  warn: ppp0: IPV6CP: discarding packet
[2018-01-05 20:13:26]:  info: ppp0: send [LCP ProtoRej id=3 <8057>]
[2018-01-05 20:13:26]:  info: ppp0: recv [CCP ConfReq id=6 <mppe +H -M -S -L -D -C>]
[2018-01-05 20:13:26]:  info: ppp0: send [CCP ConfReq id=1 <mppe +H -M +S -L -D -C>]
[2018-01-05 20:13:26]:  info: ppp0: send [CCP ConfNak id=6 <mppe +H -M +S -L -D -C>]
[2018-01-05 20:13:26]:  info: ppp0: recv [IPCP ConfReq id=7 <addr 0.0.0.0> <dns1 0.0.0.0> <wins1 0.0.0.0> <dns2 0.0.0.0> <wins2 0.0.0.0>]
[2018-01-05 20:13:26]:  info: ppp0: send [IPCP ConfReq id=1 <addr 127.0.0.1>]
[2018-01-05 20:13:26]:  info: ppp0: send [IPCP ConfNak id=7 <addr 10.0.0.181> <dns1 8.8.8.8>]
[2018-01-05 20:13:26]:  info: ppp0: recv [CCP ConfAck id=1 <mppe +H -M +S -L -D -C>]
[2018-01-05 20:13:26]:  info: ppp0: recv [CCP ConfReq id=8 <mppe +H -M +S -L -D -C> (mppe enabled)]
[2018-01-05 20:13:26]:  info: ppp0: send [CCP ConfAck id=8]
[2018-01-05 20:13:26]: debug: ppp0: ccp_layer_started
[2018-01-05 20:13:26]:  info: ppp0: recv [IPCP ConfAck id=1 <addr 127.0.0.1>]
[2018-01-05 20:13:26]:  info: ppp0: recv [IPCP ConfReq id=9 <addr 10.0.0.181> <dns1 8.8.8.8> <wins1 0.0.0.0> <dns2 0.0.0.0> <wins2 0.0.0.0>]
[2018-01-05 20:13:26]:  info: ppp0: send [IPCP ConfAck id=9]
[2018-01-05 20:13:26]: debug: ppp0: ipcp_layer_started
[2018-01-05 20:13:26]:  info: ppp0: send [RADIUS(1) Accounting-Request id=1 <User-Name "test"> <NAS-IP-Address 127.0.0.1> <NAS-Port 0> <NAS-Port-Type Virtual> <Tunnel-Type PPTP> <Service-Type Framed-User> <Framed-Protocol PPP> <Calling-Station-Id "xxx.xxx.xxx.xxx"> <Called-Station-Id "xxx.xxx.xxx.xxx"> <Acct-Status-Type Start> <Acct-Authentic RADIUS> <Acct-Session-Id "1534ee7faeb1c2ab"> <Acct-Session-Time 0> <Acct-Input-Octets 0> <Acct-Output-Octets 0> <Acct-Input-Packets 0> <Acct-Output-Packets 0> <Acct-Input-Gigawords 0> <Acct-Output-Gigawords 0> <Framed-IP-Address 10.0.0.181>]
[2018-01-05 20:13:29]:  info: ppp0: send [RADIUS(1) Accounting-Request id=1 <User-Name "test"> <NAS-IP-Address 127.0.0.1> <NAS-Port 0> <NAS-Port-Type Virtual> <Tunnel-Type PPTP> <Service-Type Framed-User> <Framed-Protocol PPP> <Calling-Station-Id "xxx.xxx.xxx.xxx"> <Called-Station-Id "xxx.xxx.xxx.xxx"> <Acct-Status-Type Start> <Acct-Authentic RADIUS> <Acct-Session-Id "1534ee7faeb1c2ab"> <Acct-Session-Time 0> <Acct-Input-Octets 0> <Acct-Output-Octets 0> <Acct-Input-Packets 0> <Acct-Output-Packets 0> <Acct-Input-Gigawords 0> <Acct-Output-Gigawords 0> <Framed-IP-Address 10.0.0.181>]
[2018-01-05 20:13:32]:  info: ppp0: send [RADIUS(1) Accounting-Request id=1 <User-Name "test"> <NAS-IP-Address 127.0.0.1> <NAS-Port 0> <NAS-Port-Type Virtual> <Tunnel-Type PPTP> <Service-Type Framed-User> <Framed-Protocol PPP> <Calling-Station-Id "xxx.xxx.xxx.xxx"> <Called-Station-Id "xxx.xxx.xxx.xxx"> <Acct-Status-Type Start> <Acct-Authentic RADIUS> <Acct-Session-Id "1534ee7faeb1c2ab"> <Acct-Session-Time 0> <Acct-Input-Octets 0> <Acct-Output-Octets 0> <Acct-Input-Packets 0> <Acct-Output-Packets 0> <Acct-Input-Gigawords 0> <Acct-Output-Gigawords 0> <Framed-IP-Address 10.0.0.181>]
[2018-01-05 20:13:35]:  warn: ppp0: radius: server(1) not responding
[2018-01-05 20:13:35]:  warn: radius: server(1) not responding
[2018-01-05 20:13:35]:  warn: ppp0: radius:acct_start: no servers available
[2018-01-05 20:13:35]: debug: ppp0: ppp_terminate
[2018-01-05 20:13:35]: debug: ppp0: lcp_layer_finish
[2018-01-05 20:13:35]:  info: ppp0: send [LCP TermReq id=4]
[2018-01-05 20:13:35]: debug: ppp0: auth_layer_finish
[2018-01-05 20:13:35]: debug: ppp0: auth_layer_finished
[2018-01-05 20:13:35]: debug: ppp0: ccp_layer_finish
[2018-01-05 20:13:35]: debug: ppp0: ccp_layer_finished
[2018-01-05 20:13:35]: debug: ppp0: ipcp_layer_finish
[2018-01-05 20:13:35]: debug: ppp0: ipcp_layer_finished
[2018-01-05 20:13:35]: debug: ppp0: ipv6cp_layer_finish
[2018-01-05 20:13:35]: debug: ppp0: ipv6cp_layer_finished
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=5 <1e26>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=6 <608b>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=7 <008d>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=8 <001b>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=9 <008b>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=10 <3668>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=11 <00ff>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=12 <289b>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=13 <004f>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=14 <00ab>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=15 <eaec>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=16 <005b>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=17 <00e5>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=18 <00b1>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=19 <00cf>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=20 <0039>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=21 <00fc>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=22 <54bb>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=23 <7a64>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=24 <8c8a>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=25 <64f6>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=26 <d67b>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=27 <0069>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=28 <0087>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=29 <ea97>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=30 <aea0>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=31 <98bc>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=32 <fad6>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=33 <006d>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=34 <f4d2>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=35 <009f>]
[2018-01-05 20:13:35]:  info: ppp0: send [LCP ProtoRej id=36 <fcce>]
[2018-01-05 20:13:35]:  info: ppp0: recv [PPTP Set-Link-Info]
[2018-01-05 20:13:35]:  info: ppp0: recv [LCP TermAck id=4]
[2018-01-05 20:13:35]: debug: ppp0: lcp_layer_finished
[2018-01-05 20:13:35]: debug: ppp0: lcp_layer_free
[2018-01-05 20:13:35]: debug: ppp0: auth_layer_free
[2018-01-05 20:13:35]: debug: ppp0: ccp_layer_free
[2018-01-05 20:13:35]: debug: ppp0: ipcp_layer_free
[2018-01-05 20:13:35]: debug: ppp0: ipv6cp_layer_free
[2018-01-05 20:13:35]: debug: ppp0: ppp destablished
[2018-01-05 20:13:35]: debug: ppp0: pptp: ppp finished
[2018-01-05 20:13:35]:  info: ppp0: send [PPTP Call-Disconnect-Notify <Call-ID cfcc> <Result 3> <Error 0> <Cause 0>]
[2018-01-05 20:13:35]:  info: ppp0: send [PPTP Stop-Ctrl-Conn-Request <Reason 0>]
[2018-01-05 20:13:35]:  info: ppp0: recv [PPTP Stop-Ctrl-Conn-Reply <Result 1> <Error 0>]
[2018-01-05 20:13:35]: debug: ppp0: pptp: disconnect
[2018-01-05 20:13:35]:  info: ppp0: disconnected


Есть у кого какие идеи? Радиус тест проходит успешно.

~AsmodeuS~
Site Admin
Сообщения: 5543
Зарегистрирован: Пт янв 28, 2005 3:11 pm
Контактная информация:

Re: Abills ubuntu 16.10 подключение к VPN из мира

Сообщение ~AsmodeuS~ » Вс янв 07, 2018 9:42 am

Код: Выделить всё

[2018-01-05 20:13:35]: debug: ppp0: ppp destablished
[2018-01-05 20:13:35]: debug: ppp0: pptp: ppp finished
[2018-01-05 20:13:35]:  info: ppp0: send [PPTP Call-Disconnect-Notify <Call-ID cfcc> <Result 3> <Error 0> <Cause 0>]
[2018-01-05 20:13:35]:  info: ppp0: send [PPTP Stop-Ctrl-Conn-Request <Reason 0>]


Вернуться в «Linux»

Кто сейчас на конференции

Сейчас этот форум просматривают: Google [Bot] и 10 гостей