Cannot connect from ubuntu to Mikrotik RB750GL 5.24 via pptp
Posted: Wed Mar 05, 2014 4:40 pm
Hello everybody!
Problem is that Ubuntu PCs do not connect to Mikrotik using pptp.
I set up my mikrotik router as a pptp server with following parameters in "ppp->pptp server" menu:
/etc/ppp/options.pptp
/etc/ppp/chap-secrets
I should also say, that windows PCs, another mikrotik router and even android and maemo phones can easily connect via pptp.
This problem is the same on two xubuntu 12.04 pcs.
Thank you in advance!
Problem is that Ubuntu PCs do not connect to Mikrotik using pptp.
I set up my mikrotik router as a pptp server with following parameters in "ppp->pptp server" menu:
Code: Select all
Enabled - yes
Max MTU/Max MRU - 1460
MRRU - empty
Keepalive timeout - 10
Default profile - Default
Authentication: pap - on; chap - on; mschap1 - on; mschap2 - on
ros code
/ppp aaa> print use-radius: no accounting: no interim-update: 0s
ros code
/ppp profile> print Flags: * - default 0 * name="default" local-address=192.168.2.1 use-mpls=default use-compression=default use-vj-compression=default use-encryption=default only-one=default change-tcp-mss=yes 3 * name="default-encryption" local-address=192.168.2.1 use-mpls=default use-compression=default use-vj-compression=default use-encryption=yes only-one=default change-tcp-mss=default
ros code
/ppp secret> print Flags: X - disabled # NAME SERVICE CALLER-ID PASSWORD PROFILE REMOTE-ADDRESS 4 one_mik... pptp xxxxxxxx default-e... 192.168.2.10
ros code
/ip firewall filter> print Flags: X - disabled, I - invalid, D - dynamic 5 chain=input action=accept protocol=tcp dst-port=1723 6 chain=input action=accept protocol=greDuring connection attempt following strings goes to log:
ros code
Mar/05/2014 18:22:53 pptp,info TCP connection established from 89.xxx.xxx.xxx Mar/05/2014 18:22:53 pptp,ppp,info <pptp-0>: waiting for call... Mar/05/2014 18:22:53 pptp,debug,packet rcvd Start-Control-Connection-Request from 89.xxx.xxx.xxx Mar/05/2014 18:22:53 pptp,debug,packet protocol-version=0x0100 Mar/05/2014 18:22:53 pptp,debug,packet framing-capabilities=3 Mar/05/2014 18:22:53 pptp,debug,packet bearer-capabilities=3 Mar/05/2014 18:22:53 pptp,debug,packet maximum-channels=65535 Mar/05/2014 18:22:53 pptp,debug,packet firmware-revision=1 Mar/05/2014 18:22:53 pptp,debug,packet host-name=local Mar/05/2014 18:22:53 pptp,debug,packet vendor-name=cananian Mar/05/2014 18:22:53 pptp,debug,packet sent Start-Control-Connection-Reply to 89.xxx.xxx.xxx Mar/05/2014 18:22:53 pptp,debug,packet protocol-version=0x0100 Mar/05/2014 18:22:53 pptp,debug,packet result-code=1 Mar/05/2014 18:22:53 pptp,debug,packet error-code=0 Mar/05/2014 18:22:53 pptp,debug,packet framing-capabilities=2 Mar/05/2014 18:22:53 pptp,debug,packet bearer-capabilities=0 Mar/05/2014 18:22:53 pptp,debug,packet maximum-channels=0 Mar/05/2014 18:22:53 pptp,debug,packet firmware-revision=1 Mar/05/2014 18:22:53 pptp,debug,packet host-name=MikroTik Mar/05/2014 18:22:53 pptp,debug,packet vendor-name=MikroTik Mar/05/2014 18:22:54 pptp,debug,packet rcvd Outgoing-Call-Request from 89.xxx.xxx.xxx Mar/05/2014 18:22:54 pptp,debug,packet call-id=14019 Mar/05/2014 18:22:54 pptp,debug,packet call-serial-number=0 Mar/05/2014 18:22:54 pptp,debug,packet minimum-bps=2400 Mar/05/2014 18:22:54 pptp,debug,packet maximum-bps=10000000 Mar/05/2014 18:22:54 pptp,debug,packet bearer-type=3 Mar/05/2014 18:22:54 pptp,debug,packet framing-type=3 Mar/05/2014 18:22:54 pptp,debug,packet packet-recv-window-size=3 Mar/05/2014 18:22:54 pptp,debug,packet packet-processing-delay=0 Mar/05/2014 18:22:54 pptp,debug,packet phone-number-length=0 Mar/05/2014 18:22:54 pptp,debug,packet phone-number= Mar/05/2014 18:22:54 pptp,debug,packet subaddress= Mar/05/2014 18:22:54 pptp,ppp,debug <89.xxx.xxx.xxx>: LCP lowerup Mar/05/2014 18:22:54 pptp,ppp,debug <89.xxx.xxx.xxx>: LCP open Mar/05/2014 18:22:54 pptp,debug,packet sent Outgoing-Call-Reply to 89.xxx.xxx.xxx Mar/05/2014 18:22:54 pptp,debug,packet call-id=4274 Mar/05/2014 18:22:54 pptp,debug,packet peers-call-id=14019 Mar/05/2014 18:22:54 pptp,debug,packet result-code=1 Mar/05/2014 18:22:54 pptp,debug,packet error-code=0 Mar/05/2014 18:22:54 pptp,debug,packet cause-code=0 Mar/05/2014 18:22:54 pptp,debug,packet connect-speed=100000 Mar/05/2014 18:22:54 pptp,debug,packet packet-recv-window-size=100 Mar/05/2014 18:22:54 pptp,debug,packet packet-processing-delay=0 Mar/05/2014 18:22:54 pptp,debug,packet physical-channel-id=0 Mar/05/2014 18:22:55 pptp,ppp,debug <89.xxx.xxx.xxx>: LCP timer Mar/05/2014 18:22:55 pptp,ppp,debug,packet <89.xxx.xxx.xxx>: sent <89.xxx.xxx.xxx>: rcvd <89.xxx.xxx.xxx>: sent <89.xxx.xxx.xxx>: rcvd <89.xxx.xxx.xxx>: sent <89.xxx.xxx.xxx>: rcvd <89.xxx.xxx.xxx>: sent LCP ConfReq id=0x1 Mar/05/2014 18:22:55 pptp,ppp,debug,packet <mru 1460> Mar/05/2014 18:22:55 pptp,ppp,debug,packet <magic 0x205ad5ef> Mar/05/2014 18:22:55 pptp,ppp,debug,packet <auth mschap2> Mar/05/2014 18:22:56 pptp,ppp,debug <89.xxx.xxx.xxx>: LCP timer Mar/05/2014 18:22:56 pptp,ppp,debug,packet <89.xxx.xxx.xxx>: sent LCP ConfReq id=0x2 Mar/05/2014 18:22:56 pptp,ppp,debug,packet <mru 1460> Mar/05/2014 18:22:56 pptp,ppp,debug,packet <magic 0x205ad5ef> Mar/05/2014 18:22:56 pptp,ppp,debug,packet <auth mschap2> Mar/05/2014 18:22:58 pptp,ppp,debug <89.xxx.xxx.xxx>: LCP timer Mar/05/2014 18:22:58 pptp,ppp,debug,packet <89.xxx.xxx.xxx>: sent LCP ConfReq id=0x3 Mar/05/2014 18:22:58 pptp,ppp,debug,packet <mru 1460> Mar/05/2014 18:22:58 pptp,ppp,debug,packet <magic 0x205ad5ef> Mar/05/2014 18:22:58 pptp,ppp,debug,packet <auth mschap2> Mar/05/2014 18:23:00 pptp,ppp,debug <89.xxx.xxx.xxx>: LCP timer Mar/05/2014 18:23:00 pptp,ppp,debug <89.xxx.xxx.xxx>: LCP timeout sending ConfReq Mar/05/2014 18:23:00 pptp,ppp,debug <89.xxx.xxx.xxx>: LCP lowerdown Mar/05/2014 18:23:00 pptp,ppp,info <pptp-0>: terminating... Mar/05/2014 18:23:00 pptp,ppp,debug <89.xxx.xxx.xxx>: LCP lowerdown Mar/05/2014 18:23:00 pptp,ppp,debug <89.xxx.xxx.xxx>: LCP down event in starting state Mar/05/2014 18:23:00 pptp,ppp,info <pptp-0>: disconnectedUbuntu client pc has following set up:
/etc/ppp/options.pptp
bash code
lock noauth refuse-pap refuse-eap refuse-chap refuse-mschap nobsdcomp nodeflateBTW, If I enable pap, chap, eap, mschap - nothing changes, it still doesn't connect.
/etc/ppp/chap-secrets
bash code
# Secrets for authentication using CHAP # client server secret IP addresses one_mikrotik pptp xxxxxx */etc/ppp/peers/mikrotik
bash code
pty "pptp 91.xxx.xxx.xxx --nolaunchpppd" name one_mikrotik remotename PPTP defaultroute file /etc/ppp/options.pptp ipparam mikrotikFollowing text I see in ubuntu console:
bash code
# pon mikrotik debug nodetach using channel 22 Using interface ppp0 Connect: ppp0 <--> /dev/pts/2 sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xc17b4eb> <pcomp> <accomp>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xc17b4eb> <pcomp> <accomp>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xc17b4eb> <pcomp> <accomp>] Modem hangup Connection terminated. Script pptp 91.xxx.xxx.xxx --nolaunchpppd finished (pid 5150), status = 0x0Please help me to solve this issue.
I should also say, that windows PCs, another mikrotik router and even android and maemo phones can easily connect via pptp.
This problem is the same on two xubuntu 12.04 pcs.
Thank you in advance!