App-Dictionary

These scenarios check the application dictionary support provided by app-detect feature.

Local Storage Application Dictionary

Description

DUT0 configures HTTP and DNS detection. DUT1 acts as a client behind DUT0 and DUT2 runs a DNS server. Traffic is first generated without a dictionary and connections are verified to be classified only by below-L7 detectors. Then a local dictionary file is loaded and statistics are checked to be empty. An HTTP download verifies FQDN match with local dictionary and performs IP-cache population. A second download verifies IP-cache match. An SSH connection verifies static IP address range match. Finally a DNS lookup and ping verify DNS-host detection with IP-cache lookup.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 192.168.2.100/24
set interfaces ethernet eth1 address 10.215.168.64/24
set interfaces ethernet eth1 traffic nat source rule 1 address masquerade
set system conntrack app-detect dns-host
set system conntrack app-detect http-host
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

set interfaces ethernet eth0 address 192.168.2.101/24
set protocols static route 0.0.0.0/0 next-hop 192.168.2.100
set service dns forwarding name-server 10.215.168.66
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Set the following configuration in DUT2 :

set interfaces ethernet eth0 address 10.215.168.66/24
set service dns forwarding local-ttl 30
set service dns forwarding name-server 127.0.0.1
set service dns static host-name enterprise.opentok.com inet 10.215.168.1
set service dns static host-name static.opentok.com inet 192.168.2.100
set service dns static host-name www.gamblingteldat.com inet 192.168.2.10
set service dns static host-name www.newspaperteldat.com inet 192.168.2.20
set service ssh
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 4: Ping IP address 10.215.168.1 from DUT1:

admin@DUT1$ ping 10.215.168.1 count 1 size 56 timeout 1
Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data.
64 bytes from 10.215.168.1: icmp_seq=1 ttl=63 time=0.849 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.849/0.849/0.849/0.000 ms

Step 5: Run command file copy http://10.215.168.1/~robot/test_file running://user-data/ force at DUT0 and expect this output:

Show output
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    37  100    37    0     0  13323      0 --:--:-- --:--:-- --:--:-- 18500

Step 6: Init an SSH connection from DUT0 to IP address 10.215.168.66 with the user admin:

admin@DUT0$ ssh admin@10.215.168.66 option StrictHostKeyChecking=no option UserKnownHostsFile=/dev/null
Show output
Warning: Permanently added '10.215.168.66' (ECDSA) to the list of known hosts.
admin@10.215.168.66's password:
Welcome to Teldat OSDx v4.2.9.0

This system includes free software.
Contact Teldat for licenses information and source code.

Last login: Thu Mar  5 17:05:36 2026 from 10.0.0.2
admin@osdx$

Step 7: Ping IP address 10.215.168.64 from DUT1:

admin@DUT1$ ping 10.215.168.64 count 1 size 56 timeout 1
Show output
PING 10.215.168.64 (10.215.168.64) 56(84) bytes of data.
64 bytes from 10.215.168.64: icmp_seq=1 ttl=64 time=0.458 ms

--- 10.215.168.64 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.458/0.458/0.458/0.000 ms

Step 8: Run command system conntrack show at DUT0 and expect this output:

Show output
tcp      6 19 TIME_WAIT src=10.215.168.64 dst=10.215.168.1 sport=37656 dport=80 packets=6 bytes=583 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=37656 packets=4 bytes=504 [ASSURED] mark=0 use=1 appdetect[L4:80 http-host:10.215.168.1]
icmp     1 29 src=192.168.2.101 dst=10.215.168.1 type=8 code=0 id=377 packets=1 bytes=84 src=10.215.168.1 dst=10.215.168.64 type=0 code=0 id=377 packets=1 bytes=84 mark=0 use=1 appdetect[L3:1]
tcp      6 19 TIME_WAIT src=10.215.168.64 dst=10.215.168.66 sport=58324 dport=22 packets=24 bytes=5032 src=10.215.168.66 dst=10.215.168.64 sport=22 dport=58324 packets=20 bytes=4768 [ASSURED] mark=0 use=1 appdetect[L4:22]
icmp     1 29 src=192.168.2.101 dst=10.215.168.64 type=8 code=0 id=378 packets=1 bytes=84 src=10.215.168.64 dst=192.168.2.101 type=0 code=0 id=378 packets=1 bytes=84 mark=0 use=1 appdetect[L3:1]
conntrack v1.4.7 (conntrack-tools): 4 flow entries have been shown.

Step 9: Run command file copy http://10.215.168.1/~robot/test_dict.gz running://user-data/ force at DUT0 and expect this output:

Show output
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 68181  100 68181    0     0  10.7M      0 --:--:-- --:--:-- --:--:-- 10.8M

Note

The dictionary file contains the following test entries used in this scenario:

Show output
<app id="30" name="Teldat Test" version="1">
<fqdn_list>
<fqdn>10.215.168.1</fqdn>
</fqdn_list>
</app>
<app id="31" name="Teldat Test 2" version="1">
<address_list>
<range id="1">
<net_address>10.215.168.64</net_address>
<net_mask>255.255.255.192</net_mask>
</range>
</address_list>
</app>

Step 10: Modify the following configuration lines in DUT0 :

set system conntrack app-detect dictionary 1 filename 'running://user-data/test_dict.gz'
set system conntrack app-detect enable_dict_match_priv_ip

Step 11: Run command system conntrack app-detect show at DUT0 and expect this output:

Show output
---------------------------------------------------
                App-detect Stats                  #
---------------------------------------------------
Matches in static dictionaries                    0
Matches in IP-cache                               0
Modifications in IP-cache                         0
Matches in dynamic dictionaries                   0
Times appid has been refreshed                    0
Ips blacklisted from cache due to appid flapping  0
Matches in DNS CNAME cache                        0
Entries in DNS CNAME cache                        0

Step 12: Run command system conntrack clear at DUT0.

Step 13: Run command file copy http://10.215.168.1/~robot/test_file running://user-data/ force at DUT0 and expect this output:

Show output
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    37  100    37    0     0  14717      0 --:--:-- --:--:-- --:--:-- 18500

Step 14: Run command system conntrack show at DUT0 and check if output matches the following regular expressions:

appdetect\[U128:30\shttp-host:10.215.168.1\]
Show output
tcp      6 19 TIME_WAIT src=10.215.168.64 dst=10.215.168.1 sport=37660 dport=80 packets=6 bytes=583 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=37660 packets=4 bytes=504 [ASSURED] mark=0 use=1 appdetect[U128:30 http-host:10.215.168.1]
conntrack v1.4.7 (conntrack-tools): 1 flow entries have been shown.

Step 15: Run command system conntrack app-detect show at DUT0 and expect this output:

Show output
---------------------------------------------------
                App-detect Stats                  #
---------------------------------------------------
Matches in static dictionaries                    0
Matches in IP-cache                               0
Modifications in IP-cache                         1
Matches in dynamic dictionaries                   1
Times appid has been refreshed                    0
Ips blacklisted from cache due to appid flapping  0
Matches in DNS CNAME cache                        0
Entries in DNS CNAME cache                        0

Step 16: Run command file copy http://10.215.168.1/~robot/test_file running://user-data/ force at DUT0 and expect this output:

Show output
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    37  100    37    0     0   6312      0 --:--:-- --:--:-- --:--:--  7400

Step 17: Run command system conntrack app-detect show at DUT0 and expect this output:

Show output
---------------------------------------------------
                App-detect Stats                  #
---------------------------------------------------
Matches in static dictionaries                    0
Matches in IP-cache                               1
Modifications in IP-cache                         1
Matches in dynamic dictionaries                   2
Times appid has been refreshed                    0
Ips blacklisted from cache due to appid flapping  0
Matches in DNS CNAME cache                        0
Entries in DNS CNAME cache                        0

Step 18: Init an SSH connection from DUT0 to IP address 10.215.168.66 with the user admin:

admin@DUT0$ ssh admin@10.215.168.66 option StrictHostKeyChecking=no option UserKnownHostsFile=/dev/null
Show output
Warning: Permanently added '10.215.168.66' (ECDSA) to the list of known hosts.
admin@10.215.168.66's password:
Welcome to Teldat OSDx v4.2.9.0

This system includes free software.
Contact Teldat for licenses information and source code.

Last login: Thu Mar  5 17:12:57 2026 from 10.215.168.64
admin@osdx$

Step 19: Run command system conntrack show at DUT0 and check if output matches the following regular expressions:

src=10.215.168.64\sdst=10.215.168.66.*appdetect\[U128:31]
Show output
tcp      6 18 TIME_WAIT src=10.215.168.64 dst=10.215.168.1 sport=37660 dport=80 packets=6 bytes=583 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=37660 packets=4 bytes=504 [ASSURED] mark=0 use=1 appdetect[U128:30 http-host:10.215.168.1]
tcp      6 19 TIME_WAIT src=10.215.168.64 dst=10.215.168.1 sport=37668 dport=80 packets=6 bytes=583 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=37668 packets=4 bytes=504 [ASSURED] mark=0 use=1 appdetect[U128:30 http-host:10.215.168.1]
tcp      6 19 TIME_WAIT src=10.215.168.64 dst=10.215.168.66 sport=58340 dport=22 packets=24 bytes=5032 src=10.215.168.66 dst=10.215.168.64 sport=22 dport=58340 packets=22 bytes=4960 [ASSURED] mark=0 use=1 appdetect[U128:31]
conntrack v1.4.7 (conntrack-tools): 3 flow entries have been shown.

Step 20: Run command system conntrack app-detect show at DUT0 and expect this output:

Show output
---------------------------------------------------
                App-detect Stats                  #
---------------------------------------------------
Matches in static dictionaries                    1
Matches in IP-cache                               1
Modifications in IP-cache                         1
Matches in dynamic dictionaries                   2
Times appid has been refreshed                    0
Ips blacklisted from cache due to appid flapping  0
Matches in DNS CNAME cache                        0
Entries in DNS CNAME cache                        0

Step 21: Ping IP address static.opentok.com from DUT1:

admin@DUT1$ ping static.opentok.com count 1 size 56 timeout 1
Show output
PING static.opentok.com (192.168.2.100) 56(84) bytes of data.
64 bytes from static.opentok.com (192.168.2.100): icmp_seq=1 ttl=64 time=0.524 ms

--- static.opentok.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.524/0.524/0.524/0.000 ms

Step 22: Run command system conntrack show at DUT0 and expect this output:

Show output
icmp     1 29 src=192.168.2.101 dst=192.168.2.100 type=8 code=0 id=379 packets=1 bytes=84 src=192.168.2.100 dst=192.168.2.101 type=0 code=0 id=379 packets=1 bytes=84 mark=0 use=1 appdetect[U128:12]
tcp      6 18 TIME_WAIT src=10.215.168.64 dst=10.215.168.1 sport=37660 dport=80 packets=6 bytes=583 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=37660 packets=4 bytes=504 [ASSURED] mark=0 use=1 appdetect[U128:30 http-host:10.215.168.1]
udp      17 29 src=192.168.2.101 dst=10.215.168.66 sport=44712 dport=53 packets=1 bytes=64 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=44712 packets=1 bytes=64 mark=0 use=1 appdetect[U128:31]
udp      17 29 src=192.168.2.101 dst=10.215.168.66 sport=35731 dport=53 packets=1 bytes=64 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=35731 packets=1 bytes=80 mark=0 use=1 appdetect[U128:31 dns-host:static.opentok.com]
tcp      6 18 TIME_WAIT src=10.215.168.64 dst=10.215.168.1 sport=37668 dport=80 packets=6 bytes=583 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=37668 packets=4 bytes=504 [ASSURED] mark=0 use=1 appdetect[U128:30 http-host:10.215.168.1]
tcp      6 19 TIME_WAIT src=10.215.168.64 dst=10.215.168.66 sport=58340 dport=22 packets=24 bytes=5032 src=10.215.168.66 dst=10.215.168.64 sport=22 dport=58340 packets=22 bytes=4960 [ASSURED] mark=0 use=1 appdetect[U128:31]
udp      17 29 src=192.168.2.101 dst=10.215.168.66 sport=49800 dport=53 packets=1 bytes=72 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=49800 packets=1 bytes=104 mark=0 use=1 appdetect[U128:31]
conntrack v1.4.7 (conntrack-tools): 7 flow entries have been shown.

Step 23: Run command system conntrack app-detect show at DUT0 and expect this output:

Show output
---------------------------------------------------
                App-detect Stats                  #
---------------------------------------------------
Matches in static dictionaries                    4
Matches in IP-cache                               2
Modifications in IP-cache                         2
Matches in dynamic dictionaries                   3
Times appid has been refreshed                    0
Ips blacklisted from cache due to appid flapping  0
Matches in DNS CNAME cache                        0
Entries in DNS CNAME cache                        0

CLI Custom Application Dictionary

Description

DUT0 configures HTTP detection with a custom dictionary defined via CLI. DUT1 acts as a client behind DUT0 and downloads a file via HTTP. The connection is verified to be classified with the custom App-ID on the first request through FQDN match, and on subsequent requests through IP-cache.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 192.168.2.100/24
set interfaces ethernet eth1 address 10.215.168.64/24
set interfaces ethernet eth1 traffic nat source rule 1 address masquerade
set system conntrack app-detect dictionary 1 custom app-id 42 fqdn enterprise.opentok.com
set system conntrack app-detect dictionary 1 custom app-id 42 name 'Teldat Test'
set system conntrack app-detect dictionary 2 custom app-id 43 fqdn enterprise.opentok.com
set system conntrack app-detect dictionary 2 custom app-id 43 name 'Teldat Test'
set system conntrack app-detect http-host
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

set interfaces ethernet eth0 address 192.168.2.101/24
set protocols static route 0.0.0.0/0 next-hop 192.168.2.100
set service dns forwarding name-server 10.215.168.66
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Set the following configuration in DUT2 :

set interfaces ethernet eth0 address 10.215.168.66/24
set service dns forwarding local-ttl 30
set service dns forwarding name-server 127.0.0.1
set service dns static host-name enterprise.opentok.com inet 10.215.168.1
set service dns static host-name static.opentok.com inet 192.168.2.100
set service dns static host-name www.gamblingteldat.com inet 192.168.2.10
set service dns static host-name www.newspaperteldat.com inet 192.168.2.20
set service ssh
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 4: Ping IP address 10.215.168.1 from DUT1:

admin@DUT1$ ping 10.215.168.1 count 1 size 56 timeout 1
Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data.
64 bytes from 10.215.168.1: icmp_seq=1 ttl=63 time=0.946 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.946/0.946/0.946/0.000 ms

Step 5: Run command system conntrack clear at DUT0.

Step 6: Run command system conntrack app-detect show at DUT0 and expect this output:

Show output
---------------------------------------------------
                App-detect Stats                  #
---------------------------------------------------
Matches in static dictionaries                    0
Matches in IP-cache                               0
Modifications in IP-cache                         0
Matches in dynamic dictionaries                   0
Times appid has been refreshed                    0
Ips blacklisted from cache due to appid flapping  0
Matches in DNS CNAME cache                        0
Entries in DNS CNAME cache                        0

Step 7: Run command system conntrack clear at DUT0.

Step 8: Run command file copy http://enterprise.opentok.com/~robot/test_file running://user-data/ force at DUT1 and expect this output:

Show output
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    37  100    37    0     0   5403      0 --:--:-- --:--:-- --:--:--  6166

Step 9: Run command system conntrack show at DUT0 and check if output matches the following regular expressions:

appdetect\[U6:42\shttp-host:enterprise.opentok.com\]
Show output
udp      17 29 src=192.168.2.101 dst=10.215.168.66 sport=41049 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=41049 packets=1 bytes=68 mark=0 use=1 appdetect[L4:53]
tcp      6 src=192.168.2.101 dst=10.215.168.1 sport=43736 dport=80 packets=6 bytes=593 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=43736 packets=4 bytes=504 [ASSURED] [OFFLOAD, packets=1 bytes=52 packets=2 bytes=392] mark=0 use=3 appdetect[U6:42 http-host:enterprise.opentok.com]
udp      17 29 src=192.168.2.101 dst=10.215.168.66 sport=55588 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=55588 packets=1 bytes=84 mark=0 use=1 appdetect[L4:53]
conntrack v1.4.7 (conntrack-tools): 3 flow entries have been shown.

Step 10: Run command system conntrack app-detect show at DUT0 and expect this output:

Show output
---------------------------------------------------
                App-detect Stats                  #
---------------------------------------------------
Matches in static dictionaries                    0
Matches in IP-cache                               0
Modifications in IP-cache                         1
Matches in dynamic dictionaries                   1
Times appid has been refreshed                    0
Ips blacklisted from cache due to appid flapping  0
Matches in DNS CNAME cache                        0
Entries in DNS CNAME cache                        0

Step 11: Run command file copy http://enterprise.opentok.com/~robot/test_file running://user-data/ force at DUT1 and expect this output:

Show output
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    37  100    37    0     0   5231      0 --:--:-- --:--:-- --:--:--  6166

Step 12: Run command system conntrack app-detect show at DUT0 and expect this output:

Show output
---------------------------------------------------
                App-detect Stats                  #
---------------------------------------------------
Matches in static dictionaries                    0
Matches in IP-cache                               1
Modifications in IP-cache                         1
Matches in dynamic dictionaries                   2
Times appid has been refreshed                    0
Ips blacklisted from cache due to appid flapping  0
Matches in DNS CNAME cache                        0
Entries in DNS CNAME cache                        0

Remote Application Dictionary

Description

DUT0 configures HTTP detection with a remote application dictionary served by a categorization server. DUT1 acts as a client behind DUT0 and DUT2 runs a DNS server. A traffic policy drops uncategorized traffic until the remote dictionary classifies it. Traffic belonging to the remote dictionary protocol is allowed.

Phase 1: HTTP-host detection triggers a remote dictionary lookup in override mode and the connection is classified with the remote App-ID.

Phase 2: DNS-host detection is added so classification happens at DNS resolution time and populates the IP-cache.

Phase 3: App-detect chained storage mode is enabled and the full App-ID chain is verified.

Phase 4: An alarm is configured to detect communication errors with the remote dictionary server.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 192.168.2.100/24
set interfaces ethernet eth1 address 10.215.168.64/24
set interfaces ethernet eth1 traffic nat source rule 1 address masquerade
set interfaces ethernet eth1 traffic policy out POL
set system conntrack app-detect debug
set system conntrack app-detect dictionary 1 remote encrypted-key U2FsdGVkX18efDmJHSbeHc/pkvWzpNft10GsBEG/PlI=
set system conntrack app-detect dictionary 1 remote encrypted-url U2FsdGVkX1/V/23ppUB+wipOEqIObO0wFITStARiDNvSEmtqdaOgUr/4f/g1DEAD
set system conntrack app-detect dictionary 1 remote mark 5555
set system conntrack app-detect dictionary 1 remote property category
set system conntrack app-detect dictionary 1 remote ssl-allow-insecure
set system conntrack app-detect dictionary 2 remote encrypted-key U2FsdGVkX1/ooHqK3EKcA4brQHgZGYDBIwzEhZTDMFs=
set system conntrack app-detect dictionary 2 remote encrypted-url U2FsdGVkX18+++F17I2q0Y1rP81JGaFk/6P8HkEpk0l5aZiHL6Zya67GbwmVR3pV
set system conntrack app-detect dictionary 2 remote mark 5555
set system conntrack app-detect dictionary 2 remote property reputation
set system conntrack app-detect dictionary 2 remote ssl-allow-insecure
set system conntrack app-detect enable_dict_match_priv_ip
set system conntrack app-detect http
set system conntrack app-detect http-host
set system conntrack app-detect refresh-flow-appid
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set traffic policy POL rule 1 action accept
set traffic policy POL rule 1 selector RDICT
set traffic policy POL rule 2 action drop
set traffic policy POL rule 2 selector RESOLVING
set traffic selector RDICT rule 1 mark 5555
set traffic selector RESOLVING rule 1 app-detect state detecting
set traffic selector RESOLVING rule 1 app-detect state host-detected

Step 2: Set the following configuration in DUT1 :

set interfaces ethernet eth0 address 192.168.2.101/24
set protocols static route 0.0.0.0/0 next-hop 192.168.2.100
set service dns forwarding name-server 10.215.168.66
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Set the following configuration in DUT2 :

set interfaces ethernet eth0 address 10.215.168.66/24
set service dns forwarding local-ttl 30
set service dns forwarding name-server 127.0.0.1
set service dns static host-name enterprise.opentok.com inet 10.215.168.1
set service dns static host-name static.opentok.com inet 192.168.2.100
set service dns static host-name www.gamblingteldat.com inet 192.168.2.10
set service dns static host-name www.newspaperteldat.com inet 192.168.2.20
set service ssh
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 4: Ping IP address 10.215.168.1 from DUT1:

admin@DUT1$ ping 10.215.168.1 count 1 size 56 timeout 1
Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data.
64 bytes from 10.215.168.1: icmp_seq=1 ttl=63 time=0.741 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.741/0.741/0.741/0.000 ms

Step 5: Run command system conntrack clear at DUT0.

Step 6: Run command file copy http://enterprise.opentok.com/~robot/test_file running://user-data/ force at DUT1, press Ctrl+C after 2 seconds and expect this output:

Show output
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0^C


Operation aborted by user.

admin@osdx$

Step 7: Run command system journal show | tail -n 200 at DUT0 and expect this output:

Show output
Mar 05 17:14:34.483120 osdx systemd-journald[466780]: Runtime Journal (/run/log/journal/78445f9299f9414990e66dc8aa510838) is 1.7M, max 13.8M, 12.0M free.
Mar 05 17:14:34.487057 osdx systemd-journald[466780]: Received client request to rotate journal, rotating.
Mar 05 17:14:34.487165 osdx systemd-journald[466780]: Vacuuming done, freed 0B of archived journals from /run/log/journal/78445f9299f9414990e66dc8aa510838.
Mar 05 17:14:34.496887 osdx OSDxCLI[466618]: User 'admin' executed a new command: 'system journal clear'.
Mar 05 17:14:34.715191 osdx OSDxCLI[466618]: User 'admin' executed a new command: 'system coredump delete all'.
Mar 05 17:14:34.934495 osdx OSDxCLI[466618]: User 'admin' entered the configuration menu.
Mar 05 17:14:35.019792 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set interfaces ethernet eth0 address 192.168.2.100/24'.
Mar 05 17:14:35.093442 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set interfaces ethernet eth1 address 10.215.168.64/24'.
Mar 05 17:14:35.227426 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set interfaces ethernet eth1 traffic nat source rule 1 address masquerade'.
Mar 05 17:14:35.281414 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set interfaces ethernet eth1 traffic policy out POL'.
Mar 05 17:14:35.373676 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set traffic policy POL rule 1 action accept'.
Mar 05 17:14:35.441700 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set traffic policy POL rule 1 selector RDICT'.
Mar 05 17:14:35.534926 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set traffic policy POL rule 2 action drop'.
Mar 05 17:14:35.612553 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set traffic policy POL rule 2 selector RESOLVING'.
Mar 05 17:14:35.700802 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set traffic selector RDICT rule 1 mark 5555'.
Mar 05 17:14:35.768666 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set traffic selector RESOLVING rule 1 app-detect state detecting'.
Mar 05 17:14:35.854028 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set traffic selector RESOLVING rule 1 app-detect state host-detected'.
Mar 05 17:14:35.927405 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect dictionary 1 remote url ******'.
Mar 05 17:14:36.038621 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect dictionary 1 remote key ******'.
Mar 05 17:14:36.092376 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect dictionary 1 remote ssl-allow-insecure'.
Mar 05 17:14:36.201914 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect dictionary 1 remote property category'.
Mar 05 17:14:36.272873 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect dictionary 2 remote url ******'.
Mar 05 17:14:36.368117 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect dictionary 2 remote key ******'.
Mar 05 17:14:36.420869 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect dictionary 2 remote ssl-allow-insecure'.
Mar 05 17:14:36.528809 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect dictionary 2 remote property reputation'.
Mar 05 17:14:36.591249 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect dictionary 1 remote mark 5555'.
Mar 05 17:14:36.683926 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect dictionary 2 remote mark 5555'.
Mar 05 17:14:36.733848 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect http'.
Mar 05 17:14:36.828080 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect http-host'.
Mar 05 17:14:36.883184 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect refresh-flow-appid'.
Mar 05 17:14:36.979417 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect enable_dict_match_priv_ip'.
Mar 05 17:14:37.031734 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect debug'.
Mar 05 17:14:37.140937 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'show working'.
Mar 05 17:14:37.214009 osdx ubnt-cfgd[468358]: inactive
Mar 05 17:14:37.271997 osdx INFO[468396]: FRR daemons did not change
Mar 05 17:14:37.443036 osdx kernel: nfUDPlink: module init
Mar 05 17:14:37.443105 osdx kernel: app-detect: module init
Mar 05 17:14:37.443119 osdx kernel: app-detect: registered: sysctl net.appdetect
Mar 05 17:14:37.443131 osdx kernel: nfUDPlink: connected 127.0.0.1:49000
Mar 05 17:14:37.443143 osdx kernel: nfUDPlink: added destination 127.0.0.1:49000
Mar 05 17:14:37.443155 osdx kernel: app-detect: expression init
Mar 05 17:14:37.443172 osdx kernel: app-detect: appid cache initialized (override=yes, chained=yes)
Mar 05 17:14:37.443183 osdx kernel: app-detect: cache changes counter set appid_changes_count found (klen=4, dlen=4)
Mar 05 17:14:37.459036 osdx kernel: app-detect: set target dict _remote_ priority 1 type unknown (new,empty)
Mar 05 17:14:37.459108 osdx kernel: app-detect: linked list of enabled dicts:
Mar 05 17:14:37.459122 osdx kernel: app-detect:   (empty, no dicts)
Mar 05 17:14:37.459132 osdx kernel: app-detect: linked list of disabled dicts:
Mar 05 17:14:37.459142 osdx kernel: app-detect:   (0) dictionary _remote_, priority 1 type unknown (target_dict)
Mar 05 17:14:37.459150 osdx kernel: app-detect: initialized expiration timer for REMOTE dict _remote_
Mar 05 17:14:37.459157 osdx kernel: app-detect: set type of dict _remote_ to remote
Mar 05 17:14:37.459169 osdx kernel: app-detect: user set num_hash_entries=40000
Mar 05 17:14:37.459176 osdx kernel: app-detect: selected hash dict hash table with 16 hash bits and 65536 buckets for max 40000 entries (supported range 2^8...2^20)
Mar 05 17:14:37.459184 osdx kernel: app-detect: allocated memory for hash table with 65536 buckets (524288 bytes)
Mar 05 17:14:37.463079 osdx kernel: app-detect: allocated memory for 40000 hash entries (4160000 bytes)
Mar 05 17:14:37.463120 osdx kernel: app-detect: set dictionary _remote_ hash_key d46225f3cb7730441efc28f7ad6acf2604ffe1719e801afac8457b3bf45deec3
Mar 05 17:14:37.463133 osdx kernel: app-detect: enable remote dictionary _remote_
Mar 05 17:14:37.463140 osdx kernel: app-detect: dictionary _remote_ enabled
Mar 05 17:14:37.463153 osdx kernel: app-detect: linked list of enabled dicts:
Mar 05 17:14:37.463161 osdx kernel: app-detect:   (0) dictionary _remote_, priority 1 type remote (target_dict)
Mar 05 17:14:37.463168 osdx kernel: app-detect: linked list of disabled dicts:
Mar 05 17:14:37.463175 osdx kernel: app-detect:   (empty, no dicts)
Mar 05 17:14:37.463182 osdx kernel: app-detect: set target dict _remote_ priority 2 type unknown (new,empty)
Mar 05 17:14:37.463201 osdx kernel: app-detect: linked list of enabled dicts:
Mar 05 17:14:37.463209 osdx kernel: app-detect:   (0) dictionary _remote_, priority 1 type remote
Mar 05 17:14:37.463216 osdx kernel: app-detect: linked list of disabled dicts:
Mar 05 17:14:37.463223 osdx kernel: app-detect:   (0) dictionary _remote_, priority 2 type unknown (target_dict)
Mar 05 17:14:37.463230 osdx kernel: app-detect: initialized expiration timer for REMOTE dict _remote_
Mar 05 17:14:37.463238 osdx kernel: app-detect: set type of dict _remote_ to remote
Mar 05 17:14:37.463245 osdx kernel: app-detect: user set num_hash_entries=40000
Mar 05 17:14:37.463253 osdx kernel: app-detect: selected hash dict hash table with 16 hash bits and 65536 buckets for max 40000 entries (supported range 2^8...2^20)
Mar 05 17:14:37.463260 osdx kernel: app-detect: allocated memory for hash table with 65536 buckets (524288 bytes)
Mar 05 17:14:37.463268 osdx kernel: app-detect: allocated memory for 40000 hash entries (4160000 bytes)
Mar 05 17:14:37.463275 osdx kernel: app-detect: set dictionary _remote_ hash_key d46225f3cb7730441efc28f7ad6acf2604ffe1719e801afac8457b3bf45deec3
Mar 05 17:14:37.463282 osdx kernel: app-detect: enable remote dictionary _remote_
Mar 05 17:14:37.463296 osdx kernel: app-detect: dictionary _remote_ enabled
Mar 05 17:14:37.463306 osdx kernel: app-detect: linked list of enabled dicts:
Mar 05 17:14:37.463313 osdx kernel: app-detect:   (0) dictionary _remote_, priority 1 type remote
Mar 05 17:14:37.463320 osdx kernel: app-detect:   (1) dictionary _remote_, priority 2 type remote (target_dict)
Mar 05 17:14:37.463328 osdx kernel: app-detect: linked list of disabled dicts:
Mar 05 17:14:37.463334 osdx kernel: app-detect:   (empty, no dicts)
Mar 05 17:14:37.471167 osdx INFO[468433]: Updated /etc/default/osdx_tcatd.conf
Mar 05 17:14:37.471205 osdx INFO[468433]: Restarting Traffic Categorization (TCATD) service ...
Mar 05 17:14:37.515440 osdx systemd[1]: Starting osdx-tcatd.service - App-Detect Traffic Categorization daemon...
Mar 05 17:14:37.835145 osdx systemd[1]: Started osdx-tcatd.service - App-Detect Traffic Categorization daemon.
Mar 05 17:14:37.836478 osdx osdx-tcatd[468437]: Dict_client. rdict_num 2 mark 5555 local-vrf
Mar 05 17:14:37.836581 osdx osdx-tcatd[468437]: Dict_client. ERROR (dict 2) 7 (Couldn't connect to server): Unable to connect to server
Mar 05 17:14:37.836665 osdx osdx-tcatd[468437]: Dict_client. rdict_num 1 mark 5555 local-vrf
Mar 05 17:14:37.836707 osdx osdx-tcatd[468437]: Dict_client. ERROR (dict 1) 7 (Couldn't connect to server): Unable to connect to server
Mar 05 17:14:37.871033 osdx kernel: 8021q: adding VLAN 0 to HW filter on device eth1
Mar 05 17:14:37.925384 osdx WARNING[468527]: No supported link modes on interface eth1
Mar 05 17:14:37.926783 osdx modulelauncher[468527]: osdx.utils.xos cmd error: /sbin/ethtool -A eth1 autoneg on
Mar 05 17:14:37.926796 osdx modulelauncher[468527]: Command '/sbin/ethtool -A eth1 autoneg on' returned non-zero exit status 76.
Mar 05 17:14:37.927984 osdx modulelauncher[468527]: osdx.utils.xos cmd error: /sbin/ethtool -s eth1 autoneg on advertise Pause off Asym_Pause off --
Mar 05 17:14:37.927995 osdx modulelauncher[468527]: Command '/sbin/ethtool -s eth1 autoneg on advertise Pause off Asym_Pause off --' returned non-zero exit status 75.
Mar 05 17:14:37.967067 osdx kernel: 8021q: adding VLAN 0 to HW filter on device eth0
Mar 05 17:14:38.011096 osdx WARNING[468607]: No supported link modes on interface eth0
Mar 05 17:14:38.012454 osdx modulelauncher[468607]: osdx.utils.xos cmd error: /sbin/ethtool -A eth0 autoneg on
Mar 05 17:14:38.012466 osdx modulelauncher[468607]: Command '/sbin/ethtool -A eth0 autoneg on' returned non-zero exit status 76.
Mar 05 17:14:38.013686 osdx modulelauncher[468607]: osdx.utils.xos cmd error: /sbin/ethtool -s eth0 autoneg on advertise Pause off Asym_Pause off --
Mar 05 17:14:38.013694 osdx modulelauncher[468607]: Command '/sbin/ethtool -s eth0 autoneg on advertise Pause off Asym_Pause off --' returned non-zero exit status 75.
Mar 05 17:14:38.210694 osdx cfgd[1863]: [466618]Completed change to active configuration
Mar 05 17:14:38.225064 osdx OSDxCLI[466618]: User 'admin' committed the configuration.
Mar 05 17:14:38.240995 osdx OSDxCLI[466618]: User 'admin' left the configuration menu.
Mar 05 17:14:41.059601 osdx OSDxCLI[466618]: User 'admin' executed a new command: 'system conntrack clear'.
Mar 05 17:14:41.196681 osdx kernel: app-detect: field http-host detected: enterprise.opentok.com. Org(src/dst) 192.168.2.101:50838/10.215.168.1:80
Mar 05 17:14:41.196754 osdx kernel: app-detect: http detected. Org(src/dst) 192.168.2.101:50838/10.215.168.1:80
Mar 05 17:14:41.196763 osdx kernel: app-detect: dictionary search for enterprise.opentok.com
Mar 05 17:14:41.196775 osdx kernel: app-detect: search in dict _remote_, prio 1
Mar 05 17:14:41.196799 osdx kernel: app-detect: search in dict _remote_, prio 2
Mar 05 17:14:41.196770 osdx osdx-tcatd[468437]: UDP_Server. Read 27 bytes
Mar 05 17:14:41.196774 osdx osdx-tcatd[468437]: UDP_Server. Kernel_Message parse. Read message addressed to dictionary 1 FQDN enterprise.opentok.com
Mar 05 17:14:41.196793 osdx osdx-tcatd[468437]: Dict_client. Send query (dict 1): {"requestid": "besafepro_request_id","oemid": "Teldat","deviceid": "develop","uid": "","queries": ["getinfo", "getrepinfo"],"fqdns": ["enterprise.opentok.com"],"xml": 0}
Mar 05 17:14:41.196811 osdx osdx-tcatd[468437]: UDP_Server. Read 27 bytes
Mar 05 17:14:41.196813 osdx osdx-tcatd[468437]: UDP_Server. Kernel_Message parse. Read message addressed to dictionary 2 FQDN enterprise.opentok.com
Mar 05 17:14:41.196826 osdx osdx-tcatd[468437]: Dict_client. Send query (dict 2): {"requestid": "besafepro_request_id","oemid": "Teldat","deviceid": "develop","uid": "","queries": ["getinfo", "getrepinfo"],"fqdns": ["enterprise.opentok.com"],"xml": 0}
Mar 05 17:14:41.454919 osdx osdx-tcatd[468437]: Dict_client. Received answer (dict 1): {"status": 200, "requestid": "besafepro_request_id", "type": "fqdns", "TTL": 172800, "results": [{"fqdns": "enterprise.opentok.com", "queries": {"getinfo": {"a1cat": 0, "reputation": 88, "lcp": "opentok.com", "cats": [{"catid": 7, "conf": 95}]}, "getrepinfo": {"reputation": 88, "country": "", "popularity": 0, "a
ge": 0, "threathistory": 0}}}]}
Mar 05 17:14:41.455058 osdx kernel: app-detect: set target dict _remote_ priority 1 type remote (existing,enabled)
Mar 05 17:14:41.455081 osdx kernel: app-detect: linked list of enabled dicts:
Mar 05 17:14:41.455095 osdx kernel: app-detect:   (0) dictionary _remote_, priority 1 type remote (target_dict)
Mar 05 17:14:41.455103 osdx kernel: app-detect:   (1) dictionary _remote_, priority 2 type remote
Mar 05 17:14:41.455114 osdx kernel: app-detect: linked list of disabled dicts:
Mar 05 17:14:41.455125 osdx kernel: app-detect:   (empty, no dicts)
Mar 05 17:14:41.455135 osdx kernel: app-detect: set fqdn hash 46b26ca475a30e2c2b54f5356b2738abe73ead8a02742c712c9e645e233e9d74, hash table index=0018098 (0x046b2) (16 bits), ttl 172800 seconds
Mar 05 17:14:41.454936 osdx osdx-tcatd[468437]: UDP_Server. Kernel_Message format. Write message addressed to dictionary 1 FQDN enterprise.opentok.com TTL 172800 AppID:82000007
Mar 05 17:14:41.454987 osdx osdx-tcatd[468437]: UDP_Server. Sent 38 bytes
Mar 05 17:14:41.455212 osdx osdx-tcatd[468437]: Dict_client. Received answer (dict 2): {"status": 200, "requestid": "besafepro_request_id", "type": "fqdns", "TTL": 172800, "results": [{"fqdns": "enterprise.opentok.com", "queries": {"getinfo": {"a1cat": 0, "reputation": 88, "lcp": "opentok.com", "cats": [{"catid": 7, "conf": 95}]}, "getrepinfo": {"reputation": 88, "country": "", "popularity": 0, "a
ge": 0, "threathistory": 0}}}]}
Mar 05 17:14:41.455223 osdx osdx-tcatd[468437]: UDP_Server. Kernel_Message format. Write message addressed to dictionary 2 FQDN enterprise.opentok.com TTL 172800 AppID:83000058
Mar 05 17:14:41.455251 osdx osdx-tcatd[468437]: UDP_Server. Sent 38 bytes
Mar 05 17:14:41.459030 osdx kernel: app-detect: set target dict _remote_ priority 2 type remote (existing,enabled)
Mar 05 17:14:41.459050 osdx kernel: app-detect: linked list of enabled dicts:
Mar 05 17:14:41.459061 osdx kernel: app-detect:   (0) dictionary _remote_, priority 1 type remote
Mar 05 17:14:41.459069 osdx kernel: app-detect:   (1) dictionary _remote_, priority 2 type remote (target_dict)
Mar 05 17:14:41.459077 osdx kernel: app-detect: linked list of disabled dicts:
Mar 05 17:14:41.459084 osdx kernel: app-detect:   (empty, no dicts)
Mar 05 17:14:41.459091 osdx kernel: app-detect: set fqdn hash 46b26ca475a30e2c2b54f5356b2738abe73ead8a02742c712c9e645e233e9d74, hash table index=0018098 (0x046b2) (16 bits), ttl 172800 seconds

Step 8: Run command system conntrack show at DUT0 and check if output matches the following regular expressions:

tcp.*dst=10.215.168.1.*dport=443
Show output
udp      17 27 src=192.168.2.101 dst=10.215.168.66 sport=41031 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=41031 packets=1 bytes=84 mark=0 use=1 appdetect[L4:53]
tcp      6 3597 ESTABLISHED src=10.215.168.64 dst=10.215.168.1 sport=35054 dport=443 packets=10 bytes=1607 src=10.215.168.1 dst=10.215.168.64 sport=443 dport=35054 packets=9 bytes=3410 [ASSURED] mark=0 use=1 appdetect[L4:443]
udp      17 27 src=192.168.2.101 dst=10.215.168.66 sport=49729 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=49729 packets=1 bytes=68 mark=0 use=1 appdetect[L4:53]
udp      17 27 src=127.0.0.1 dst=127.0.0.1 sport=45477 dport=49000 packets=2 bytes=110 src=127.0.0.1 dst=127.0.0.1 sport=49000 dport=45477 packets=2 bytes=132 mark=0 use=1 appdetect[L4:49000]
tcp      6 3597 ESTABLISHED src=10.215.168.64 dst=10.215.168.1 sport=35056 dport=443 packets=10 bytes=1607 src=10.215.168.1 dst=10.215.168.64 sport=443 dport=35056 packets=10 bytes=3462 [ASSURED] mark=0 use=1 appdetect[L4:443]
tcp      6 299 ESTABLISHED src=192.168.2.101 dst=10.215.168.1 sport=50838 dport=80 packets=8 bytes=1789 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=50838 packets=1 bytes=60 [ASSURED] mark=0 use=1 appdetect[L4:80 http-host:enterprise.opentok.com]
conntrack v1.4.7 (conntrack-tools): 6 flow entries have been shown.

Step 9: Run command traffic selector RDICT show at DUT0 and check if output matches the following regular expressions:

1\s+[1-9]\d*\s+\d+
Show output
Selector RDICT (Policy POL -- ifc eth1 -- hook out prio very-high -- rule 1)

-----------------------------------------------------
rule   pkts match  pkts eval  bytes match  bytes eval
-----------------------------------------------------
1              20         37         3214        5855
-----------------------------------------------------
Total          20         37         3214        5855

Step 10: Run command system conntrack show at DUT0 and check if output matches the following regular expressions:

tcp.*dport=80.*packets=[1-9].*appdetect\[L4:80\shttp-host:enterprise.opentok.com\]
Show output
udp      17 27 src=192.168.2.101 dst=10.215.168.66 sport=41031 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=41031 packets=1 bytes=84 mark=0 use=1 appdetect[L4:53]
tcp      6 3597 ESTABLISHED src=10.215.168.64 dst=10.215.168.1 sport=35054 dport=443 packets=10 bytes=1607 src=10.215.168.1 dst=10.215.168.64 sport=443 dport=35054 packets=9 bytes=3410 [ASSURED] mark=0 use=1 appdetect[L4:443]
udp      17 27 src=192.168.2.101 dst=10.215.168.66 sport=49729 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=49729 packets=1 bytes=68 mark=0 use=1 appdetect[L4:53]
udp      17 27 src=127.0.0.1 dst=127.0.0.1 sport=45477 dport=49000 packets=2 bytes=110 src=127.0.0.1 dst=127.0.0.1 sport=49000 dport=45477 packets=2 bytes=132 mark=0 use=1 appdetect[L4:49000]
tcp      6 3597 ESTABLISHED src=10.215.168.64 dst=10.215.168.1 sport=35056 dport=443 packets=10 bytes=1607 src=10.215.168.1 dst=10.215.168.64 sport=443 dport=35056 packets=10 bytes=3462 [ASSURED] mark=0 use=1 appdetect[L4:443]
tcp      6 299 ESTABLISHED src=192.168.2.101 dst=10.215.168.1 sport=50838 dport=80 packets=8 bytes=1789 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=50838 packets=1 bytes=60 [ASSURED] mark=0 use=1 appdetect[L4:80 http-host:enterprise.opentok.com]
conntrack v1.4.7 (conntrack-tools): 6 flow entries have been shown.

Step 11: Run command system conntrack clear at DUT1.

Step 12: Run command file copy http://enterprise.opentok.com/~robot/test_file running://user-data/ force at DUT1, press Ctrl+C after 2 seconds and expect this output:

Show output
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    37  100    37    0     0   7748      0 --:--:-- --:--:-- --:--:--  9250

admin@osdx$

Step 13: Run command system conntrack show at DUT0 and check if output matches the following regular expressions:

appdetect\[U130:7\shttp-host:enterprise.opentok.com\]
Show output
udp      17 25 src=192.168.2.101 dst=10.215.168.66 sport=41031 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=41031 packets=1 bytes=84 mark=0 use=1 appdetect[L4:53]
tcp      6 3595 ESTABLISHED src=10.215.168.64 dst=10.215.168.1 sport=35054 dport=443 packets=10 bytes=1607 src=10.215.168.1 dst=10.215.168.64 sport=443 dport=35054 packets=9 bytes=3410 [ASSURED] mark=0 use=1 appdetect[L4:443]
udp      17 25 src=192.168.2.101 dst=10.215.168.66 sport=49729 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=49729 packets=1 bytes=68 mark=0 use=1 appdetect[L4:53]
udp      17 25 src=127.0.0.1 dst=127.0.0.1 sport=45477 dport=49000 packets=2 bytes=110 src=127.0.0.1 dst=127.0.0.1 sport=49000 dport=45477 packets=2 bytes=132 mark=0 use=1 appdetect[L4:49000]
tcp      6 3595 ESTABLISHED src=10.215.168.64 dst=10.215.168.1 sport=35056 dport=443 packets=10 bytes=1607 src=10.215.168.1 dst=10.215.168.64 sport=443 dport=35056 packets=10 bytes=3462 [ASSURED] mark=0 use=1 appdetect[L4:443]
udp      17 27 src=192.168.2.101 dst=10.215.168.66 sport=39740 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=39740 packets=1 bytes=68 mark=0 use=1 appdetect[L4:53]
tcp      6 298 ESTABLISHED src=192.168.2.101 dst=10.215.168.1 sport=50838 dport=80 packets=10 bytes=2166 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=50838 packets=1 bytes=60 [ASSURED] mark=0 use=1 appdetect[L4:80 http-host:enterprise.opentok.com]
tcp      6 src=192.168.2.101 dst=10.215.168.1 sport=35432 dport=80 packets=6 bytes=593 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=35432 packets=4 bytes=504 [ASSURED] [OFFLOAD, packets=1 bytes=52 packets=2 bytes=392] mark=0 use=2 appdetect[U130:7 http-host:enterprise.opentok.com]
conntrack v1.4.7 (conntrack-tools): 8 flow entries have been shown.

Step 14: Run command system conntrack app-detect show ip-cache at DUT0 and check if output matches the following regular expressions:

10.215.168.1\s*.*U130:7
Show output
----------------------------------------
     IP       Application ID  Expires in
----------------------------------------
10.215.168.1  U130:7          4m57s872ms

Step 15: Run command system conntrack app-detect show at DUT0 and expect this output:

Show output
---------------------------------------------------
                App-detect Stats                  #
---------------------------------------------------
Matches in static dictionaries                    0
Matches in IP-cache                               0
Modifications in IP-cache                         1
Matches in dynamic dictionaries                   1
Times appid has been refreshed                    0
Ips blacklisted from cache due to appid flapping  0
Matches in DNS CNAME cache                        0
Entries in DNS CNAME cache                        0

Step 16: Run command system conntrack clear at DUT0.

Step 17: Run command system conntrack clear at DUT1.

Step 18: Run command file copy http://enterprise.opentok.com/~robot/test_file running://user-data/ force at DUT1 and expect this output:

Show output
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    37  100    37    0     0   5096      0 --:--:-- --:--:-- --:--:--  5285

Step 19: Run command system conntrack show at DUT0 and check if output matches the following regular expressions:

appdetect\[U130:7\shttp-host:enterprise.opentok.com\]
Show output
udp      17 29 src=192.168.2.101 dst=10.215.168.66 sport=44848 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=44848 packets=1 bytes=68 mark=0 use=1 appdetect[L4:53]
tcp      6 src=192.168.2.101 dst=10.215.168.1 sport=35438 dport=80 packets=6 bytes=593 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=35438 packets=4 bytes=504 [ASSURED] [OFFLOAD, packets=1 bytes=52 packets=2 bytes=392] mark=0 use=3 appdetect[U130:7 http-host:enterprise.opentok.com]
conntrack v1.4.7 (conntrack-tools): 2 flow entries have been shown.

Step 20: Run command system conntrack app-detect show at DUT0 and expect this output:

Show output
---------------------------------------------------
                App-detect Stats                  #
---------------------------------------------------
Matches in static dictionaries                    0
Matches in IP-cache                               1
Modifications in IP-cache                         1
Matches in dynamic dictionaries                   2
Times appid has been refreshed                    0
Ips blacklisted from cache due to appid flapping  0
Matches in DNS CNAME cache                        0
Entries in DNS CNAME cache                        0

Step 21: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 192.168.2.100/24
set interfaces ethernet eth1 address 10.215.168.64/24
set interfaces ethernet eth1 traffic nat source rule 1 address masquerade
set interfaces ethernet eth1 traffic policy out POL
set system conntrack app-detect app-id-storage override
set system conntrack app-detect debug
set system conntrack app-detect dictionary 1 remote encrypted-key U2FsdGVkX18efDmJHSbeHc/pkvWzpNft10GsBEG/PlI=
set system conntrack app-detect dictionary 1 remote encrypted-url U2FsdGVkX1/V/23ppUB+wipOEqIObO0wFITStARiDNvSEmtqdaOgUr/4f/g1DEAD
set system conntrack app-detect dictionary 1 remote mark 5555
set system conntrack app-detect dictionary 1 remote property category
set system conntrack app-detect dictionary 1 remote ssl-allow-insecure
set system conntrack app-detect dictionary 2 remote encrypted-key U2FsdGVkX1/ooHqK3EKcA4brQHgZGYDBIwzEhZTDMFs=
set system conntrack app-detect dictionary 2 remote encrypted-url U2FsdGVkX18+++F17I2q0Y1rP81JGaFk/6P8HkEpk0l5aZiHL6Zya67GbwmVR3pV
set system conntrack app-detect dictionary 2 remote mark 5555
set system conntrack app-detect dictionary 2 remote property reputation
set system conntrack app-detect dictionary 2 remote ssl-allow-insecure
set system conntrack app-detect dns
set system conntrack app-detect dns-host
set system conntrack app-detect enable_dict_match_priv_ip
set system conntrack app-detect http
set system conntrack app-detect http-host
set system conntrack app-detect refresh-flow-appid
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set traffic policy POL rule 1 action accept
set traffic policy POL rule 1 selector RDICT
set traffic policy POL rule 2 action drop
set traffic policy POL rule 2 selector RESOLVING
set traffic selector RDICT rule 1 mark 5555
set traffic selector RESOLVING rule 1 app-detect state detecting
set traffic selector RESOLVING rule 1 app-detect state host-detected

Step 22: Run command system conntrack clear at DUT0.

Step 23: Run command nslookup enterprise.opentok.com dns-server 10.215.168.66 at DUT1 and expect this output:

Show output
Server:         10.215.168.66
Address:        10.215.168.66#53

Name:   enterprise.opentok.com
Address: 10.215.168.1
** server can't find enterprise.opentok.com: REFUSED

Step 24: Run command nslookup www.gamblingteldat.com dns-server 10.215.168.66 at DUT1 and expect this output:

Show output
Server:         10.215.168.66
Address:        10.215.168.66#53

Name:   www.gamblingteldat.com
Address: 192.168.2.10
** server can't find www.gamblingteldat.com: REFUSED

Step 25: Run command nslookup www.newspaperteldat.com dns-server 10.215.168.66 at DUT1 and expect this output:

Show output
Server:         10.215.168.66
Address:        10.215.168.66#53

Name:   www.newspaperteldat.com
Address: 192.168.2.20
** server can't find www.newspaperteldat.com: REFUSED

Step 26: Run command system conntrack show at DUT0 and expect this output:

Show output
udp      17 29 src=192.168.2.101 dst=10.215.168.66 sport=38328 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=38328 packets=1 bytes=84 mark=0 use=1 appdetect[L4:53 dns-host:enterprise.opentok.com]
tcp      6 299 ESTABLISHED src=10.215.168.64 dst=10.215.168.1 sport=46332 dport=443 packets=8 bytes=1017 src=10.215.168.1 dst=10.215.168.64 sport=443 dport=46332 packets=6 bytes=1367 [ASSURED] mark=0 use=1 appdetect[U130:7]
udp      17 29 src=192.168.2.101 dst=10.215.168.66 sport=49874 dport=53 packets=1 bytes=69 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=49874 packets=1 bytes=69 mark=0 use=1 appdetect[L4:53]
udp      17 29 src=192.168.2.101 dst=10.215.168.66 sport=51390 dport=53 packets=1 bytes=69 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=51390 packets=1 bytes=85 mark=0 use=1 appdetect[L4:53 dns-host:www.newspaperteldat.com]
udp      17 29 src=192.168.2.101 dst=10.215.168.66 sport=49516 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=49516 packets=1 bytes=84 mark=0 use=1 appdetect[L4:53 dns-host:www.gamblingteldat.com]
udp      17 29 src=192.168.2.101 dst=10.215.168.66 sport=42161 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=42161 packets=1 bytes=68 mark=0 use=1 appdetect[L4:53]
udp      17 29 src=127.0.0.1 dst=127.0.0.1 sport=45477 dport=49000 packets=4 bytes=222 src=127.0.0.1 dst=127.0.0.1 sport=49000 dport=45477 packets=4 bytes=266 mark=0 use=1 appdetect[L4:49000]
udp      17 29 src=192.168.2.101 dst=10.215.168.66 sport=47679 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=47679 packets=1 bytes=68 mark=0 use=1 appdetect[L4:53]
tcp      6 299 ESTABLISHED src=10.215.168.64 dst=10.215.168.1 sport=46342 dport=443 packets=8 bytes=1017 src=10.215.168.1 dst=10.215.168.64 sport=443 dport=46342 packets=6 bytes=1367 [ASSURED] mark=0 use=1 appdetect[U130:7]
conntrack v1.4.7 (conntrack-tools): 9 flow entries have been shown.

Step 27: Run command nslookup enterprise.opentok.com dns-server 10.215.168.66 at DUT1 and expect this output:

Show output
Server:         10.215.168.66
Address:        10.215.168.66#53

Name:   enterprise.opentok.com
Address: 10.215.168.1
** server can't find enterprise.opentok.com: REFUSED

Step 28: Run command nslookup www.gamblingteldat.com dns-server 10.215.168.66 at DUT1 and expect this output:

Show output
Server:         10.215.168.66
Address:        10.215.168.66#53

Name:   www.gamblingteldat.com
Address: 192.168.2.10
** server can't find www.gamblingteldat.com: REFUSED

Step 29: Run command nslookup www.newspaperteldat.com dns-server 10.215.168.66 at DUT1 and expect this output:

Show output
Server:         10.215.168.66
Address:        10.215.168.66#53

Name:   www.newspaperteldat.com
Address: 192.168.2.20
** server can't find www.newspaperteldat.com: REFUSED

Step 30: Run command system conntrack show at DUT0 and expect this output:

Show output
udp      17 29 src=192.168.2.101 dst=10.215.168.66 sport=49028 dport=53 packets=1 bytes=69 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=49028 packets=1 bytes=69 mark=0 use=1 appdetect[L4:53]
udp      17 28 src=192.168.2.101 dst=10.215.168.66 sport=38328 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=38328 packets=1 bytes=84 mark=0 use=1 appdetect[L4:53 dns-host:enterprise.opentok.com]
udp      17 29 src=192.168.2.101 dst=10.215.168.66 sport=58703 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=58703 packets=1 bytes=68 mark=0 use=1 appdetect[L4:53]
tcp      6 298 ESTABLISHED src=10.215.168.64 dst=10.215.168.1 sport=46332 dport=443 packets=8 bytes=1017 src=10.215.168.1 dst=10.215.168.64 sport=443 dport=46332 packets=6 bytes=1367 [ASSURED] mark=0 use=1 appdetect[U130:7]
udp      17 28 src=192.168.2.101 dst=10.215.168.66 sport=49874 dport=53 packets=1 bytes=69 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=49874 packets=1 bytes=69 mark=0 use=1 appdetect[L4:53]
udp      17 28 src=192.168.2.101 dst=10.215.168.66 sport=51390 dport=53 packets=1 bytes=69 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=51390 packets=1 bytes=85 mark=0 use=1 appdetect[L4:53 dns-host:www.newspaperteldat.com]
udp      17 28 src=192.168.2.101 dst=10.215.168.66 sport=49516 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=49516 packets=1 bytes=84 mark=0 use=1 appdetect[L4:53 dns-host:www.gamblingteldat.com]
udp      17 29 src=192.168.2.101 dst=10.215.168.66 sport=39129 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=39129 packets=1 bytes=84 mark=0 use=1 appdetect[L4:53 dns-host:www.gamblingteldat.com]
udp      17 29 src=192.168.2.101 dst=10.215.168.66 sport=36249 dport=53 packets=1 bytes=69 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=36249 packets=1 bytes=85 mark=0 use=1 appdetect[L4:53 dns-host:www.newspaperteldat.com]
udp      17 28 src=192.168.2.101 dst=10.215.168.66 sport=42161 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=42161 packets=1 bytes=68 mark=0 use=1 appdetect[L4:53]
udp      17 28 src=127.0.0.1 dst=127.0.0.1 sport=45477 dport=49000 packets=4 bytes=222 src=127.0.0.1 dst=127.0.0.1 sport=49000 dport=45477 packets=4 bytes=266 mark=0 use=1 appdetect[L4:49000]
udp      17 28 src=192.168.2.101 dst=10.215.168.66 sport=47679 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=47679 packets=1 bytes=68 mark=0 use=1 appdetect[L4:53]
udp      17 29 src=192.168.2.101 dst=10.215.168.66 sport=43497 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=43497 packets=1 bytes=84 mark=0 use=1 appdetect[L4:53 dns-host:enterprise.opentok.com]
udp      17 29 src=192.168.2.101 dst=10.215.168.66 sport=48594 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=48594 packets=1 bytes=68 mark=0 use=1 appdetect[L4:53]
tcp      6 298 ESTABLISHED src=10.215.168.64 dst=10.215.168.1 sport=46342 dport=443 packets=8 bytes=1017 src=10.215.168.1 dst=10.215.168.64 sport=443 dport=46342 packets=6 bytes=1367 [ASSURED] mark=0 use=1 appdetect[U130:7]
conntrack v1.4.7 (conntrack-tools): 15 flow entries have been shown.

Step 31: Run command system journal show | tail -n 200 at DUT0 and expect this output:

Show output
Mar 05 17:14:38.240995 osdx OSDxCLI[466618]: User 'admin' left the configuration menu.
Mar 05 17:14:41.059601 osdx OSDxCLI[466618]: User 'admin' executed a new command: 'system conntrack clear'.
Mar 05 17:14:41.196681 osdx kernel: app-detect: field http-host detected: enterprise.opentok.com. Org(src/dst) 192.168.2.101:50838/10.215.168.1:80
Mar 05 17:14:41.196754 osdx kernel: app-detect: http detected. Org(src/dst) 192.168.2.101:50838/10.215.168.1:80
Mar 05 17:14:41.196763 osdx kernel: app-detect: dictionary search for enterprise.opentok.com
Mar 05 17:14:41.196775 osdx kernel: app-detect: search in dict _remote_, prio 1
Mar 05 17:14:41.196799 osdx kernel: app-detect: search in dict _remote_, prio 2
Mar 05 17:14:41.196770 osdx osdx-tcatd[468437]: UDP_Server. Read 27 bytes
Mar 05 17:14:41.196774 osdx osdx-tcatd[468437]: UDP_Server. Kernel_Message parse. Read message addressed to dictionary 1 FQDN enterprise.opentok.com
Mar 05 17:14:41.196793 osdx osdx-tcatd[468437]: Dict_client. Send query (dict 1): {"requestid": "besafepro_request_id","oemid": "Teldat","deviceid": "develop","uid": "","queries": ["getinfo", "getrepinfo"],"fqdns": ["enterprise.opentok.com"],"xml": 0}
Mar 05 17:14:41.196811 osdx osdx-tcatd[468437]: UDP_Server. Read 27 bytes
Mar 05 17:14:41.196813 osdx osdx-tcatd[468437]: UDP_Server. Kernel_Message parse. Read message addressed to dictionary 2 FQDN enterprise.opentok.com
Mar 05 17:14:41.196826 osdx osdx-tcatd[468437]: Dict_client. Send query (dict 2): {"requestid": "besafepro_request_id","oemid": "Teldat","deviceid": "develop","uid": "","queries": ["getinfo", "getrepinfo"],"fqdns": ["enterprise.opentok.com"],"xml": 0}
Mar 05 17:14:41.454919 osdx osdx-tcatd[468437]: Dict_client. Received answer (dict 1): {"status": 200, "requestid": "besafepro_request_id", "type": "fqdns", "TTL": 172800, "results": [{"fqdns": "enterprise.opentok.com", "queries": {"getinfo": {"a1cat": 0, "reputation": 88, "lcp": "opentok.com", "cats": [{"catid": 7, "conf": 95}]}, "getrepinfo": {"reputation": 88, "country": "", "popularity": 0, "a
ge": 0, "threathistory": 0}}}]}
Mar 05 17:14:41.455058 osdx kernel: app-detect: set target dict _remote_ priority 1 type remote (existing,enabled)
Mar 05 17:14:41.455081 osdx kernel: app-detect: linked list of enabled dicts:
Mar 05 17:14:41.455095 osdx kernel: app-detect:   (0) dictionary _remote_, priority 1 type remote (target_dict)
Mar 05 17:14:41.455103 osdx kernel: app-detect:   (1) dictionary _remote_, priority 2 type remote
Mar 05 17:14:41.455114 osdx kernel: app-detect: linked list of disabled dicts:
Mar 05 17:14:41.455125 osdx kernel: app-detect:   (empty, no dicts)
Mar 05 17:14:41.455135 osdx kernel: app-detect: set fqdn hash 46b26ca475a30e2c2b54f5356b2738abe73ead8a02742c712c9e645e233e9d74, hash table index=0018098 (0x046b2) (16 bits), ttl 172800 seconds
Mar 05 17:14:41.454936 osdx osdx-tcatd[468437]: UDP_Server. Kernel_Message format. Write message addressed to dictionary 1 FQDN enterprise.opentok.com TTL 172800 AppID:82000007
Mar 05 17:14:41.454987 osdx osdx-tcatd[468437]: UDP_Server. Sent 38 bytes
Mar 05 17:14:41.455212 osdx osdx-tcatd[468437]: Dict_client. Received answer (dict 2): {"status": 200, "requestid": "besafepro_request_id", "type": "fqdns", "TTL": 172800, "results": [{"fqdns": "enterprise.opentok.com", "queries": {"getinfo": {"a1cat": 0, "reputation": 88, "lcp": "opentok.com", "cats": [{"catid": 7, "conf": 95}]}, "getrepinfo": {"reputation": 88, "country": "", "popularity": 0, "a
ge": 0, "threathistory": 0}}}]}
Mar 05 17:14:41.455223 osdx osdx-tcatd[468437]: UDP_Server. Kernel_Message format. Write message addressed to dictionary 2 FQDN enterprise.opentok.com TTL 172800 AppID:83000058
Mar 05 17:14:41.455251 osdx osdx-tcatd[468437]: UDP_Server. Sent 38 bytes
Mar 05 17:14:41.459030 osdx kernel: app-detect: set target dict _remote_ priority 2 type remote (existing,enabled)
Mar 05 17:14:41.459050 osdx kernel: app-detect: linked list of enabled dicts:
Mar 05 17:14:41.459061 osdx kernel: app-detect:   (0) dictionary _remote_, priority 1 type remote
Mar 05 17:14:41.459069 osdx kernel: app-detect:   (1) dictionary _remote_, priority 2 type remote (target_dict)
Mar 05 17:14:41.459077 osdx kernel: app-detect: linked list of disabled dicts:
Mar 05 17:14:41.459084 osdx kernel: app-detect:   (empty, no dicts)
Mar 05 17:14:41.459091 osdx kernel: app-detect: set fqdn hash 46b26ca475a30e2c2b54f5356b2738abe73ead8a02742c712c9e645e233e9d74, hash table index=0018098 (0x046b2) (16 bits), ttl 172800 seconds
Mar 05 17:14:43.257493 osdx OSDxCLI[466618]: User 'admin' executed a new command: 'system journal show | tail -n 200'.
Mar 05 17:14:43.534071 osdx OSDxCLI[466618]: User 'admin' executed a new command: 'system conntrack show'.
Mar 05 17:14:43.716196 osdx OSDxCLI[466618]: User 'admin' executed a new command: 'traffic selector RDICT show'.
Mar 05 17:14:43.804305 osdx OSDxCLI[466618]: User 'admin' executed a new command: 'system conntrack show'.
Mar 05 17:14:44.044351 osdx kernel: app-detect: field http-host detected: enterprise.opentok.com. Org(src/dst) 192.168.2.101:35432/10.215.168.1:80
Mar 05 17:14:44.044440 osdx kernel: app-detect: http detected. Org(src/dst) 192.168.2.101:35432/10.215.168.1:80
Mar 05 17:14:44.044453 osdx kernel: app-detect: dictionary search for enterprise.opentok.com
Mar 05 17:14:44.044465 osdx kernel: app-detect: search in dict _remote_, prio 1
Mar 05 17:14:44.044476 osdx kernel: app-detect: appid 82000007 found in hash dictionary
Mar 05 17:14:46.072310 osdx OSDxCLI[466618]: User 'admin' executed a new command: 'system conntrack show'.
Mar 05 17:14:46.180135 osdx OSDxCLI[466618]: User 'admin' executed a new command: 'system conntrack app-detect show ip-cache'.
Mar 05 17:14:46.257494 osdx OSDxCLI[466618]: User 'admin' executed a new command: 'system conntrack app-detect show'.
Mar 05 17:14:46.357370 osdx OSDxCLI[466618]: User 'admin' executed a new command: 'system conntrack clear'.
Mar 05 17:14:46.567620 osdx kernel: app-detect: field http-host detected: enterprise.opentok.com. Org(src/dst) 192.168.2.101:35438/10.215.168.1:80
Mar 05 17:14:46.567744 osdx kernel: app-detect: http detected. Org(src/dst) 192.168.2.101:35438/10.215.168.1:80
Mar 05 17:14:46.567760 osdx kernel: app-detect: dictionary search for enterprise.opentok.com
Mar 05 17:14:46.567793 osdx kernel: app-detect: search in dict _remote_, prio 1
Mar 05 17:14:46.567825 osdx kernel: app-detect: appid 82000007 found in hash dictionary
Mar 05 17:14:46.665930 osdx OSDxCLI[466618]: User 'admin' executed a new command: 'system conntrack show'.
Mar 05 17:14:46.733927 osdx OSDxCLI[466618]: User 'admin' executed a new command: 'system conntrack app-detect show'.
Mar 05 17:14:46.917161 osdx OSDxCLI[466618]: User 'admin' entered the configuration menu.
Mar 05 17:14:47.023478 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'delete system conntrack app-detect'.
Mar 05 17:14:47.133104 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set interfaces ethernet eth0 address 192.168.2.100/24'.
Mar 05 17:14:47.197056 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set interfaces ethernet eth1 address 10.215.168.64/24'.
Mar 05 17:14:47.308094 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set interfaces ethernet eth1 traffic nat source rule 1 address masquerade'.
Mar 05 17:14:47.381514 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set interfaces ethernet eth1 traffic policy out POL'.
Mar 05 17:14:47.509972 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set traffic policy POL rule 1 action accept'.
Mar 05 17:14:47.573215 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set traffic policy POL rule 1 selector RDICT'.
Mar 05 17:14:47.666824 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set traffic policy POL rule 2 action drop'.
Mar 05 17:14:47.736082 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set traffic policy POL rule 2 selector RESOLVING'.
Mar 05 17:14:47.845142 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set traffic selector RDICT rule 1 mark 5555'.
Mar 05 17:14:47.920282 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set traffic selector RESOLVING rule 1 app-detect state detecting'.
Mar 05 17:14:48.038329 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set traffic selector RESOLVING rule 1 app-detect state host-detected'.
Mar 05 17:14:48.113356 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect dictionary 1 remote url ******'.
Mar 05 17:14:48.205530 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect dictionary 1 remote key ******'.
Mar 05 17:14:48.259295 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect dictionary 1 remote ssl-allow-insecure'.
Mar 05 17:14:48.369103 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect dictionary 1 remote property category'.
Mar 05 17:14:48.459441 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect dictionary 2 remote url ******'.
Mar 05 17:14:48.540821 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect dictionary 2 remote key ******'.
Mar 05 17:14:48.628099 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect dictionary 2 remote ssl-allow-insecure'.
Mar 05 17:14:48.690079 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect dictionary 2 remote property reputation'.
Mar 05 17:14:48.781872 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect dictionary 1 remote mark 5555'.
Mar 05 17:14:48.839811 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect dictionary 2 remote mark 5555'.
Mar 05 17:14:48.941414 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect http'.
Mar 05 17:14:48.998502 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect http-host'.
Mar 05 17:14:49.101761 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect refresh-flow-appid'.
Mar 05 17:14:49.179981 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect enable_dict_match_priv_ip'.
Mar 05 17:14:49.282893 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect debug'.
Mar 05 17:14:49.342780 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect dns'.
Mar 05 17:14:49.446261 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect dns-host'.
Mar 05 17:14:49.502072 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'set system conntrack app-detect app-id-storage override'.
Mar 05 17:14:49.635334 osdx OSDxCLI[466618]: User 'admin' added a new cfg line: 'show working'.
Mar 05 17:14:49.716400 osdx ubnt-cfgd[468813]: inactive
Mar 05 17:14:49.741894 osdx INFO[468821]: FRR daemons did not change
Mar 05 17:14:49.779188 osdx kernel: app-detect: expression destroy
Mar 05 17:14:49.819074 osdx kernel: app-detect: expression init
Mar 05 17:14:49.819131 osdx kernel: app-detect: appid cache initialized (override=yes, chained=yes)
Mar 05 17:14:49.819145 osdx kernel: app-detect: cache changes counter set appid_changes_count found (klen=4, dlen=4)
Mar 05 17:14:49.865407 osdx INFO[468846]: Updated /etc/default/osdx_tcatd.conf
Mar 05 17:14:49.865450 osdx INFO[468846]: Restarting Traffic Categorization (TCATD) service ...
Mar 05 17:14:49.877025 osdx osdx-tcatd[468437]: UDP_Server. Received STOP signal. Cleanup
Mar 05 17:14:49.877070 osdx osdx-tcatd[468437]: Dict_client. Cleanup
Mar 05 17:14:49.877126 osdx systemd[1]: Stopping osdx-tcatd.service - App-Detect Traffic Categorization daemon...
Mar 05 17:14:49.879408 osdx systemd[1]: osdx-tcatd.service: Deactivated successfully.
Mar 05 17:14:49.879535 osdx systemd[1]: Stopped osdx-tcatd.service - App-Detect Traffic Categorization daemon.
Mar 05 17:14:49.907348 osdx systemd[1]: Starting osdx-tcatd.service - App-Detect Traffic Categorization daemon...
Mar 05 17:14:50.200610 osdx systemd[1]: Started osdx-tcatd.service - App-Detect Traffic Categorization daemon.
Mar 05 17:14:50.202071 osdx osdx-tcatd[468850]: Dict_client. rdict_num 2 mark 5555 local-vrf
Mar 05 17:14:50.212042 osdx osdx-tcatd[468850]: Dict_client. rdict_num 1 mark 5555 local-vrf
Mar 05 17:14:50.396153 osdx cfgd[1863]: [466618]Completed change to active configuration
Mar 05 17:14:50.398457 osdx OSDxCLI[466618]: User 'admin' committed the configuration.
Mar 05 17:14:50.414518 osdx OSDxCLI[466618]: User 'admin' left the configuration menu.
Mar 05 17:14:50.569283 osdx OSDxCLI[466618]: User 'admin' executed a new command: 'system conntrack clear'.
Mar 05 17:14:53.060745 osdx kernel: app-detect: field dns-host detected: enterprise.opentok.com. Org(src/dst) 192.168.2.101:38328/10.215.168.66:53
Mar 05 17:14:53.063032 osdx kernel: app-detect: dns detected, continuing detection for further analysis. Org(src/dst) 192.168.2.101:38328/10.215.168.66:53
Mar 05 17:14:53.063061 osdx kernel: app-detect: dictionary search for enterprise.opentok.com
Mar 05 17:14:53.063074 osdx kernel: app-detect: search in CNAMEs db for enterprise.opentok.com
Mar 05 17:14:53.063085 osdx kernel: app-detect: search in dict _remote_, prio 1
Mar 05 17:14:53.063097 osdx kernel: app-detect: appid 82000007 found in hash dictionary
Mar 05 17:14:53.063108 osdx kernel: app-detect: add address 10.215.168.1, appids 82000007 to cache
Mar 05 17:14:53.152790 osdx kernel: app-detect: field dns-host detected: www.gamblingteldat.com. Org(src/dst) 192.168.2.101:49516/10.215.168.66:53
Mar 05 17:14:53.153043 osdx kernel: app-detect: dns detected, continuing detection for further analysis. Org(src/dst) 192.168.2.101:49516/10.215.168.66:53
Mar 05 17:14:53.153064 osdx kernel: app-detect: dictionary search for www.gamblingteldat.com
Mar 05 17:14:53.153089 osdx kernel: app-detect: search in CNAMEs db for www.gamblingteldat.com
Mar 05 17:14:53.153119 osdx kernel: app-detect: search in dict _remote_, prio 1
Mar 05 17:14:53.153131 osdx kernel: app-detect: search in dict _remote_, prio 2
Mar 05 17:14:53.153141 osdx osdx-tcatd[468850]: UDP_Server. Read 27 bytes
Mar 05 17:14:53.153150 osdx osdx-tcatd[468850]: UDP_Server. Kernel_Message parse. Read message addressed to dictionary 1 FQDN www.gamblingteldat.com
Mar 05 17:14:53.153172 osdx osdx-tcatd[468850]: Dict_client. Send query (dict 1): {"requestid": "besafepro_request_id","oemid": "Teldat","deviceid": "develop","uid": "","queries": ["getinfo", "getrepinfo"],"fqdns": ["www.gamblingteldat.com"],"xml": 0}
Mar 05 17:14:53.153188 osdx osdx-tcatd[468850]: UDP_Server. Read 27 bytes
Mar 05 17:14:53.153190 osdx osdx-tcatd[468850]: UDP_Server. Kernel_Message parse. Read message addressed to dictionary 2 FQDN www.gamblingteldat.com
Mar 05 17:14:53.153196 osdx osdx-tcatd[468850]: Dict_client. Send query (dict 2): {"requestid": "besafepro_request_id","oemid": "Teldat","deviceid": "develop","uid": "","queries": ["getinfo", "getrepinfo"],"fqdns": ["www.gamblingteldat.com"],"xml": 0}
Mar 05 17:14:53.154297 osdx osdx-tcatd[468850]: Dict_client. Received answer (dict 1): {"status": 200, "requestid": "besafepro_request_id", "type": "fqdns", "TTL": 172800, "results": [{"fqdns": "www.gamblingteldat.com", "queries": {"getinfo": {"a1cat": 0, "reputation": 25, "lcp": "gamblingteldat.com", "cats": [{"catid": 15, "conf": 93}]}, "getrepinfo": {"reputation": 25, "country": "", "popularity
": 0, "age": 0, "threathistory": 0}}}]}
Mar 05 17:14:53.154317 osdx osdx-tcatd[468850]: UDP_Server. Kernel_Message format. Write message addressed to dictionary 1 FQDN www.gamblingteldat.com TTL 172800 AppID:8200000F
Mar 05 17:14:53.154392 osdx osdx-tcatd[468850]: UDP_Server. Sent 38 bytes
Mar 05 17:14:53.154510 osdx osdx-tcatd[468850]: Dict_client. Received answer (dict 2): {"status": 200, "requestid": "besafepro_request_id", "type": "fqdns", "TTL": 172800, "results": [{"fqdns": "www.gamblingteldat.com", "queries": {"getinfo": {"a1cat": 0, "reputation": 25, "lcp": "gamblingteldat.com", "cats": [{"catid": 15, "conf": 93}]}, "getrepinfo": {"reputation": 25, "country": "", "popularity
": 0, "age": 0, "threathistory": 0}}}]}
Mar 05 17:14:53.154522 osdx osdx-tcatd[468850]: UDP_Server. Kernel_Message format. Write message addressed to dictionary 2 FQDN www.gamblingteldat.com TTL 172800 AppID:83000019
Mar 05 17:14:53.154550 osdx osdx-tcatd[468850]: UDP_Server. Sent 38 bytes
Mar 05 17:14:53.155028 osdx kernel: app-detect: set target dict _remote_ priority 1 type remote (existing,enabled)
Mar 05 17:14:53.155047 osdx kernel: app-detect: linked list of enabled dicts:
Mar 05 17:14:53.155057 osdx kernel: app-detect:   (0) dictionary _remote_, priority 1 type remote (target_dict)
Mar 05 17:14:53.155068 osdx kernel: app-detect:   (1) dictionary _remote_, priority 2 type remote
Mar 05 17:14:53.155079 osdx kernel: app-detect: linked list of disabled dicts:
Mar 05 17:14:53.155086 osdx kernel: app-detect:   (empty, no dicts)
Mar 05 17:14:53.155094 osdx kernel: app-detect: set fqdn hash 95d7d9863609db9ccc870c2d2b6f3048a307595f4ee206f3a041baa9f588fc85, hash table index=0038359 (0x095d7) (16 bits), ttl 172800 seconds
Mar 05 17:14:53.155101 osdx kernel: app-detect: set target dict _remote_ priority 2 type remote (existing,enabled)
Mar 05 17:14:53.155109 osdx kernel: app-detect: linked list of enabled dicts:
Mar 05 17:14:53.155115 osdx kernel: app-detect:   (0) dictionary _remote_, priority 1 type remote
Mar 05 17:14:53.155125 osdx kernel: app-detect:   (1) dictionary _remote_, priority 2 type remote (target_dict)
Mar 05 17:14:53.155143 osdx kernel: app-detect: linked list of disabled dicts:
Mar 05 17:14:53.155151 osdx kernel: app-detect:   (empty, no dicts)
Mar 05 17:14:53.155158 osdx kernel: app-detect: set fqdn hash 95d7d9863609db9ccc870c2d2b6f3048a307595f4ee206f3a041baa9f588fc85, hash table index=0038359 (0x095d7) (16 bits), ttl 172800 seconds
Mar 05 17:14:53.266681 osdx kernel: app-detect: field dns-host detected: www.newspaperteldat.com. Org(src/dst) 192.168.2.101:51390/10.215.168.66:53
Mar 05 17:14:53.266965 osdx kernel: app-detect: dns detected, continuing detection for further analysis. Org(src/dst) 192.168.2.101:51390/10.215.168.66:53
Mar 05 17:14:53.266989 osdx kernel: app-detect: dictionary search for www.newspaperteldat.com
Mar 05 17:14:53.266997 osdx kernel: app-detect: search in CNAMEs db for www.newspaperteldat.com
Mar 05 17:14:53.267006 osdx kernel: app-detect: search in dict _remote_, prio 1
Mar 05 17:14:53.267030 osdx kernel: app-detect: search in dict _remote_, prio 2
Mar 05 17:14:53.267050 osdx osdx-tcatd[468850]: UDP_Server. Read 28 bytes
Mar 05 17:14:53.267059 osdx osdx-tcatd[468850]: UDP_Server. Kernel_Message parse. Read message addressed to dictionary 1 FQDN www.newspaperteldat.com
Mar 05 17:14:53.267079 osdx osdx-tcatd[468850]: Dict_client. Send query (dict 1): {"requestid": "besafepro_request_id","oemid": "Teldat","deviceid": "develop","uid": "","queries": ["getinfo", "getrepinfo"],"fqdns": ["www.newspaperteldat.com"],"xml": 0}
Mar 05 17:14:53.267089 osdx osdx-tcatd[468850]: UDP_Server. Read 28 bytes
Mar 05 17:14:53.267091 osdx osdx-tcatd[468850]: UDP_Server. Kernel_Message parse. Read message addressed to dictionary 2 FQDN www.newspaperteldat.com
Mar 05 17:14:53.267098 osdx osdx-tcatd[468850]: Dict_client. Send query (dict 2): {"requestid": "besafepro_request_id","oemid": "Teldat","deviceid": "develop","uid": "","queries": ["getinfo", "getrepinfo"],"fqdns": ["www.newspaperteldat.com"],"xml": 0}
Mar 05 17:14:53.267916 osdx osdx-tcatd[468850]: Dict_client. Received answer (dict 1): {"status": 200, "requestid": "besafepro_request_id", "type": "fqdns", "TTL": 172800, "results": [{"fqdns": "www.newspaperteldat.com", "queries": {"getinfo": {"a1cat": 0, "reputation": 92, "lcp": "newspaperteldat.com", "cats": [{"catid": 4, "conf": 93}]}, "getrepinfo": {"reputation": 92, "country": "", "popularit
y": 0, "age": 0, "threathistory": 0}}}]}
Mar 05 17:14:53.267927 osdx osdx-tcatd[468850]: UDP_Server. Kernel_Message format. Write message addressed to dictionary 1 FQDN www.newspaperteldat.com TTL 172800 AppID:82000004
Mar 05 17:14:53.267956 osdx osdx-tcatd[468850]: UDP_Server. Sent 39 bytes
Mar 05 17:14:53.268103 osdx osdx-tcatd[468850]: Dict_client. Received answer (dict 2): {"status": 200, "requestid": "besafepro_request_id", "type": "fqdns", "TTL": 172800, "results": [{"fqdns": "www.newspaperteldat.com", "queries": {"getinfo": {"a1cat": 0, "reputation": 92, "lcp": "newspaperteldat.com", "cats": [{"catid": 4, "conf": 93}]}, "getrepinfo": {"reputation": 92, "country": "", "popularit
y": 0, "age": 0, "threathistory": 0}}}]}
Mar 05 17:14:53.268111 osdx osdx-tcatd[468850]: UDP_Server. Kernel_Message format. Write message addressed to dictionary 2 FQDN www.newspaperteldat.com TTL 172800 AppID:8300005C
Mar 05 17:14:53.268134 osdx osdx-tcatd[468850]: UDP_Server. Sent 39 bytes
Mar 05 17:14:53.271027 osdx kernel: app-detect: set target dict _remote_ priority 1 type remote (existing,enabled)
Mar 05 17:14:53.271047 osdx kernel: app-detect: linked list of enabled dicts:
Mar 05 17:14:53.271059 osdx kernel: app-detect:   (0) dictionary _remote_, priority 1 type remote (target_dict)
Mar 05 17:14:53.271067 osdx kernel: app-detect:   (1) dictionary _remote_, priority 2 type remote
Mar 05 17:14:53.271074 osdx kernel: app-detect: linked list of disabled dicts:
Mar 05 17:14:53.271084 osdx kernel: app-detect:   (empty, no dicts)
Mar 05 17:14:53.271092 osdx kernel: app-detect: set fqdn hash f32edeb00a440e970fb18ad576d01b83fe00cd767533ed3c53233a2aaaa9dce8, hash table index=0062254 (0x0f32e) (16 bits), ttl 172800 seconds
Mar 05 17:14:53.271099 osdx kernel: app-detect: set target dict _remote_ priority 2 type remote (existing,enabled)
Mar 05 17:14:53.271107 osdx kernel: app-detect: linked list of enabled dicts:
Mar 05 17:14:53.271113 osdx kernel: app-detect:   (0) dictionary _remote_, priority 1 type remote
Mar 05 17:14:53.271121 osdx kernel: app-detect:   (1) dictionary _remote_, priority 2 type remote (target_dict)
Mar 05 17:14:53.271129 osdx kernel: app-detect: linked list of disabled dicts:
Mar 05 17:14:53.271148 osdx kernel: app-detect:   (empty, no dicts)
Mar 05 17:14:53.271159 osdx kernel: app-detect: set fqdn hash f32edeb00a440e970fb18ad576d01b83fe00cd767533ed3c53233a2aaaa9dce8, hash table index=0062254 (0x0f32e) (16 bits), ttl 172800 seconds
Mar 05 17:14:53.381728 osdx OSDxCLI[466618]: User 'admin' executed a new command: 'system conntrack show'.
Mar 05 17:14:54.458888 osdx kernel: app-detect: field dns-host detected: enterprise.opentok.com. Org(src/dst) 192.168.2.101:43497/10.215.168.66:53
Mar 05 17:14:54.459279 osdx kernel: app-detect: dns detected, continuing detection for further analysis. Org(src/dst) 192.168.2.101:43497/10.215.168.66:53
Mar 05 17:14:54.459321 osdx kernel: app-detect: dictionary search for enterprise.opentok.com
Mar 05 17:14:54.459331 osdx kernel: app-detect: search in CNAMEs db for enterprise.opentok.com
Mar 05 17:14:54.459339 osdx kernel: app-detect: search in dict _remote_, prio 1
Mar 05 17:14:54.459347 osdx kernel: app-detect: appid 82000007 found in hash dictionary
Mar 05 17:14:54.459355 osdx kernel: app-detect: add address 10.215.168.1, appids 82000007 to cache
Mar 05 17:14:54.544992 osdx kernel: app-detect: field dns-host detected: www.gamblingteldat.com. Org(src/dst) 192.168.2.101:39129/10.215.168.66:53
Mar 05 17:14:54.547033 osdx kernel: app-detect: dns detected, continuing detection for further analysis. Org(src/dst) 192.168.2.101:39129/10.215.168.66:53
Mar 05 17:14:54.547067 osdx kernel: app-detect: dictionary search for www.gamblingteldat.com
Mar 05 17:14:54.547077 osdx kernel: app-detect: search in CNAMEs db for www.gamblingteldat.com
Mar 05 17:14:54.547085 osdx kernel: app-detect: search in dict _remote_, prio 1
Mar 05 17:14:54.547118 osdx kernel: app-detect: appid 8200000f found in hash dictionary
Mar 05 17:14:54.547127 osdx kernel: app-detect: add address 192.168.2.10, appids 8200000f to cache
Mar 05 17:14:54.658591 osdx kernel: app-detect: field dns-host detected: www.newspaperteldat.com. Org(src/dst) 192.168.2.101:36249/10.215.168.66:53
Mar 05 17:14:54.658875 osdx kernel: app-detect: dns detected, continuing detection for further analysis. Org(src/dst) 192.168.2.101:36249/10.215.168.66:53
Mar 05 17:14:54.658888 osdx kernel: app-detect: dictionary search for www.newspaperteldat.com
Mar 05 17:14:54.658897 osdx kernel: app-detect: search in CNAMEs db for www.newspaperteldat.com
Mar 05 17:14:54.658905 osdx kernel: app-detect: search in dict _remote_, prio 1
Mar 05 17:14:54.658912 osdx kernel: app-detect: appid 82000004 found in hash dictionary
Mar 05 17:14:54.658920 osdx kernel: app-detect: add address 192.168.2.20, appids 82000004 to cache
Mar 05 17:14:54.782886 osdx OSDxCLI[466618]: User 'admin' executed a new command: 'system conntrack show'.

Step 32: Run command system conntrack app-detect show ip-cache at DUT0 and expect this output:

Show output
----------------------------------------
     IP       Application ID  Expires in
----------------------------------------
10.215.168.1  U130:7          28s196ms
192.168.2.10  U130:15         28s280ms
192.168.2.20  U130:4          28s392ms

Step 33: Run command system conntrack app-detect show ip-cache at DUT0 and check if output matches the following regular expressions:

10.215.168.1\s*.*U130:7
Show output
----------------------------------------
     IP       Application ID  Expires in
----------------------------------------
10.215.168.1  U130:7          28s128ms
192.168.2.10  U130:15         28s212ms
192.168.2.20  U130:4          28s324ms

Step 34: Run command system conntrack app-detect show ip-cache at DUT0 and check if output matches the following regular expressions:

192.168.2.10\s*.*U130:15
Show output
----------------------------------------
     IP       Application ID  Expires in
----------------------------------------
10.215.168.1  U130:7          28s32ms
192.168.2.10  U130:15         28s116ms
192.168.2.20  U130:4          28s228ms

Step 35: Run command system conntrack app-detect show ip-cache at DUT0 and check if output matches the following regular expressions:

192.168.2.20\s*.*U130:4
Show output
----------------------------------------
     IP       Application ID  Expires in
----------------------------------------
10.215.168.1  U130:7          27s968ms
192.168.2.10  U130:15         28s52ms
192.168.2.20  U130:4          28s164ms

Step 36: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 192.168.2.100/24
set interfaces ethernet eth1 address 10.215.168.64/24
set interfaces ethernet eth1 traffic nat source rule 1 address masquerade
set interfaces ethernet eth1 traffic policy out POL
set system conntrack app-detect app-id-storage chained
set system conntrack app-detect debug
set system conntrack app-detect dictionary 1 remote encrypted-key U2FsdGVkX18efDmJHSbeHc/pkvWzpNft10GsBEG/PlI=
set system conntrack app-detect dictionary 1 remote encrypted-url U2FsdGVkX1/V/23ppUB+wipOEqIObO0wFITStARiDNvSEmtqdaOgUr/4f/g1DEAD
set system conntrack app-detect dictionary 1 remote mark 5555
set system conntrack app-detect dictionary 1 remote property category
set system conntrack app-detect dictionary 1 remote ssl-allow-insecure
set system conntrack app-detect dictionary 2 remote encrypted-key U2FsdGVkX1/ooHqK3EKcA4brQHgZGYDBIwzEhZTDMFs=
set system conntrack app-detect dictionary 2 remote encrypted-url U2FsdGVkX18+++F17I2q0Y1rP81JGaFk/6P8HkEpk0l5aZiHL6Zya67GbwmVR3pV
set system conntrack app-detect dictionary 2 remote mark 5555
set system conntrack app-detect dictionary 2 remote property reputation
set system conntrack app-detect dictionary 2 remote ssl-allow-insecure
set system conntrack app-detect dns
set system conntrack app-detect dns-host
set system conntrack app-detect enable_dict_match_priv_ip
set system conntrack app-detect http
set system conntrack app-detect http-host
set system conntrack app-detect refresh-flow-appid
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set traffic policy POL rule 1 action accept
set traffic policy POL rule 1 selector RDICT
set traffic policy POL rule 2 action drop
set traffic policy POL rule 2 selector RESOLVING
set traffic selector RDICT rule 1 mark 5555
set traffic selector RESOLVING rule 1 app-detect state detecting
set traffic selector RESOLVING rule 1 app-detect state host-detected

Step 37: Run command system conntrack clear at DUT0.

Step 38: Run command system conntrack clear at DUT0.

Step 39: Run command file copy http://enterprise.opentok.com/~robot/test_file running://user-data/ force at DUT1, press Ctrl+C after 2 seconds and expect this output:

Show output
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    37  100    37    0     0   5979      0 --:--:-- --:--:-- --:--:--  6166

admin@osdx$

Step 40: Run command system conntrack clear at DUT1.

Step 41: Run command file copy http://enterprise.opentok.com/~robot/test_file running://user-data/ force at DUT1 and expect this output:

Show output
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    37  100    37    0     0   5556      0 --:--:-- --:--:-- --:--:--  6166

Step 42: Run command system conntrack clear at DUT1.

Step 43: Run command file copy http://enterprise.opentok.com/~robot/test_file running://user-data/ force at DUT1 and expect this output:

Show output
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    37  100    37    0     0   4903      0 --:--:-- --:--:-- --:--:--  5285

Step 44: Run command system conntrack show at DUT0 and check if output matches the following regular expressions:

appdetect\[(U130:7;U131:88|U131:88;U130:7);L3:6;L4:80\shttp-host:enterprise.opentok.com\]
Show output
udp      17 27 src=192.168.2.101 dst=10.215.168.66 sport=46221 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=46221 packets=1 bytes=68 mark=0 use=1 appdetect[L3:17;L4:53]
udp      17 29 src=192.168.2.101 dst=10.215.168.66 sport=44820 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=44820 packets=1 bytes=68 mark=0 use=1 appdetect[L3:17;L4:53]
udp      17 29 src=192.168.2.101 dst=10.215.168.66 sport=42225 dport=53 packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=42225 packets=1 bytes=68 mark=0 use=1 appdetect[L3:17;L4:53]
tcp      6 src=192.168.2.101 dst=10.215.168.1 sport=56336 dport=80 packets=6 bytes=593 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=56336 packets=4 bytes=504 [ASSURED] [OFFLOAD, packets=1 bytes=52 packets=2 bytes=392] mark=0 use=2 appdetect[L3:6;L4:80;U130:7;U131:88 http-host:enterprise.opentok.com]
tcp      6 src=192.168.2.101 dst=10.215.168.1 sport=35126 dport=80 packets=6 bytes=593 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=35126 packets=4 bytes=504 [ASSURED] [OFFLOAD, packets=1 bytes=52 packets=2 bytes=392] mark=0 use=3 appdetect[U130:7;U131:88;L3:6;L4:80 http-host:enterprise.opentok.com]
tcp      6 src=192.168.2.101 dst=10.215.168.1 sport=56344 dport=80 packets=6 bytes=593 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=56344 packets=4 bytes=504 [ASSURED] [OFFLOAD, packets=1 bytes=52 packets=2 bytes=392] mark=0 use=3 appdetect[U130:7;U131:88;L3:6;L4:80 http-host:enterprise.opentok.com]
conntrack v1.4.7 (conntrack-tools): 6 flow entries have been shown.

Step 45: Run command nslookup www.gamblingteldat.com dns-server 10.215.168.66 at DUT1 and expect this output:

Show output
Server:         10.215.168.66
Address:        10.215.168.66#53

Name:   www.gamblingteldat.com
Address: 192.168.2.10
** server can't find www.gamblingteldat.com: REFUSED

Step 46: Run command nslookup www.newspaperteldat.com dns-server 10.215.168.66 at DUT1 and expect this output:

Show output
Server:         10.215.168.66
Address:        10.215.168.66#53

Name:   www.newspaperteldat.com
Address: 192.168.2.20
** server can't find www.newspaperteldat.com: REFUSED

Step 47: Run command nslookup www.gamblingteldat.com dns-server 10.215.168.66 at DUT1 and expect this output:

Show output
Server:         10.215.168.66
Address:        10.215.168.66#53

Name:   www.gamblingteldat.com
Address: 192.168.2.10
** server can't find www.gamblingteldat.com: REFUSED

Step 48: Run command nslookup www.newspaperteldat.com dns-server 10.215.168.66 at DUT1 and expect this output:

Show output
Server:         10.215.168.66
Address:        10.215.168.66#53

Name:   www.newspaperteldat.com
Address: 192.168.2.20
** server can't find www.newspaperteldat.com: REFUSED

Step 49: Run command system conntrack app-detect show ip-cache at DUT0 and check if output matches the following regular expressions:

10.215.168.1\s*.*(U130:7;U131:88|U131:88;U130:7)
Show output
-----------------------------------------
     IP       Application ID   Expires in
-----------------------------------------
10.215.168.1  U130:7;U131:88   4m52s912ms
192.168.2.10  U130:15;U131:25  28s812ms
192.168.2.20  U130:4;U131:92   28s896ms

Step 50: Run command system conntrack app-detect show ip-cache at DUT0 and check if output matches the following regular expressions:

192.168.2.10\s*.*(U130:15;U131:25|U131:25;U130:15)
Show output
-----------------------------------------
     IP       Application ID   Expires in
-----------------------------------------
10.215.168.1  U130:7;U131:88   4m52s844ms
192.168.2.10  U130:15;U131:25  28s744ms
192.168.2.20  U130:4;U131:92   28s828ms

Step 51: Run command system conntrack app-detect show ip-cache at DUT0 and check if output matches the following regular expressions:

192.168.2.20\s*.*(U130:4;U131:92|U131:92;U130:4)
Show output
-----------------------------------------
     IP       Application ID   Expires in
-----------------------------------------
10.215.168.1  U130:7;U131:88   4m52s732ms
192.168.2.10  U130:15;U131:25  28s632ms
192.168.2.20  U130:4;U131:92   28s716ms

Step 52: Modify the following configuration lines in DUT0 :

set system alarm DICTERROR1
set system alarm DICTERROR2
set system conntrack app-detect dictionary 1 remote alarm connection-error DICTERROR1
set system conntrack app-detect dictionary 2 remote alarm connection-error DICTERROR2

Step 53: Run command system alarm show at DUT0 and check if output matches the following regular expressions:

DICTERROR1\s+false
Show output
--------------------------------------------------------------------
  Alarm     Status  Toggled  Prev-toggled  Toggle-count  Time up (%)
--------------------------------------------------------------------
DICTERROR1  false                                     0         0.00
DICTERROR2  false                                     0         0.00

Step 54: Run command system alarm show at DUT0 and check if output matches the following regular expressions:

DICTERROR2\s+false
Show output
--------------------------------------------------------------------
  Alarm     Status  Toggled  Prev-toggled  Toggle-count  Time up (%)
--------------------------------------------------------------------
DICTERROR1  false                                     0         0.00
DICTERROR2  false                                     0         0.00

Step 55: Modify the following configuration lines in DUT0 :

set system conntrack app-detect dictionary 1 remote encrypted-key U2FsdGVkX18efDmJHSbeHXqwBJzNjIyeasHYe97PmJA=
set system conntrack app-detect dictionary 2 remote encrypted-key U2FsdGVkX1/ooHqK3EKcA+BtgFlQ91CS6+1wjpPPfaQ=

Step 56: Run command system conntrack clear at DUT0.

Step 57: Run command system conntrack clear at DUT1.

Step 58: Run command file copy http://enterprise.opentok.com/~robot/test_file running://user-data/ force at DUT1, press Ctrl+C after 3 seconds and expect this output:

Show output
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0^C


Operation aborted by user.

admin@osdx$

Step 59: Run command system alarm show at DUT0 and check if output matches the following regular expressions:

(DICTERROR1|DICTERROR2)\s+true
Show output
---------------------------------------------------------------------------------------------
  Alarm     Status              Toggled               Prev-toggled  Toggle-count  Time up (%)
---------------------------------------------------------------------------------------------
DICTERROR1  true    2026-03-05 17:15:10.558480+00:00                           1        67.22
DICTERROR2  true    2026-03-05 17:15:10.558651+00:00                           1        67.25

Step 60: Modify the following configuration lines in DUT0 :

set system conntrack app-detect dictionary 1 remote encrypted-key U2FsdGVkX18efDmJHSbeHc/pkvWzpNft10GsBEG/PlI=
set system conntrack app-detect dictionary 2 remote encrypted-key U2FsdGVkX1/ooHqK3EKcA4brQHgZGYDBIwzEhZTDMFs=

Step 61: Run command system conntrack clear at DUT0.

Step 62: Run command system conntrack clear at DUT1.

Step 63: Run command file copy http://enterprise.opentok.com/~robot/test_file running://user-data/ force at DUT1, press Ctrl+C after 3 seconds and expect this output:

Show output
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    37  100    37    0     0   7115      0 --:--:-- --:--:-- --:--:--  7400

admin@osdx$

Step 64: Run command system alarm show at DUT0 and check if output matches the following regular expressions:

(DICTERROR1|DICTERROR2)\s+false
Show output
-----------------------------------------------------------------------------------------------------------------
  Alarm     Status              Toggled                         Prev-toggled            Toggle-count  Time up (%)
-----------------------------------------------------------------------------------------------------------------
DICTERROR1  false   2026-03-05 17:15:16.992952+00:00  2026-03-05 17:15:10.558480+00:00             2        46.24
DICTERROR2  false   2026-03-05 17:15:16.993156+00:00  2026-03-05 17:15:10.558651+00:00             2        46.25

Remote Application Dictionary run in a VRF

Description

DUT0 configures HTTP detection with a remote application dictionary running in a separate VRF. DUT1 acts as a client behind DUT0. The test verifies that remote dictionary protocol traffic uses the VRF and HTTP connections are classified.

Phase 1: Using the local-vrf option to specify the VRF for the remote dictionary protocol.

Phase 2: Using the local-interface option with an interface assigned to the VRF.

Phase 3: Using the local-address option to source from an address on an interface in the VRF.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 192.168.2.100/24
set interfaces ethernet eth0 vrf MYVRF
set interfaces ethernet eth1 address 10.215.168.64/24
set interfaces ethernet eth1 traffic nat source rule 1 address masquerade
set interfaces ethernet eth1 traffic policy out POL
set interfaces ethernet eth1 vrf MYVRF
set system conntrack app-detect dictionary 1 remote encrypted-key U2FsdGVkX18L6YZwfJi6bt4iDNZtnQG57RcWi0llW8c=
set system conntrack app-detect dictionary 1 remote encrypted-url U2FsdGVkX18Ch89YkHk1elG2Kr5JYZlgqizU/NfYgPeC8y4pFFCXVwAIFOjSOxFu
set system conntrack app-detect dictionary 1 remote local-vrf MYVRF
set system conntrack app-detect dictionary 1 remote property category
set system conntrack app-detect dictionary 1 remote ssl-allow-insecure
set system conntrack app-detect dictionary 1 remote vrf-mark MYVRF
set system conntrack app-detect dictionary 2 remote encrypted-key U2FsdGVkX1+Cfp3q/NELZr+5J1KTHkogk13MWZT6UUo=
set system conntrack app-detect dictionary 2 remote encrypted-url U2FsdGVkX1/aSCLkszM6JDn4kgPl9C70IRE85AynvBWtKnls8N4yIbbOrqTP6JUB
set system conntrack app-detect dictionary 2 remote local-vrf MYVRF
set system conntrack app-detect dictionary 2 remote property reputation
set system conntrack app-detect dictionary 2 remote ssl-allow-insecure
set system conntrack app-detect dictionary 2 remote vrf-mark MYVRF
set system conntrack app-detect enable_dict_match_priv_ip
set system conntrack app-detect http
set system conntrack app-detect http-host
set system conntrack app-detect refresh-flow-appid
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system vrf MYVRF
set traffic policy POL rule 1 action accept
set traffic policy POL rule 1 selector RDICT
set traffic policy POL rule 2 action drop
set traffic policy POL rule 2 selector RESOLVING
set traffic selector RDICT rule 1 vrf-mark MYVRF
set traffic selector RESOLVING rule 1 app-detect state detecting
set traffic selector RESOLVING rule 1 app-detect state host-detected

Step 2: Set the following configuration in DUT1 :

set interfaces ethernet eth0 address 192.168.2.101/24
set protocols static route 0.0.0.0/0 next-hop 192.168.2.100
set service dns forwarding name-server 10.215.168.66
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Set the following configuration in DUT2 :

set interfaces ethernet eth0 address 10.215.168.66/24
set service dns forwarding local-ttl 30
set service dns forwarding name-server 127.0.0.1
set service dns static host-name enterprise.opentok.com inet 10.215.168.1
set service dns static host-name static.opentok.com inet 192.168.2.100
set service dns static host-name www.gamblingteldat.com inet 192.168.2.10
set service dns static host-name www.newspaperteldat.com inet 192.168.2.20
set service ssh
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 4: Ping IP address 10.215.168.1 from DUT1:

admin@DUT1$ ping 10.215.168.1 count 1 size 56 timeout 1
Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data.
64 bytes from 10.215.168.1: icmp_seq=1 ttl=63 time=0.819 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.819/0.819/0.819/0.000 ms

Step 5: Run command system conntrack clear at DUT0.

Step 6: Run command file copy http://enterprise.opentok.com/~robot/test_file running://user-data/ force at DUT1, press Ctrl+C after 2 seconds and expect this output:

Show output
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0^C


Operation aborted by user.

admin@osdx$

Step 7: Run command system conntrack show at DUT0 and check if output matches the following regular expressions:

tcp.*dst=10.215.168.1.*dport=443.*vrf=MYVRF.*vrf=MYVRF
Show output
udp      17 27 src=192.168.2.101 dst=10.215.168.66 sport=42719 dport=53 vrf=MYVRF packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=42719 vrf=MYVRF packets=1 bytes=84 mark=0 use=1 appdetect[L4:53]
tcp      6 3597 ESTABLISHED src=10.215.168.64 dst=10.215.168.1 sport=36066 dport=443 vrf=MYVRF packets=10 bytes=1607 src=10.215.168.1 dst=10.215.168.64 sport=443 dport=36066 vrf=MYVRF packets=9 bytes=3410 [ASSURED] mark=0 use=1 appdetect[L4:443]
udp      17 27 src=127.0.0.1 dst=127.0.0.1 sport=55726 dport=49000 packets=2 bytes=110 src=127.0.0.1 dst=127.0.0.1 sport=49000 dport=55726 packets=2 bytes=132 mark=0 use=1 appdetect[L4:49000]
udp      17 27 src=192.168.2.101 dst=10.215.168.66 sport=47937 dport=53 vrf=MYVRF packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=47937 vrf=MYVRF packets=1 bytes=68 mark=0 use=1 appdetect[L4:53]
tcp      6 299 ESTABLISHED src=192.168.2.101 dst=10.215.168.1 sport=44514 dport=80 vrf=MYVRF packets=7 bytes=1737 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=44514 vrf=MYVRF packets=1 bytes=60 [ASSURED] mark=0 use=1 appdetect[L4:80 http-host:enterprise.opentok.com]
tcp      6 3598 ESTABLISHED src=10.215.168.64 dst=10.215.168.1 sport=36064 dport=443 vrf=MYVRF packets=10 bytes=1607 src=10.215.168.1 dst=10.215.168.64 sport=443 dport=36064 vrf=MYVRF packets=9 bytes=3410 [ASSURED] mark=0 use=1 appdetect[L4:443]
conntrack v1.4.7 (conntrack-tools): 6 flow entries have been shown.

Step 8: Run command traffic selector RDICT show at DUT0 and check if output matches the following regular expressions:

1\s+[1-9]\d*\s+\d+
Show output
Selector RDICT (Policy POL -- ifc eth1 -- hook out prio very-high -- rule 1)

-----------------------------------------------------
rule   pkts match  pkts eval  bytes match  bytes eval
-----------------------------------------------------
1              20         36         3214        5783
-----------------------------------------------------
Total          20         36         3214        5783

Step 9: Run command system conntrack clear at DUT1.

Step 10: Run command file copy http://enterprise.opentok.com/~robot/test_file running://user-data/ force at DUT1, press Ctrl+C after 2 seconds and expect this output:

Show output
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    37  100    37    0     0   6653      0 --:--:-- --:--:-- --:--:--  7400

admin@osdx$

Step 11: Run command system conntrack show at DUT0 and check if output matches the following regular expressions:

vrf=MYVRF.*vrf=MYVRF.*appdetect\[U130:7\shttp-host:enterprise.opentok.com\]
Show output
udp      17 25 src=192.168.2.101 dst=10.215.168.66 sport=42719 dport=53 vrf=MYVRF packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=42719 vrf=MYVRF packets=1 bytes=84 mark=0 use=1 appdetect[L4:53]
tcp      6 3595 ESTABLISHED src=10.215.168.64 dst=10.215.168.1 sport=36066 dport=443 vrf=MYVRF packets=10 bytes=1607 src=10.215.168.1 dst=10.215.168.64 sport=443 dport=36066 vrf=MYVRF packets=9 bytes=3410 [ASSURED] mark=0 use=1 appdetect[L4:443]
udp      17 28 src=192.168.2.101 dst=10.215.168.66 sport=52703 dport=53 vrf=MYVRF packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=52703 vrf=MYVRF packets=1 bytes=68 mark=0 use=1 appdetect[L4:53]
udp      17 25 src=127.0.0.1 dst=127.0.0.1 sport=55726 dport=49000 packets=2 bytes=110 src=127.0.0.1 dst=127.0.0.1 sport=49000 dport=55726 packets=2 bytes=132 mark=0 use=1 appdetect[L4:49000]
udp      17 25 src=192.168.2.101 dst=10.215.168.66 sport=47937 dport=53 vrf=MYVRF packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=47937 vrf=MYVRF packets=1 bytes=68 mark=0 use=1 appdetect[L4:53]
tcp      6 298 ESTABLISHED src=192.168.2.101 dst=10.215.168.1 sport=44514 dport=80 vrf=MYVRF packets=8 bytes=2062 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=44514 vrf=MYVRF packets=1 bytes=60 [ASSURED] mark=0 use=1 appdetect[L4:80 http-host:enterprise.opentok.com]
tcp      6 3595 ESTABLISHED src=10.215.168.64 dst=10.215.168.1 sport=36064 dport=443 vrf=MYVRF packets=10 bytes=1607 src=10.215.168.1 dst=10.215.168.64 sport=443 dport=36064 vrf=MYVRF packets=9 bytes=3410 [ASSURED] mark=0 use=1 appdetect[L4:443]
tcp      6 src=192.168.2.101 dst=10.215.168.1 sport=44530 dport=80 vrf=MYVRF packets=6 bytes=593 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=44530 vrf=MYVRF packets=4 bytes=504 [ASSURED] [OFFLOAD, packets=1 bytes=52 packets=2 bytes=392] mark=0 use=2 appdetect[U130:7 http-host:enterprise.opentok.com]
conntrack v1.4.7 (conntrack-tools): 8 flow entries have been shown.

Step 12: Modify the following configuration lines in DUT0 :

delete system conntrack app-detect dictionary 1 remote local-vrf
delete system conntrack app-detect dictionary 2 remote local-vrf
set system conntrack app-detect dictionary 1 remote local-interface eth1
set system conntrack app-detect dictionary 2 remote local-interface eth1

Step 13: Run command system conntrack clear at DUT0.

Step 14: Run command file copy http://enterprise.opentok.com/~robot/test_file running://user-data/ force at DUT1, press Ctrl+C after 2 seconds and expect this output:

Show output
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0^C


Operation aborted by user.

admin@osdx$

Step 15: Run command system conntrack show at DUT0 and check if output matches the following regular expressions:

tcp.*dst=10.215.168.1.*dport=443.*vrf=MYVRF.*vrf=MYVRF
Show output
tcp      6 298 ESTABLISHED src=10.215.168.64 dst=10.215.168.1 sport=36098 dport=443 vrf=MYVRF packets=4 bytes=532 src=10.215.168.1 dst=10.215.168.64 sport=443 dport=36098 vrf=MYVRF packets=3 bytes=675 [ASSURED] mark=0 use=1 appdetect[L4:443]
tcp      6 298 ESTABLISHED src=10.215.168.64 dst=10.215.168.1 sport=36090 dport=443 vrf=MYVRF packets=4 bytes=532 src=10.215.168.1 dst=10.215.168.64 sport=443 dport=36090 vrf=MYVRF packets=3 bytes=675 [ASSURED] mark=0 use=1 appdetect[L4:443]
udp      17 28 src=127.0.0.1 dst=127.0.0.1 sport=55726 dport=49000 packets=2 bytes=110 src=127.0.0.1 dst=127.0.0.1 sport=49000 dport=55726 packets=2 bytes=132 mark=0 use=1 appdetect[L4:49000]
tcp      6 299 ESTABLISHED src=192.168.2.101 dst=10.215.168.1 sport=44544 dport=80 vrf=MYVRF packets=7 bytes=1737 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=44544 vrf=MYVRF packets=1 bytes=60 [ASSURED] mark=0 use=1 appdetect[L4:80 http-host:enterprise.opentok.com]
tcp      6 8 CLOSE src=192.168.2.101 dst=10.215.168.1 sport=44514 dport=80 vrf=MYVRF packets=4 bytes=457 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=44514 vrf=MYVRF packets=3 bytes=444 [ASSURED] mark=0 use=1 appdetect[L4:80]
udp      17 28 src=192.168.2.101 dst=10.215.168.66 sport=52743 dport=53 vrf=MYVRF packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=52743 vrf=MYVRF packets=1 bytes=68 mark=0 use=1 appdetect[L4:53]
conntrack v1.4.7 (conntrack-tools): 6 flow entries have been shown.

Step 16: Run command system conntrack clear at DUT1.

Step 17: Run command file copy http://enterprise.opentok.com/~robot/test_file running://user-data/ force at DUT1, press Ctrl+C after 2 seconds and expect this output:

Show output
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    37  100    37    0     0   8247      0 --:--:-- --:--:-- --:--:--  9250

admin@osdx$

Step 18: Run command system conntrack show at DUT0 and check if output matches the following regular expressions:

vrf=MYVRF.*vrf=MYVRF.*appdetect\[U130:7\shttp-host:enterprise.opentok.com\]
Show output
udp      17 27 src=192.168.2.101 dst=10.215.168.66 sport=44909 dport=53 vrf=MYVRF packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=44909 vrf=MYVRF packets=1 bytes=68 mark=0 use=1 appdetect[L4:53]
tcp      6 295 ESTABLISHED src=10.215.168.64 dst=10.215.168.1 sport=36098 dport=443 vrf=MYVRF packets=4 bytes=532 src=10.215.168.1 dst=10.215.168.64 sport=443 dport=36098 vrf=MYVRF packets=3 bytes=675 [ASSURED] mark=0 use=1 appdetect[L4:443]
tcp      6 295 ESTABLISHED src=10.215.168.64 dst=10.215.168.1 sport=36090 dport=443 vrf=MYVRF packets=4 bytes=532 src=10.215.168.1 dst=10.215.168.64 sport=443 dport=36090 vrf=MYVRF packets=3 bytes=675 [ASSURED] mark=0 use=1 appdetect[L4:443]
udp      17 25 src=127.0.0.1 dst=127.0.0.1 sport=55726 dport=49000 packets=2 bytes=110 src=127.0.0.1 dst=127.0.0.1 sport=49000 dport=55726 packets=2 bytes=132 mark=0 use=1 appdetect[L4:49000]
tcp      6 299 ESTABLISHED src=192.168.2.101 dst=10.215.168.1 sport=44544 dport=80 vrf=MYVRF packets=8 bytes=2062 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=44544 vrf=MYVRF packets=1 bytes=60 [ASSURED] mark=0 use=1 appdetect[L4:80 http-host:enterprise.opentok.com]
tcp      6 src=192.168.2.101 dst=10.215.168.1 sport=55108 dport=80 vrf=MYVRF packets=6 bytes=593 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=55108 vrf=MYVRF packets=4 bytes=504 [ASSURED] [OFFLOAD, packets=1 bytes=52 packets=2 bytes=392] mark=0 use=2 appdetect[U130:7 http-host:enterprise.opentok.com]
tcp      6 6 CLOSE src=192.168.2.101 dst=10.215.168.1 sport=44514 dport=80 vrf=MYVRF packets=4 bytes=457 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=44514 vrf=MYVRF packets=3 bytes=444 [ASSURED] mark=0 use=1 appdetect[L4:80]
udp      17 25 src=192.168.2.101 dst=10.215.168.66 sport=52743 dport=53 vrf=MYVRF packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=52743 vrf=MYVRF packets=1 bytes=68 mark=0 use=1 appdetect[L4:53]
conntrack v1.4.7 (conntrack-tools): 8 flow entries have been shown.

Step 19: Modify the following configuration lines in DUT0 :

delete system conntrack app-detect dictionary 1 remote local-interface
delete system conntrack app-detect dictionary 2 remote local-interface
set system conntrack app-detect dictionary 1 remote local-address 10.215.168.64
set system conntrack app-detect dictionary 2 remote local-address 10.215.168.64

Step 20: Run command system conntrack clear at DUT0.

Step 21: Run command file copy http://enterprise.opentok.com/~robot/test_file running://user-data/ force at DUT1, press Ctrl+C after 2 seconds and expect this output:

Show output
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0^C


Operation aborted by user.

admin@osdx$

Step 22: Run command system conntrack show at DUT0 and check if output matches the following regular expressions:

tcp.*dst=10.215.168.1.*dport=443.*vrf=MYVRF.*vrf=MYVRF
Show output
tcp      6 297 ESTABLISHED src=10.215.168.64 dst=10.215.168.1 sport=40342 dport=443 vrf=MYVRF packets=4 bytes=532 src=10.215.168.1 dst=10.215.168.64 sport=443 dport=40342 vrf=MYVRF packets=3 bytes=675 [ASSURED] mark=0 use=1 appdetect[L4:443]
udp      17 27 src=127.0.0.1 dst=127.0.0.1 sport=55726 dport=49000 packets=2 bytes=110 src=127.0.0.1 dst=127.0.0.1 sport=49000 dport=55726 packets=2 bytes=132 mark=0 use=1 appdetect[L4:49000]
tcp      6 8 CLOSE src=192.168.2.101 dst=10.215.168.1 sport=44544 dport=80 vrf=MYVRF packets=4 bytes=457 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=44544 vrf=MYVRF packets=3 bytes=444 [ASSURED] mark=0 use=1 appdetect[L4:80]
udp      17 27 src=192.168.2.101 dst=10.215.168.66 sport=47968 dport=53 vrf=MYVRF packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=47968 vrf=MYVRF packets=1 bytes=68 mark=0 use=1 appdetect[L4:53]
tcp      6 297 ESTABLISHED src=10.215.168.64 dst=10.215.168.1 sport=40352 dport=443 vrf=MYVRF packets=4 bytes=532 src=10.215.168.1 dst=10.215.168.64 sport=443 dport=40352 vrf=MYVRF packets=3 bytes=675 [ASSURED] mark=0 use=1 appdetect[L4:443]
tcp      6 299 ESTABLISHED src=192.168.2.101 dst=10.215.168.1 sport=55112 dport=80 vrf=MYVRF packets=7 bytes=1737 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=55112 vrf=MYVRF packets=1 bytes=60 [ASSURED] mark=0 use=1 appdetect[L4:80 http-host:enterprise.opentok.com]
conntrack v1.4.7 (conntrack-tools): 6 flow entries have been shown.

Step 23: Run command system conntrack clear at DUT1.

Step 24: Run command file copy http://enterprise.opentok.com/~robot/test_file running://user-data/ force at DUT1, press Ctrl+C after 2 seconds and expect this output:

Show output
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    37  100    37    0     0   6600      0 --:--:-- --:--:-- --:--:--  7400

admin@osdx$

Step 25: Run command system conntrack show at DUT0 and check if output matches the following regular expressions:

vrf=MYVRF.*vrf=MYVRF.*appdetect\[U130:7\shttp-host:enterprise.opentok.com\]
Show output
tcp      6 295 ESTABLISHED src=10.215.168.64 dst=10.215.168.1 sport=40342 dport=443 vrf=MYVRF packets=4 bytes=532 src=10.215.168.1 dst=10.215.168.64 sport=443 dport=40342 vrf=MYVRF packets=3 bytes=675 [ASSURED] mark=0 use=1 appdetect[L4:443]
udp      17 25 src=127.0.0.1 dst=127.0.0.1 sport=55726 dport=49000 packets=2 bytes=110 src=127.0.0.1 dst=127.0.0.1 sport=49000 dport=55726 packets=2 bytes=132 mark=0 use=1 appdetect[L4:49000]
tcp      6 6 CLOSE src=192.168.2.101 dst=10.215.168.1 sport=44544 dport=80 vrf=MYVRF packets=4 bytes=457 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=44544 vrf=MYVRF packets=3 bytes=444 [ASSURED] mark=0 use=1 appdetect[L4:80]
udp      17 25 src=192.168.2.101 dst=10.215.168.66 sport=47968 dport=53 vrf=MYVRF packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=47968 vrf=MYVRF packets=1 bytes=68 mark=0 use=1 appdetect[L4:53]
tcp      6 295 ESTABLISHED src=10.215.168.64 dst=10.215.168.1 sport=40352 dport=443 vrf=MYVRF packets=4 bytes=532 src=10.215.168.1 dst=10.215.168.64 sport=443 dport=40352 vrf=MYVRF packets=3 bytes=675 [ASSURED] mark=0 use=1 appdetect[L4:443]
tcp      6 src=192.168.2.101 dst=10.215.168.1 sport=55116 dport=80 vrf=MYVRF packets=6 bytes=593 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=55116 vrf=MYVRF packets=4 bytes=504 [ASSURED] [OFFLOAD, packets=1 bytes=52 packets=2 bytes=392] mark=0 use=2 appdetect[U130:7 http-host:enterprise.opentok.com]
udp      17 28 src=192.168.2.101 dst=10.215.168.66 sport=44061 dport=53 vrf=MYVRF packets=1 bytes=68 src=10.215.168.66 dst=10.215.168.64 sport=53 dport=44061 vrf=MYVRF packets=1 bytes=68 mark=0 use=1 appdetect[L4:53]
tcp      6 299 ESTABLISHED src=192.168.2.101 dst=10.215.168.1 sport=55112 dport=80 vrf=MYVRF packets=8 bytes=2062 src=10.215.168.1 dst=10.215.168.64 sport=80 dport=55112 vrf=MYVRF packets=1 bytes=60 [ASSURED] mark=0 use=1 appdetect[L4:80 http-host:enterprise.opentok.com]
conntrack v1.4.7 (conntrack-tools): 8 flow entries have been shown.