diff --git a/pcap/keep_alive.pcap b/pcap/keep_alive.pcap new file mode 100644 index 0000000..3ae5b24 Binary files /dev/null and b/pcap/keep_alive.pcap differ diff --git a/vg/Vagrantfile b/vg/Vagrantfile index 0f06b10..5626829 100644 --- a/vg/Vagrantfile +++ b/vg/Vagrantfile @@ -1,7 +1,7 @@ # -*- mode: ruby -*- # vi: set ft=ruby : # -n_peer_nodes = 4 +n_peer_nodes = 2 Vagrant.configure("2") do |config| config.vm.box = "generic/ubuntu2004" @@ -27,7 +27,7 @@ Vagrant.configure("2") do |config| ansible.playbook = "playbooks/server_init.yml" ansible.become = true ansible.host_key_checking = false - ansible.verbose = "vvvvv" + ansible.verbose = "vv" ansible.extra_vars = { "n_peer_nodes" => n_peer_nodes } diff --git a/vg/playbooks/templates/peer_wg0.conf b/vg/playbooks/templates/peer_wg0.conf index 7548f00..a0cbb8e 100644 --- a/vg/playbooks/templates/peer_wg0.conf +++ b/vg/playbooks/templates/peer_wg0.conf @@ -3,8 +3,10 @@ [Interface] PrivateKey = {{ peer_node_private_key }} Address = 10.6.0.{{ peer_ip }}/24 +ListenPort = 51820 [Peer] PublicKey = {{ root_node_public_key }} AllowedIPs = 10.6.0.0/24 Endpoint = {{ root_node_public_ip }}:51820 +PersistentKeepalive = 10