Dears,
I'm trying to configure my PPTP connection to our office VPN server. I've reviewed most available tutorials for configuring a PPTP client, so I installed pptpclient and configured ppp.conf:
Then I tried to connect to the VPN server:
Actually, I think the connection is ok and I've authenticated successfully, because I see a new interface called tun0 is created and the proper IP address is assigned to that interface. Then I tried to ping the VPN server, and other addresses but every time I get:
And seconds later, the PPTP connection will drop. It is also the ppp logs:
/var/log/messages log:
I've searched over net, and some guys were offered to expand the kern.ipc.nmbclusters system parameter, I've already tried that but the result still the same. Can anyone please help me?
I'm trying to configure my PPTP connection to our office VPN server. I've reviewed most available tutorials for configuring a PPTP client, so I installed pptpclient and configured ppp.conf:
Code:
[root@hadi-pc] ~# cat /etc/ppp/ppp.conf
myvpn:
set authname USERNAME
set authkey PASSWORD
set timeout 0
set ifaddr 0 0
add default HISADDR
alias enable yes
Then I tried to connect to the VPN server:
pptp myvpn X.X.X.XActually, I think the connection is ok and I've authenticated successfully, because I see a new interface called tun0 is created and the proper IP address is assigned to that interface. Then I tried to ping the VPN server, and other addresses but every time I get:
Code:
ping: No buffer space available
Code:
Oct 7 17:10:10 hadi-pc ppp[71881]: Phase: Using interface: tun0
Oct 7 17:10:10 hadi-pc ppp[71881]: Phase: deflink: Created in closed state
Oct 7 17:10:10 hadi-pc ppp[71881]: Warning: The alias command is deprecated
Oct 7 17:10:10 hadi-pc ppp[71881]: Phase: PPP Started (direct mode).
Oct 7 17:10:10 hadi-pc ppp[71881]: Phase: bundle: Establish
Oct 7 17:10:10 hadi-pc ppp[71881]: Phase: deflink: closed -> opening
Oct 7 17:10:10 hadi-pc ppp[71881]: Alert: deflink: Can't create /var/run/pts/5.if: No such file or directory
Oct 7 17:10:10 hadi-pc ppp[71881]: Phase: deflink: Connected!
Oct 7 17:10:10 hadi-pc ppp[71881]: Phase: deflink: opening -> carrier
Oct 7 17:10:11 hadi-pc ppp[71881]: Phase: deflink: /dev/pts/5: CD detected
Oct 7 17:10:11 hadi-pc ppp[71881]: Phase: deflink: carrier -> lcp
Oct 7 17:10:13 hadi-pc ppp[71881]: Phase: bundle: Authenticate
Oct 7 17:10:13 hadi-pc ppp[71881]: Phase: deflink: his = CHAP 0x81, mine = none
Oct 7 17:10:13 hadi-pc ppp[71881]: Phase: Chap Input: CHALLENGE (16 bytes from MikroTik)
Oct 7 17:10:13 hadi-pc ppp[71881]: Phase: Chap Output: RESPONSE (USERNAME)
Oct 7 17:10:13 hadi-pc ppp[71881]: Phase: Chap Input: SUCCESS (S=A8361BED743BEC8457184D3EDF9A453451C229A7)
Oct 7 17:10:13 hadi-pc ppp[71881]: Phase: deflink: lcp -> open
Oct 7 17:10:13 hadi-pc ppp[71881]: Phase: bundle: Network
Oct 7 17:10:13 hadi-pc ppp[71881]: Phase: Unknown protocol 0x8281 (unrecognised protocol)
Oct 7 17:10:13 hadi-pc ppp[71881]: Error: rt_Set: Cannot add a route with gateway 0.0.0.0
Oct 7 17:11:13 hadi-pc ppp[71881]: Phase: deflink: HDLC errors -> FCS: 0, ADDR: 0, COMD: 0, PROTO: 1
Oct 7 17:11:18 hadi-pc ppp[71881]: Phase: Signal 15, terminate.
Oct 7 17:11:18 hadi-pc ppp[71881]: Phase: Signal 15, terminate.
Oct 7 17:11:19 hadi-pc ppp[71881]: Phase: Caught signal 2, abort connection(s)
Oct 7 17:11:19 hadi-pc ppp[71881]: Phase: deflink: open -> lcp
Oct 7 17:11:19 hadi-pc ppp[71881]: Warning: 0.0.0.0: Change route failed: errno: No such process
Oct 7 17:11:19 hadi-pc ppp[71881]: Phase: bundle: Terminate
Oct 7 17:11:19 hadi-pc ppp[71881]: Phase: deflink: Disconnected!
Oct 7 17:11:19 hadi-pc ppp[71881]: Phase: deflink: Connect time: 69 secs: 654 octets in, 3946458768 octets out
Oct 7 17:11:19 hadi-pc ppp[71881]: Phase: deflink: 22 packets in, 6928601 packets out
Oct 7 17:11:19 hadi-pc ppp[71881]: Phase: total 57195064 bytes/sec, peak 62131405 bytes/sec on Mon Oct 7 17:10:58 2013
Oct 7 17:11:19 hadi-pc ppp[71881]: Alert: deflink: Can't remove /var/run/pts/5.if: No such file or directory
Oct 7 17:11:19 hadi-pc ppp[71881]: Phase: deflink: lcp -> closed
Oct 7 17:11:19 hadi-pc ppp[71881]: Warning: Delete route failed: 172.22.128.98: errno: Address already in use
Oct 7 17:11:19 hadi-pc ppp[71881]: Phase: bundle: Dead
Oct 7 17:11:19 hadi-pc ppp[71881]: Phase: PPP Terminated (normal).
/var/log/messages log:
Code:
Oct 7 17:10:08 hadi-pc pptp[71881]: anon log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Oct 7 17:10:08 hadi-pc pptp[71890]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Oct 7 17:10:08 hadi-pc pptp[71890]: anon log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Oct 7 17:10:08 hadi-pc pptp[71890]: anon log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Oct 7 17:10:09 hadi-pc pptp[71890]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Oct 7 17:10:09 hadi-pc pptp[71890]: anon log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Oct 7 17:10:09 hadi-pc pptp[71890]: anon log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 13975).
Oct 7 17:10:10 hadi-pc kernel: tun0: link state changed to UP
Oct 7 17:10:10 hadi-pc ppp[71881]: Warning: The alias command is deprecated
Oct 7 17:10:10 hadi-pc ppp[71881]: Alert: deflink: Can't create /var/run/pts/5.if: No such file or directory
Oct 7 17:10:13 hadi-pc ppp[71881]: Error: rt_Set: Cannot add a route with gateway 0.0.0.0
Oct 7 17:11:18 hadi-pc pptp[71890]: anon log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed
Oct 7 17:11:18 hadi-pc pptp[71890]: anon log[callmgr_main:pptp_callmgr.c:258]: Closing connection (shutdown)
Oct 7 17:11:18 hadi-pc pptp[71890]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Oct 7 17:11:18 hadi-pc pptp[71890]: anon log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed
Oct 7 17:11:18 hadi-pc pptp[71890]: anon log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
Oct 7 17:11:19 hadi-pc ppp[71881]: Warning: 0.0.0.0: Change route failed: errno: No such process
Oct 7 17:11:19 hadi-pc ppp[71881]: Alert: deflink: Can't remove /var/run/pts/5.if: No such file or directory
Oct 7 17:11:19 hadi-pc ppp[71881]: Warning: Delete route failed: 172.22.128.98: errno: Address already in use
Oct 7 17:11:19 hadi-pc pptp[71931]: anon warn[decaps_hdlc:pptp_gre.c:204]: short read (0): No buffer space available
Oct 7 17:11:19 hadi-pc kernel: tun0: link state changed to DOWN
I've searched over net, and some guys were offered to expand the kern.ipc.nmbclusters system parameter, I've already tried that but the result still the same. Can anyone please help me?