I've already connected to a particular VPN server from my MacBook without any problems. However, I can't manage to get it working in FreeBSD on a different computer.The server seems to operate in Centos Linux and is a PPTP type.
The only suitable pptp client I could find in FreeBSD ports was net/pptpclient which seems designed to handle servers running in Windows. However, in the absence of an alternative, I installed this and configured it more or less as suggested here.
The configuration consisted in creating a /etc/ppp/ppp.conf file containing the server hostname (I also tried using the server IP), my account username and my password. When I run the client using
[cmd=]/usr/local/sbin/pptp "server IP" "server Label"[/cmd]
the terminal outputs two instances of
and the client then shuts down which doesn't seem right.
The ppp.log in /var/log shows the following which didn't help me a lot:
Can anybody help me understand what's going wrong here?
The only suitable pptp client I could find in FreeBSD ports was net/pptpclient which seems designed to handle servers running in Windows. However, in the absence of an alternative, I installed this and configured it more or less as suggested here.
The configuration consisted in creating a /etc/ppp/ppp.conf file containing the server hostname (I also tried using the server IP), my account username and my password. When I run the client using
[cmd=]/usr/local/sbin/pptp "server IP" "server Label"[/cmd]
the terminal outputs two instances of
Code:
/bin/ip: not found
The ppp.log in /var/log shows the following which didn't help me a lot:
Code:
E520-FreeBS# cat ppp.log
Feb 21 17:45:53 E520-FreeBS newsyslog[527]: logfile first created
Feb 21 17:47:48 E520-FreeBS ppp[1685]: Phase: Using interface: tun0
Feb 21 17:47:48 E520-FreeBS ppp[1685]: Phase: deflink: Created in closed state
Feb 21 17:47:48 E520-FreeBS ppp[1685]: Warning: usage: add dest mask gateway
Feb 21 17:47:48 E520-FreeBS ppp[1685]: Warning: The alias command is deprecated
Feb 21 17:47:48 E520-FreeBS ppp[1685]: Phase: PPP Started (direct mode).
Feb 21 17:47:48 E520-FreeBS ppp[1685]: Phase: bundle: Establish
Feb 21 17:47:48 E520-FreeBS ppp[1685]: Phase: deflink: closed -> opening
Feb 21 17:47:48 E520-FreeBS ppp[1685]: Alert: deflink: Can't create /var/run/pts/3.if: No such file or directory
Feb 21 17:47:48 E520-FreeBS ppp[1685]: Phase: deflink: Connected!
Feb 21 17:47:48 E520-FreeBS ppp[1685]: Phase: deflink: opening -> carrier
Feb 21 17:47:49 E520-FreeBS ppp[1685]: Phase: deflink: /dev/pts/3: CD detected
Feb 21 17:47:49 E520-FreeBS ppp[1685]: Phase: deflink: carrier -> lcp
Feb 21 17:47:51 E520-FreeBS ppp[1685]: Phase: bundle: Authenticate
Feb 21 17:47:51 E520-FreeBS ppp[1685]: Phase: deflink: his = CHAP 0x81, mine = none
Feb 21 17:47:51 E520-FreeBS ppp[1685]: Phase: Chap Input: CHALLENGE (16 bytes from pptpd)
Feb 21 17:47:51 E520-FreeBS ppp[1685]: Phase: Chap Output: RESPONSE (ukim-1240)
Feb 21 17:47:51 E520-FreeBS ppp[1685]: Phase: Chap Input: SUCCESS (S=221C51C8A53B32C16772F3BCECE0A1BE4FF1B402)
Feb 21 17:47:51 E520-FreeBS ppp[1685]: Phase: deflink: lcp -> open
Feb 21 17:47:51 E520-FreeBS ppp[1685]: Phase: bundle: Network
Feb 21 17:47:51 E520-FreeBS ppp[1685]: Phase: deflink: open -> lcp
Feb 21 17:47:51 E520-FreeBS ppp[1685]: Phase: bundle: Terminate
Feb 21 17:47:51 E520-FreeBS ppp[1685]: Phase: Signal 15, terminate.
Feb 21 17:47:51 E520-FreeBS ppp[1685]: Phase: Signal 15, terminate.
Feb 21 17:47:54 E520-FreeBS ppp[1685]: Phase: deflink: Disconnected!
Feb 21 17:47:54 E520-FreeBS ppp[1685]: Phase: deflink: Connect time: 6 secs: 409 octets in, 364 octets out
Feb 21 17:47:54 E520-FreeBS ppp[1685]: Phase: deflink: 9 packets in, 10 packets out
Feb 21 17:47:54 E520-FreeBS ppp[1685]: Phase: total 128 bytes/sec, peak 193 bytes/sec on Mon Feb 21 17:47:51 2011
Feb 21 17:47:54 E520-FreeBS ppp[1685]: Alert: deflink: Can't remove /var/run/pts/3.if: No such file or directory
Feb 21 17:47:54 E520-FreeBS ppp[1685]: Phase: deflink: lcp -> closed
Feb 21 17:47:54 E520-FreeBS ppp[1685]: Phase: bundle: Dead
Feb 21 17:47:54 E520-FreeBS ppp[1685]: Phase: PPP Terminated (normal).