diff --git a/templates/cisco_asa_show_vpn-sessiondb_anyconnect.textfsm b/templates/cisco_asa_show_vpn-sessiondb_anyconnect.textfsm index 78c4df071e..826c7e7cf3 100644 --- a/templates/cisco_asa_show_vpn-sessiondb_anyconnect.textfsm +++ b/templates/cisco_asa_show_vpn-sessiondb_anyconnect.textfsm @@ -2,7 +2,8 @@ Value Filldown,Required SESSION_TYPE (\S+) Value USERNAME (\S+) Value Required INDEX (\d+) Value ASSIGNED_IP (\d+\.\d+\.\d+\.\d+) -Value PUBLIC_IP (\d+\.\d+\.\d+\.\d+) +Value PUBLIC_IP (\S+) +Value ASSIGNED_IPV6 (\S+) Value PROTOCOL (.+?) Value LICENSE (.+?) Value ENCRYPTION (.+?) @@ -33,6 +34,7 @@ Connection ^\s*Index\s*:\s+${INDEX}$$ ^\s*Assigned\s+IP\s*:\s+${ASSIGNED_IP}\s+Public\s*IP\s*:\s*${PUBLIC_IP}$$ ^\s*Assigned\s+IP\s*:\s+${ASSIGNED_IP}$$ + ^\s*Assigned\s+IPv6\s*:\s+${ASSIGNED_IPV6}$$ ^\s*Public\s+IP\s*:\s+${PUBLIC_IP}$$ ^\s*Protocol\s+:\s+${PROTOCOL}$$ ^\s*License\s+:\s*${LICENSE}$$ diff --git a/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect.yml b/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect.yml index 1476aa6c9f..bf75c2ca9e 100644 --- a/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect.yml +++ b/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect.yml @@ -5,9 +5,11 @@ parsed_sample: index: "1018" assigned_ip: "10.254.254.22" public_ip: "1.2.3.4" + assigned_ipv6: "" protocol: "AnyConnect-Parent SSL-Tunnel DTLS-Tunnel" license: "AnyConnect Premium" - encryption: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)AES-GCM-256 DTLS-Tunnel: (1)AES128" + encryption: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)AES-GCM-256 DTLS-Tunnel:\ + \ (1)AES128" hashing: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)SHA384 DTLS-Tunnel: (1)SHA1" bytes_tx: "17186425" bytes_rx: "7094561" diff --git a/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect1.yml b/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect1.yml index d00bf4134a..621b5ee842 100644 --- a/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect1.yml +++ b/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect1.yml @@ -5,9 +5,11 @@ parsed_sample: index: "1018" assigned_ip: "10.254.254.22" public_ip: "1.2.3.4" + assigned_ipv6: "" protocol: "AnyConnect-Parent SSL-Tunnel DTLS-Tunnel" license: "AnyConnect Premium" - encryption: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)AES-GCM-256 DTLS-Tunnel: (1)AES128" + encryption: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)AES-GCM-256 DTLS-Tunnel:\ + \ (1)AES128" hashing: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)SHA384 DTLS-Tunnel: (1)SHA1" bytes_tx: "17186425" bytes_rx: "7094561" @@ -30,6 +32,7 @@ parsed_sample: index: "1" assigned_ip: "192.168.246.1" public_ip: "10.139.1.2" + assigned_ipv6: "" protocol: "AnyConnect-Parent SSL-Tunnel DTLS-Tunnel" license: "AnyConnect Premium" encryption: "RC4 AES128" diff --git a/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect2.yml b/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect2.yml index 635272a1c5..017c5109f0 100644 --- a/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect2.yml +++ b/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect2.yml @@ -5,9 +5,11 @@ parsed_sample: index: "55620" assigned_ip: "10.15.113.59" public_ip: "8.8.8.8" + assigned_ipv6: "" protocol: "AnyConnect-Parent SSL-Tunnel DTLS-Tunnel" license: "AnyConnect Premium" - encryption: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)AES-GCM-256 DTLS-Tunnel: (1)AES256" + encryption: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)AES-GCM-256 DTLS-Tunnel:\ + \ (1)AES256" hashing: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)SHA384 DTLS-Tunnel: (1)SHA1" bytes_tx: "2310124124" bytes_rx: "241259137" @@ -30,9 +32,11 @@ parsed_sample: index: "55861" assigned_ip: "10.15.112.51" public_ip: "15.25.192.144" + assigned_ipv6: "" protocol: "AnyConnect-Parent SSL-Tunnel DTLS-Tunnel" license: "AnyConnect Premium" - encryption: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)AES-GCM-256 DTLS-Tunnel: (1)AES256" + encryption: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)AES-GCM-256 DTLS-Tunnel:\ + \ (1)AES256" hashing: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)SHA384 DTLS-Tunnel: (1)SHA1" bytes_tx: "12215025" bytes_rx: "1718697" @@ -55,6 +59,7 @@ parsed_sample: index: "56876" assigned_ip: "10.15.112.173" public_ip: "123.15.26.19" + assigned_ipv6: "" protocol: "AnyConnect-Parent" license: "AnyConnect Premium" encryption: "AnyConnect-Parent: (1)none" diff --git a/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect3.yml b/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect3.yml index e13cf5cdc2..680a60ba1c 100644 --- a/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect3.yml +++ b/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect3.yml @@ -5,6 +5,7 @@ parsed_sample: index: "57045" assigned_ip: "10.1.2.3" public_ip: "1.2.3.4" + assigned_ipv6: "" protocol: "AnyConnect-Parent SSL-Tunnel DTLS-Tunnel" license: "AnyConnect Premium" encryption: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)AES256 DTLS-Tunnel: (1)AES256" @@ -30,6 +31,7 @@ parsed_sample: index: "47520" assigned_ip: "" public_ip: "1.2.3.4" + assigned_ipv6: "" protocol: "AnyConnect-Parent" license: "AnyConnect Premium" encryption: "AnyConnect-Parent: (1)none" diff --git a/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect_ipv6.raw b/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect_ipv6.raw new file mode 100644 index 0000000000..d797233817 --- /dev/null +++ b/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect_ipv6.raw @@ -0,0 +1,16 @@ +Session Type: AnyConnect +Username : johndoe12 Index : 38847 +Assigned IP : 10.10.123.123 Public IP : 2001:db8:91::7 +Assigned IPv6: 2001:DB8:1234:1::5678 +Protocol : AnyConnect-Parent SSL-Tunnel DTLS-Tunnel +License : AnyConnect Premium +Encryption : AnyConnect-Parent: (1)none SSL-Tunnel: (1)AES-GCM-256 DTLS-Tunnel: (1)AES-GCM-256 +Hashing : AnyConnect-Parent: (1)none SSL-Tunnel: (1)SHA384 DTLS-Tunnel: (1)SHA384 +Bytes Tx : 3145031268 Bytes Rx : 58022385 +Group Policy : RAVPN Tunnel Group : RAVPN +Login Time : 01:13:32 UTC Fri Jun 5 2020 +Duration : 4h:55m:35s +Inactivity : 0h:00m:00s +VLAN Mapping : N/A VLAN : none +Audt Sess ID : 0a0edc05097bf0005ed99c3c +Security Grp : none diff --git a/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect_ipv6.yml b/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect_ipv6.yml new file mode 100644 index 0000000000..6f47d86446 --- /dev/null +++ b/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect_ipv6.yml @@ -0,0 +1,29 @@ +--- +parsed_sample: + - session_type: "AnyConnect" + username: "johndoe12" + index: "38847" + assigned_ip: "10.10.123.123" + public_ip: "2001:db8:91::7" + assigned_ipv6: "2001:DB8:1234:1::5678" + protocol: "AnyConnect-Parent SSL-Tunnel DTLS-Tunnel" + license: "AnyConnect Premium" + encryption: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)AES-GCM-256 DTLS-Tunnel:\ + \ (1)AES-GCM-256" + hashing: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)SHA384 DTLS-Tunnel: (1)SHA384" + bytes_tx: "3145031268" + bytes_rx: "58022385" + group_policy: "RAVPN" + tunnel_group: "RAVPN" + login_time: "01:13:32" + login_time_zone: "UTC" + login_weekday: "Fri" + login_month: "Jun" + login_day: "5" + login_year: "2020" + duration: "4h:55m:35s" + inactivity: "0h:00m:00s" + vlan_mapping: "N/A" + vlan: "none" + audt_sess_id: "0a0edc05097bf0005ed99c3c" + security_grp: "none" diff --git a/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect_long_usernames.yml b/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect_long_usernames.yml index f500cfb0c0..b3df4e61cb 100644 --- a/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect_long_usernames.yml +++ b/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect_long_usernames.yml @@ -5,9 +5,11 @@ parsed_sample: index: "1018" assigned_ip: "10.254.254.22" public_ip: "1.2.3.4" + assigned_ipv6: "" protocol: "AnyConnect-Parent SSL-Tunnel DTLS-Tunnel" license: "AnyConnect Premium" - encryption: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)AES-GCM-256 DTLS-Tunnel: (1)AES128" + encryption: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)AES-GCM-256 DTLS-Tunnel:\ + \ (1)AES128" hashing: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)SHA384 DTLS-Tunnel: (1)SHA1" bytes_tx: "17186425" bytes_rx: "7094561"