Cipher Server

Test suite to validate using one or multiple ciphers to protect DoH connection

TLS v1.3 Connection

Description

Sets up the DUT0 as a server, DUT1 as a client and ensures the communication between them is secured by TLS v1.3.

Scenario

Step 1: Set the following configuration in DUT0:

set system certificate trust running://remote.dns-server.crt
set service dns proxy server-name RD
set service dns proxy static RD protocol dns-over-https host name remote.dns
set service dns proxy static RD protocol dns-over-https ip 10.215.168.1
set service dns proxy static RD protocol dns-over-https hash 9318e2e56982477fc6b475380974063c5118b284c903c789dc529dd2081e79b9
set service dns proxy server cert file 'running://dns.dut0.crt'
set service dns proxy server cert key 'running://dns.dut0.key'
set service dns static host-name teldat.com inet 10.11.12.13

Step 2: Set the following configuration in DUT1:

set service dns static host-name dns.dut0 inet 10.215.168.64
set system certificate trust running://CA.crt
set service dns proxy server-name DUT0
set service dns proxy static DUT0 protocol dns-over-https host name dns.dut0
set service dns proxy static DUT0 protocol dns-over-https host port 3000
set service dns proxy static DUT0 protocol dns-over-https ip 10.215.168.64
set service dns proxy static DUT0 protocol dns-over-https hash 7aa4a4eccd8079af2bd8403ac26f109839234e757b0fdf4ae045731febe5d2cf
set service dns proxy log level 0
set service dns resolver local

Step 3: Run command system journal show | cat at DUT1 and expect this output:

Show output
-- Logs begin at Thu 2024-10-10 06:55:12 UTC, end at Thu 2024-10-10 06:55:20 UTC. --
Oct 10 06:55:12.406133 osdx systemd-journald[1611]: Runtime journal (/run/log/journal/7337f10e485e44378e1c9d5b2e7757df) is 1.2M, max 9.7M, 8.5M free.
Oct 10 06:55:12.424217 osdx OSDxCLI[1790]: User 'admin' executed a new command: 'system journal clear'.
Oct 10 06:55:13.275029 osdx osdx-coredump[1994]: Deleting all coredumps in /opt/vyatta/etc/config/coredump...
Oct 10 06:55:13.284872 osdx OSDxCLI[1790]: User 'admin' executed a new command: 'system coredump delete all'.
Oct 10 06:55:15.040851 osdx OSDxCLI[1790]: User 'admin' entered the configuration menu.
Oct 10 06:55:15.156000 osdx OSDxCLI[1790]: User 'admin' added a new cfg line: 'set interfaces ethernet eth0 address 10.215.168.65/24'.
Oct 10 06:55:15.258809 osdx OSDxCLI[1790]: User 'admin' added a new cfg line: 'set protocols static route 0.0.0.0/0 next-hop 10.215.168.1'.
Oct 10 06:55:15.375055 osdx OSDxCLI[1790]: User 'admin' added a new cfg line: 'set service ssh'.
Oct 10 06:55:15.692840 osdx systemd[1]: Starting OpenBSD Secure Shell server...
Oct 10 06:55:15.709016 osdx sshd[2067]: Server listening on 0.0.0.0 port 22.
Oct 10 06:55:15.709491 osdx sshd[2067]: Server listening on :: port 22.
Oct 10 06:55:15.709738 osdx systemd[1]: Started OpenBSD Secure Shell server.
Oct 10 06:55:15.734931 osdx cfgd[1249]: [1790]Completed change to active configuration
Oct 10 06:55:15.773564 osdx OSDxCLI[1790]: User 'admin' committed the configuration.
Oct 10 06:55:15.817705 osdx OSDxCLI[1790]: User 'admin' left the configuration menu.
Oct 10 06:55:16.031951 osdx OSDxCLI[1790]: User 'admin' executed a new command: 'ping 10.215.168.64      count 1 size 56 timeout 1'.
Oct 10 06:55:18.328271 osdx OSDxCLI[1790]: User 'admin' entered the configuration menu.
Oct 10 06:55:18.456097 osdx OSDxCLI[1790]: User 'admin' added a new cfg line: 'set service dns static host-name dns.dut0 inet 10.215.168.64'.
Oct 10 06:55:18.544910 osdx OSDxCLI[1790]: User 'admin' added a new cfg line: 'set system certificate trust running://CA.crt'.
Oct 10 06:55:18.640141 osdx OSDxCLI[1790]: User 'admin' added a new cfg line: 'set service dns proxy server-name DUT0'.
Oct 10 06:55:18.764202 osdx OSDxCLI[1790]: User 'admin' added a new cfg line: 'set service dns proxy static DUT0 protocol dns-over-https host name dns.dut0'.
Oct 10 06:55:18.855278 osdx OSDxCLI[1790]: User 'admin' added a new cfg line: 'set service dns proxy static DUT0 protocol dns-over-https host port 3000'.
Oct 10 06:55:18.977409 osdx OSDxCLI[1790]: User 'admin' added a new cfg line: 'set service dns proxy static DUT0 protocol dns-over-https ip 10.215.168.64'.
Oct 10 06:55:19.131797 osdx OSDxCLI[1790]: User 'admin' added a new cfg line: 'set service dns proxy static DUT0 protocol dns-over-https hash 7aa4a4eccd8079af2bd8403ac26f109839234e757b0fdf4ae045731febe5d2cf'.
Oct 10 06:55:19.251377 osdx OSDxCLI[1790]: User 'admin' added a new cfg line: 'set service dns proxy log level 0'.
Oct 10 06:55:19.368379 osdx OSDxCLI[1790]: User 'admin' added a new cfg line: 'set service dns resolver local'.
Oct 10 06:55:19.506256 osdx ca-certificates[2132]: Updating certificates in /etc/ssl/certs...
Oct 10 06:55:20.186747 osdx ca-certificates[3116]: 1 added, 0 removed; done.
Oct 10 06:55:20.192668 osdx ca-certificates[3120]: Running hooks in /etc/ca-certificates/update.d...
Oct 10 06:55:20.198112 osdx ca-certificates[3124]: done.
Oct 10 06:55:20.329803 osdx systemd[1]: Started DNSCrypt client proxy.
Oct 10 06:55:20.332602 osdx cfgd[1249]: [1790]Completed change to active configuration
Oct 10 06:55:20.341368 osdx OSDxCLI[1790]: User 'admin' committed the configuration.
Oct 10 06:55:20.361834 osdx dnscrypt-proxy[3175]: dnscrypt-proxy 2.0.45
Oct 10 06:55:20.362343 osdx dnscrypt-proxy[3175]: Network connectivity detected
Oct 10 06:55:20.362961 osdx dnscrypt-proxy[3175]: Dropping privileges
Oct 10 06:55:20.366392 osdx dnscrypt-proxy[3175]: Network connectivity detected
Oct 10 06:55:20.366876 osdx dnscrypt-proxy[3175]: Now listening to 127.0.0.1:53 [UDP]
Oct 10 06:55:20.366989 osdx dnscrypt-proxy[3175]: Now listening to 127.0.0.1:53 [TCP]
Oct 10 06:55:20.367020 osdx dnscrypt-proxy[3175]: Firefox workaround initialized
Oct 10 06:55:20.367029 osdx dnscrypt-proxy[3175]: Loading the set of cloaking rules from [/tmp/tmpheF2Cs]
Oct 10 06:55:20.384827 osdx OSDxCLI[1790]: User 'admin' left the configuration menu.
Oct 10 06:55:20.600844 osdx OSDxCLI[1790]: User 'admin' executed a new command: 'system journal show | cat'.
Oct 10 06:55:20.681335 osdx dnscrypt-proxy[3175]: [DUT0] TLS version: 304 - Protocol: h2 - Cipher suite: 4867
Oct 10 06:55:20.681358 osdx dnscrypt-proxy[3175]: [DUT0] OK (DoH) - rtt: 119ms
Oct 10 06:55:20.681384 osdx dnscrypt-proxy[3175]: Server with the lowest initial latency: DUT0 (rtt: 119ms)
Oct 10 06:55:20.681393 osdx dnscrypt-proxy[3175]: dnscrypt-proxy is ready - live servers: 1