James E. Flemer james.flemer@ndpgroup.com
June 10, 2012
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.
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
PERL_LWP_SSL_VERIFY_HOSTNAME=0
in
the environment before running.