Skip to content
This repository has been archived by the owner on Jan 31, 2018. It is now read-only.
/ f5vpn-client Public archive

Connect to an F5 VPN server without their terrible browser plugin

License

Notifications You must be signed in to change notification settings

rei/f5vpn-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

F5 VPN Command-Line Client

Connect to an F5 VPN server without using their terrible browser plugin

This software allows you to connect to an F5 VPN server without using their browser plugin. It also has the advantage of setting up DNS properly on OSX systems, which the official client doesn't do. (but maybe they will in the future, now that they can copy the method I use.)

It is not supported or affiliated with F5 in any way. I actually find it rather sad the client they provide is so terribly poor that I had to write this in order to get reliable access to my company's VPN.

This software does not require any software from F5 to be installed on the client. The only requirement is Python 2.3.5 or later. It works on at least Linux and OSX systems, but porting to any similar OS should be trivial. Porting to Windows, on the other hand, is probably not reasonably possible.

Installation

sudo make install

(As root)

Usage

f5vpn-login user@host

(Not as root)

Note: user@host is saved for future invocations, so doesn't need to be specified on future invocations.

Attribution

This is a fork of the f5vpn-login project originally hosted here, created by James Y Knight

License

This software is licensed under GPLv3+. See COPYING for more details.

Changelog

2015-04-19

  • Bug fix: Prevent program crash on authentication error

2015-03-19

2010-10-15

  • Fix "OverrideGateway0" on non-darwin platforms: on those, pppd cowardly refuses to replace an existing default route. Reported by Bob Whitinger.
  • Support comma-delimited DNSSuffix0 in addition to the standard space-delimited. (Reported by Dave Cadwallader)

2010-09-02

  • Now checks the server's certificate, when running on python 2.6 and if it can find the CA certificates list, which is oh so conveniently located in a different place on every OS. You can disable with --dont-check-certificates.
    • Yup, and check the certificate's hostname too, even though Python didn't feel it necessary to include a function for doing this in a convenient fashion.
    • Oh, and it can also verify certificates on OSX, even though Apple and Python conspired mightily to attempt to make this as difficult as possible...

2010-08-10

  • Oops, fix stupid bug.

2010-07-30

  • For linux, use the "$net netmask $mask" syntax instead of "$net/$bits" for giving the netmask to route. It seems that all versions support the former, but some older versions (such as CentOS 4) didn't support the latter (and people still use it!).

2010-07-06

  • Handle servers which don't send a DNSSuffix0 (reported by Logu)

2010-03-15

  • Escape username and passwords when sending to server, so that non-alpha characters work properly. (Thanks anonymous forum post I found via google...BTW, my email address is right up there to report bugs to...)
  • Prefer /usr/local/bin to /usr/bin, for BSDs which have multiple copies of pppd, only the /usr/local of which works..

2009-12-24

  • New platform support: FreeBSD, and inspiration for random cleanups by George Mitchell
  • Add &no_inspectors=1 to request in get_vpn_client_data, from Geert Jan van Oldenborgh.
  • Fix getopt unknown option handling, patch by John Spurling.

2009-07-13

  • Add licensing statement: GPLv3.

Bugs:

  • Allow for an @ character in username. (thanks Lorin Hochstein)
  • Disable deprecation warnings (python 2.6 deprecated socket.ssl).

2008-12-06 Features:

  • Added SOCKS proxy support, if you have the "SocksiPy" python module installed; use the --socks5-proxy argument.

Bugfixes:

  • Fixed compatibility issues with some newer version of the VPN server. (thanks James Trammell and Dave Cadwallader)

2008-10-31 Bugfix:

  • Oops I broke resolvconf again. :( Forgot an os.close()...

2008-10-25 Bugfixes:

  • Support non-split-tunneling VPN configuration. (thanks Mark Kamichoff)
    • Use "UseDefaultGateway0" param to tell pppd to set the machine's default route, and to override the DNS servers, rather than supplementing them.
    • Allow LAN0 to be empty.
  • Don't attempt to reuse a session when the old session is from a different user/server.
  • Handle VPN servers with "pre-login-checks" configured. (thanks to Kazuyuki Saito).
  • Due to a typo, resolvconf wasn't being used on linux even when present. (Thanks Fare and others)
  • Fix crash in routespec_to_revdns when getting a /32 route.
  • Miscellaneous other cleanups

2008-08-04 Features

  • Added ability to connect via a HTTPS proxy with a --proxy=hostname:port argument.

2008-07-25 Features:

  • Basic functionality on iPhone v2.0. Requires python and pyobjc, both of which you can install easily via Cydia. For now, at least, you'll have to run it in the terminal, and, since the iphone drops the net connection every time the phone sleeps, it's not really very usable.

2008-07-21 Bugs:

  • Fixed bug in DNS on linux. (too clever by far)
  • Retry connecting a few times if the VPN fails to answer properly.

2008-05-07 Features:

  • Added support for the resolvconf DNS-manager on linux systems which have it installed.

Bugs:

  • Made the netmask parser more forgiving, since apparently some people have their vpn servers set up oddly.
  • If no DNS0 parameter is supplied by the VPN server, don't attempt to set up DNS overrides.

2008-01-17 Features:

  • Added a SIGUSR1 handler which prints some stuff.

Bugs:

  • Fixed a bug that caused it to not work on OSX 10.4.
  • Make the keepalive feature actually work.

2007-12-07: New features:

  • Now sends a little traffic over the connection at least every 5 minutes, to keep crappy home NAT devices from tearing down the TCP connection. (NetGear, with your 10 minute inactivity timeout...I'm looking at you, with disgust.)
  • On OSX 10.5, make reverse DNS of VPN-remote IPs work right (this is only an issue on OSX to begin with, as linux doesn't support split-DNS anyhow.)

Bugs:

  • Fixed bug with the way I called SSL_write causing "bad write retry" errors occasionally.
  • On OSX 10.5, use the SystemConfiguration python module instead of execing scutil (revdns change runs afoul of scutil's 256char line limit).

2007-10-24:

  • Don't assume the VPN ID is 0,4: actually read the page to find the right number.

2007-09-08: Rewrote the f5vpn-login script to no longer require the "svpn" binary from F5. It now just requires python and a little platform-specific knowledge about setting up routes and dns (implemented for linux and osx, currently, feel free to contribute others).

Bonus: it works better now too:

  • It actually shuts down the connection when you ask it to.
  • On OSX, it uses the platform specific DNS setup features, which allows the dns information to not be overwritten periodically.

About

Connect to an F5 VPN server without their terrible browser plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published