vpn vti both
! VPN EN VYATTA GTS set security vpn ipsec ike-group [[ike_group_name_gts]] ike-version 1 set security vpn ipsec ike-group [[ike_group_name_gts]] lifetime 86400 set security vpn ipsec ike-group [[ike_group_name_gts]] proposal 1 dh-group 2 set security vpn ipsec ike-group [[ike_group_name_gts]] proposal 1 encryption aes256 set security vpn ipsec ike-group [[ike_group_name_gts]] proposal 1 hash sha1 set security vpn ipsec esp-group [[esp_group_name_gts]] compression disable set security vpn ipsec esp-group [[esp_group_name_gts]] lifetime 28800 set security vpn ipsec esp-group [[esp_group_name_gts]] mode tunnel set security vpn ipsec esp-group [[esp_group_name_gts]] pfs disable set security vpn ipsec esp-group [[esp_group_name_gts]] proposal 1 encryption aes256 set security vpn ipsec esp-group [[esp_group_name_gts]] proposal 1 hash sha1 set security vpn ipsec site-to-site peer [[customer_public_ip]] authentication mode pre-shared-secret set security vpn ipsec site-to-site peer [[customer_public_ip]] authentication pre-shared-secret [[shared_key]] set security vpn ipsec site-to-site peer [[customer_public_ip]] connection-type initiate set security vpn ipsec site-to-site peer [[customer_public_ip]] default-esp-group [[esp_group_name_gts]] set security vpn ipsec site-to-site peer [[customer_public_ip]] description [[vpn_description_gts]] set security vpn ipsec site-to-site peer [[customer_public_ip]] ike-group [[ike_group_name_gts]] set security vpn ipsec site-to-site peer [[customer_public_ip]] local-address [[gts_public_ip]] set security vpn ipsec site-to-site peer [[customer_public_ip]] vti bind vti[[vti_number_gts]] set security vpn ipsec site-to-site peer [[customer_public_ip]] vti esp-group [[esp_group_name_gts]] set interfaces vti vti[[vti_number_gts]] address [[mask30_tunnel_ip_address]]/30 set interfaces vti vti[[vti_number_gts]] description [[vpn_description]] set interfaces vti vti[[vti_number_gts]] mtu 1436 set protocols static interface-route [[customer_network]]/[[customer_network_mask]] next-hop-interface vti[[vti_number_gts]] ! VPN EN VYATTA CLIENTE set security vpn ipsec ike-group [[ike_group_name_cust]] ike-version 1 set security vpn ipsec ike-group [[ike_group_name_cust]] lifetime 86400 set security vpn ipsec ike-group [[ike_group_name_cust]] proposal 1 dh-group 2 set security vpn ipsec ike-group [[ike_group_name_cust]] proposal 1 encryption aes256 set security vpn ipsec ike-group [[ike_group_name_cust]] proposal 1 hash sha1 set security vpn ipsec esp-group [[esp_group_name_cust]] compression disable set security vpn ipsec esp-group [[esp_group_name_cust]] lifetime 28800 set security vpn ipsec esp-group [[esp_group_name_cust]] mode tunnel set security vpn ipsec esp-group [[esp_group_name_cust]] pfs disable set security vpn ipsec esp-group [[esp_group_name_cust]] proposal 1 encryption aes256 set security vpn ipsec esp-group [[esp_group_name_cust]] proposal 1 hash sha1 set security vpn ipsec site-to-site peer [[gts_public_ip]] authentication mode pre-shared-secret set security vpn ipsec site-to-site peer [[gts_public_ip]] authentication pre-shared-secret [[shared_key]] set security vpn ipsec site-to-site peer [[gts_public_ip]] connection-type initiate set security vpn ipsec site-to-site peer [[gts_public_ip]] default-esp-group [[esp_group_name_cust]] set security vpn ipsec site-to-site peer [[gts_public_ip]] description [[vpn_description_cust]] set security vpn ipsec site-to-site peer [[gts_public_ip]] ike-group [[ike_group_name_cust]] set security vpn ipsec site-to-site peer [[gts_public_ip]] local-address [[customer_public_ip]] set security vpn ipsec site-to-site peer [[gts_public_ip]] vti bind vti[[vti_number_cust]] set security vpn ipsec site-to-site peer [[gts_public_ip]] vti esp-group [[esp_group_name_cust]] set interfaces vti vti[[vti_number_cust]] address [[mask30_tunnel_ip_address_+1]]/30 set interfaces vti vti[[vti_number_cust]] description [[vpn_description_cust]] set interfaces vti vti[[vti_number_cust]] mtu 1436 set protocols static interface-route [[gts_network]]/[[gts_network_mask]] next-hop-interface vti[[vti_number_cust]]



ike_group_name_gts:
esp_group_name_gts:
customer_public_ip:
shared_key:
vpn_description_gts:
gts_public_ip:
vti_number_gts:
mask30_tunnel_ip_address:
vpn_description:
customer_network:
customer_network_mask:
ike_group_name_cust:
esp_group_name_cust:
vpn_description_cust:
vti_number_cust:
mask30_tunnel_ip_address_+1:
gts_network:
gts_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: