set security vpn ipsec ike-group [[ike_group_name]] ike-version 1 set security vpn ipsec ike-group [[ike_group_name]] lifetime 86400 set security vpn ipsec ike-group [[ike_group_name]] proposal 1 dh-group 2 set security vpn ipsec ike-group [[ike_group_name]] proposal 1 encryption aes256 set security vpn ipsec ike-group [[ike_group_name]] proposal 1 hash sha1 set security vpn ipsec esp-group [[esp_group_name]] compression disable set security vpn ipsec esp-group [[esp_group_name]] lifetime 28800 set security vpn ipsec esp-group [[esp_group_name]] mode tunnel set security vpn ipsec esp-group [[esp_group_name]] pfs disable set security vpn ipsec esp-group [[esp_group_name]] proposal 1 encryption aes256 set security vpn ipsec esp-group [[esp_group_name]] proposal 1 hash sha1 set security vpn ipsec site-to-site peer [[remote_public_ip]] authentication mode pre-shared-secret set security vpn ipsec site-to-site peer [[remote_public_ip]] authentication pre-shared-secret [[shared_key]] set security vpn ipsec site-to-site peer [[remote_public_ip]] connection-type initiate set security vpn ipsec site-to-site peer [[remote_public_ip]] default-esp-group [[esp_group_name]] set security vpn ipsec site-to-site peer [[remote_public_ip]] description [[vpn_description]] set security vpn ipsec site-to-site peer [[remote_public_ip]] ike-group [[ike_group_name]] set security vpn ipsec site-to-site peer [[remote_public_ip]] local-address [[local_public_ip]] set security vpn ipsec site-to-site peer [[remote_public_ip]] vti bind vti[[vti_number]] set security vpn ipsec site-to-site peer [[remote_public_ip]] vti esp-group [[esp_group_name]] set interfaces vti vti[[vti_number]] address [[mask30_tunnel_ip_address]]/30 set interfaces vti vti[[vti_number]] description [[vpn_description]] set interfaces vti vti[[vti_number]] mtu 1436 set protocols static interface-route [[remote_network]]/[[remote_network_mask]] next-hop-interface vti[[vti_number]]



ike_group_name:
esp_group_name:
remote_public_ip:
shared_key:
vpn_description:
local_public_ip:
vti_number:
mask30_tunnel_ip_address:
remote_network:
remote_network_mask:


Use this code to post the full script to your own page:



Use this code to post only the variables to your own page: