Created
March 8, 2019 20:41
-
-
Save dthvt/926d7793378c7863d90b8f9acb8679ba to your computer and use it in GitHub Desktop.
parse_xml - example_vpn_output.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<vpn_connection id="vpn-01d682f82965e8398"> | |
<customer_gateway_id>cgw-0da9023fee170110f</customer_gateway_id> | |
<vpn_gateway_id>vgw-097ca08d259cd98a7</vpn_gateway_id> | |
<vpn_connection_type>ipsec.1</vpn_connection_type> | |
<ipsec_tunnel> | |
<customer_gateway> | |
<tunnel_outside_address> | |
<ip_address>35.161.109.12</ip_address> | |
</tunnel_outside_address> | |
<tunnel_inside_address> | |
<ip_address>169.254.0.30</ip_address> | |
<network_mask>255.255.255.252</network_mask> | |
<network_cidr>30</network_cidr> | |
</tunnel_inside_address> | |
<bgp> | |
<asn>64520</asn> | |
<hold_time>30</hold_time> | |
</bgp> | |
</customer_gateway> | |
<vpn_gateway> | |
<tunnel_outside_address> | |
<ip_address>34.208.226.176</ip_address> | |
</tunnel_outside_address> | |
<tunnel_inside_address> | |
<ip_address>169.254.0.29</ip_address> | |
<network_mask>255.255.255.252</network_mask> | |
<network_cidr>30</network_cidr> | |
</tunnel_inside_address> | |
<bgp> | |
<asn>64522</asn> | |
<hold_time>30</hold_time> | |
</bgp> | |
</vpn_gateway> | |
<ike> | |
<authentication_protocol>sha1</authentication_protocol> | |
<encryption_protocol>aes-128-cbc</encryption_protocol> | |
<lifetime>28800</lifetime> | |
<perfect_forward_secrecy>group2</perfect_forward_secrecy> | |
<mode>main</mode> | |
<pre_shared_key> | |
random.string.here | |
</pre_shared_key> | |
</ike> | |
<ipsec> | |
<protocol>esp</protocol> | |
<authentication_protocol>hmac-sha1-96</authentication_protocol> | |
<encryption_protocol>aes-128-cbc</encryption_protocol> | |
<lifetime>3600</lifetime> | |
<perfect_forward_secrecy>group2</perfect_forward_secrecy> | |
<mode>tunnel</mode> | |
<clear_df_bit>true</clear_df_bit> | |
<fragmentation_before_encryption>true</fragmentation_before_encryption> | |
<tcp_mss_adjustment>1379</tcp_mss_adjustment> | |
<dead_peer_detection> | |
<interval>10</interval> | |
<retries>3</retries> | |
</dead_peer_detection> | |
</ipsec> | |
</ipsec_tunnel> | |
<ipsec_tunnel> | |
<customer_gateway> | |
<tunnel_outside_address> | |
<ip_address>35.161.109.12</ip_address> | |
</tunnel_outside_address> | |
<tunnel_inside_address> | |
<ip_address>169.254.0.34</ip_address> | |
<network_mask>255.255.255.252</network_mask> | |
<network_cidr>30</network_cidr> | |
</tunnel_inside_address> | |
<bgp> | |
<asn>64520</asn> | |
<hold_time>30</hold_time> | |
</bgp> | |
</customer_gateway> | |
<vpn_gateway> | |
<tunnel_outside_address> | |
<ip_address>34.212.54.191</ip_address> | |
</tunnel_outside_address> | |
<tunnel_inside_address> | |
<ip_address>169.254.0.33</ip_address> | |
<network_mask>255.255.255.252</network_mask> | |
<network_cidr>30</network_cidr> | |
</tunnel_inside_address> | |
<bgp> | |
<asn>64522</asn> | |
<hold_time>30</hold_time> | |
</bgp> | |
</vpn_gateway> | |
<ike> | |
<authentication_protocol>sha1</authentication_protocol> | |
<encryption_protocol>aes-128-cbc</encryption_protocol> | |
<lifetime>28800</lifetime> | |
<perfect_forward_secrecy>group2</perfect_forward_secrecy> | |
<mode>main</mode> | |
<pre_shared_key> | |
other_random.string.here | |
</pre_shared_key> | |
</ike> | |
<ipsec> | |
<protocol>esp</protocol> | |
<authentication_protocol>hmac-sha1-96</authentication_protocol> | |
<encryption_protocol>aes-128-cbc</encryption_protocol> | |
<lifetime>3600</lifetime> | |
<perfect_forward_secrecy>group2</perfect_forward_secrecy> | |
<mode>tunnel</mode> | |
<clear_df_bit>true</clear_df_bit> | |
<fragmentation_before_encryption>true</fragmentation_before_encryption> | |
<tcp_mss_adjustment>1379</tcp_mss_adjustment> | |
<dead_peer_detection> | |
<interval>10</interval> | |
<retries>3</retries> | |
</dead_peer_detection> | |
</ipsec> | |
</ipsec_tunnel> | |
</vpn_connection> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment