<commit_before>Juniper SRX Dynamic VPN client setup script
===========================================
<NAME> <<EMAIL>>

June 10, 2012

Description
-----------
This script uses the Juniper Access Manager (JAM) web services to
download VPN settings from a Juniper SRX firewall (or other JunOS
device with Dynamic VPN support).  It is capable of writing the
settings out in the format used by network-manager-vpnc, and the
format used by plain vpnc.

Usage
-----
Run with _--help_ for usage.

Example for network-manager-vpnc:

    jam-config addr vpn.example.com user joe pass joespwd | sudo tee /etc/NetworkManager/system-connections/MyVPN

Example for plain vpnc:

    jam-config addr vpn.example.com user joe pass joespwd format vpnc | sudo tee /etc/vpnc/MyVPN.conf

Known Limitations
-----------------
 * Vpnc and network-manager-vpnc need patches to support Juniper
   SRX.  Hopefully these will be integrated upstream soon.
 * Plain vpnc doesn't have the ability to setup routes like
   network-manager.
 * The IKE and IPSec algorithms are not processed yet.  This
   should be trivial to add if needed.  (Add "debug 1" to the
   command line to get started.)

Future Enhancements
-------------------
 * Ideally, this capability would be directly integrated into the
   network-manager-vpnc GUI in some way (i.e. act a bit more like
   the windows JAM client.)

See Also
--------
 * vpnc: http://www.unix-ag.uni-kl.de/~massar/vpnc/
 * NetworkManager: http://projects.gnome.org/NetworkManager/
 * vpnc w/ Juniper SRX support: https://github.com/ndpgroup/vpnc<commit_msg>Add link to gist w/ network-manager-vpnc patches<commit_after>Juniper SRX Dynamic VPN client setup script
===========================================
<NAME> <<EMAIL>>

June 10, 2012

Description
-----------
This script uses the Juniper Access Manager (JAM) web services to
download VPN settings from a Juniper SRX firewall (or other JunOS
device with Dynamic VPN support).  It is capable of writing the
settings out in the format used by network-manager-vpnc, and the
format used by plain vpnc.

Usage
-----
Run with _--help_ for usage.

Example for network-manager-vpnc:

    jam-config addr vpn.example.com user joe pass joespwd | sudo tee /etc/NetworkManager/system-connections/MyVPN

Example for plain vpnc:

    jam-config addr vpn.example.com user joe pass joespwd format vpnc | sudo tee /etc/vpnc/MyVPN.conf

Known Limitations
-----------------
 * Vpnc and network-manager-vpnc need patches to support Juniper
   SRX.  Hopefully these will be integrated upstream soon.
 * Plain vpnc doesn't have the ability to setup routes like
   network-manager.
 * The IKE and IPSec algorithms are not processed yet.  This
   should be trivial to add if needed.  (Add "debug 1" to the
   command line to get started.)

Future Enhancements
-------------------
 * Ideally, this capability would be directly integrated into the
   network-manager-vpnc GUI in some way (i.e. act a bit more like
   the windows JAM client.)

See Also
--------
 * vpnc: http://www.unix-ag.uni-kl.de/~massar/vpnc/
 * NetworkManager: http://projects.gnome.org/NetworkManager/
 * vpnc w/ Juniper SRX support: https://github.com/ndpgroup/vpnc
 * network-manager-vpnc patches: https://gist.github.com/3747514
{'fraction_non_alphanumeric': 0.1296182266009852, 'fraction_numerical': 0.00646551724137931, 'mean_word_length': 3.2526178010471205, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 3, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3341608', 'n_tokens_mistral': 1018, 'n_tokens_neox': 931, 'n_words': 388}