Avec une clef static je pense, c’est moins fiable.
Attention à ne pas confondre, ce qui est crypté c’est le trafic réel qui encapsule le trafic de ton interface tap ou tun vers le serveur:
Un ping donne
totoche:/etc/openvpn# tcpdump -i tap0
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tap0, link-type EN10MB (Ethernet), capture size 96 bytes
15:01:58.428047 ARP, Request who-has 10.8.0.1 tell totoche.local, length 28
15:01:58.473522 ARP, Reply 10.8.0.1 is-at 00:ff:0d:7f:59:4c (oui Unknown), length 28
15:01:58.473545 IP totoche.local > 10.8.0.1: ICMP echo request, id 13439, seq 1, length 64
15:01:58.520852 IP 10.8.0.1 > totoche.local: ICMP echo reply, id 13439, seq 1, length 64
15:01:58.554233 IP6 fe80::2cbf:76ff:fe77:df4d.mdns > ff02::fb.mdns: 0[|domain]
^C15:01:58.554330 IP totoche.local.mdns > 224.0.0.251.mdns: 0 PTR (QM)? 1.0.8.10.in-addr.arpa. (39)
C’est le trafic encapsulé véhiculé par le VPN. Il est en clair. Le même traffic sur l’interface réelle:
15:03:24.004317 IP totoche.chezmoi.35412 > serveurvpn.net.14142: UDP, length 229
15:03:24.620788 IP totoche.chezmoi.35412 > serveurvpn.net.14142: UDP, length 133
15:03:24.667300 IP serveurvpn.net.14142 > totoche.chezmoi.35412: UDP, length 133
15:03:25.622400 IP totoche.chezmoi.35412 > serveurvpn.net.14142: UDP, length 133
15:03:25.668829 IP serveurvpn.net.14142 > totoche.chezmoi.35412: UDP, length 133
15:03:26.623607 IP totoche.chezmoi.35412 > serveurvpn.net.14142: UDP, length 133
15:03:26.670797 IP serveurvpn.net.14142 > totoche.chezmoi.35412: UDP, length 133
15:03:27.625659 IP totoche.chezmoi.35412 > serveurvpn.net.14142: UDP, length 133
15:03:27.671829 IP serveurvpn.net.14142 > totoche.chezmoi.35412: UDP, length 133
Tu ne vois que le traffic réel (crypté donc) sur le port UDP, celui ci est indéchiffrable