<jupyter_start><jupyter_text>docker run --cap-add net_admin --cap-add sys_module -v wireguard_conf:/etc/wireguard -p 5555:5555/udp cmulk/wireguard-docker:buster !docker run -it --rm cmulk/wireguard-docker:buster genkeys docker run -it --rm --cap-add sys_module -v /lib/modules:/lib/modules cmulk/wireguard-docker:buster install-module cat wg0.conf [Interface]Address = 192.168.199.173/24PrivateKey = eMoeVn9vQL/sSZRj9TpLBL3TA3hkPB+xttEc2sxG0l4=ListenPort = 5555[Peer]PublicKey = UE4+dTVi7TQpxWcWJnKsaVP/BYUSJaKMlopCm7U4k1o=AllowedIPs = 192.168.199.173<jupyter_code>#Server
! docker run -d --cap-add net_admin --cap-add sys_module \
-v /home/supermap/wireguard_conf:/etc/wireguard -p 5555:5555/udp \
--name wguard cmulk/wireguard-docker:buster<jupyter_output><empty_output><jupyter_text>cat client.conf [Interface]Address = 192.168.199.173/24PrivateKey = eMoeVn9vQL/sSZRj9TpLBL3TA3hkPB+xttEc2sxG0l4=ListenPort = 6666 needed for some clients to accept the config[Peer]PublicKey = UE4+dTVi7TQpxWcWJnKsaVP/BYUSJaKMlopCm7U4k1o=Endpoint = 192.168.199.173:5555AllowedIPs = 0.0.0.0/0,::/0 makes sure ALL traffic routed through VPNPersistentKeepalive = 25<jupyter_code>#Client
! docker run -d --cap-add net_admin --cap-add sys_module \
-v /home/supermap/wireguard_conf:/etc/wireguard -p 6666:6666 \
--name wguardc cmulk/wireguard-docker:buster
!ls -l /home/supermap/wireguard/<jupyter_output>总用量 16
drwxrwxr-x 2 supermap supermap 4096 12月 30 20:28 config_client
drwxrwxr-x 2 supermap supermap 4096 12月 30 14:21 config_server
-rwxrwxr-x 1 supermap supermap  209 12月 30 20:35 start_cli.sh
drwxrwxr-x 4 supermap supermap 4096 12月 30 20:40 wireguard-docker
{'fraction_non_alphanumeric': 0.10955569080949483, 'fraction_numerical': 0.10590383444917834, 'mean_word_length': 5.421875, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 5, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '295429', 'license': 'Apache-2.0', 'n_tokens_mistral': 816, 'n_tokens_neox': 670, 'n_words': 127, 'path': 'tool/wguard.ipynb', 'repo_name': 'linflytang/databook', 'size': '1643'}