[Bug 190332] net/pptpclient fails with "/bin/ip: not found"

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Oct 17 19:56:45 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190332

Kurt Jaeger <pi at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|In Progress                 |Open

--- Comment #3 from Kurt Jaeger <pi at FreeBSD.org> ---
/bin/ip is the linux 'do all ip related stuff like adding routes etc' command.

It is called with hardcoded parameters in three places in routing.c:

./routing.c:  snprintf(buf, 255, "%s route get %s", IP_BINARY, ip);
./routing.c:  snprintf(buf, 255, "%s route replace %s", IP_BINARY, route);
./routing.c:  snprintf(buf, 255, "%s route delete %s", IP_BINARY, route);

To allow it to work, some patch is needed that adapts to the FreeBSD
way of adding routes. 'get' and 'delete' probably work if we replace
/bin/ip in Makefile line 10 with /sbin/route. 'replace' is probably
more difficult to fix, but I'm not sure it's used at all.

Besides all this, the PPTP protocol was declared insecure and unfixable
a long time ago.

http://www.howtogeek.com/211329/which-is-the-best-vpn-protocol-pptp-vs.-openvpn-vs.-l2tpipsec-vs.-sstp/

Please test the attached patch and report back if it works for you.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list