oog-gamro / f5vpn-login Goto Github PK
View Code? Open in Web Editor NEWThis project forked from nherment/f5vpn-login
Utility to connect to a f5 VPN from MAC OSx
License: GNU General Public License v3.0
This project forked from nherment/f5vpn-login
Utility to connect to a f5 VPN from MAC OSx
License: GNU General Public License v3.0
F5 VPN Command-line client. 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. To install: "make install" as root. To run: "f5vpn-login user@host" (not as root). (user@host is saved for future invocations, so doesn't need to be specified on future invocations) This software is licensed under GPLv3+. Have fun, James Y Knight, <[email protected]> ChangeLog --------- 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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.