Dodaj keepalive traffic

main
Gašper Spagnolo 2023-04-03 09:22:28 +02:00
parent e1e048d95b
commit c2ee777930
3 changed files with 4 additions and 2 deletions

BIN
pcap/keep_alive.pcap Normal file

Binary file not shown.

4
vg/Vagrantfile vendored
View File

@ -1,7 +1,7 @@
# -*- mode: ruby -*- # -*- mode: ruby -*-
# vi: set ft=ruby : # vi: set ft=ruby :
# #
n_peer_nodes = 4 n_peer_nodes = 2
Vagrant.configure("2") do |config| Vagrant.configure("2") do |config|
config.vm.box = "generic/ubuntu2004" config.vm.box = "generic/ubuntu2004"
@ -27,7 +27,7 @@ Vagrant.configure("2") do |config|
ansible.playbook = "playbooks/server_init.yml" ansible.playbook = "playbooks/server_init.yml"
ansible.become = true ansible.become = true
ansible.host_key_checking = false ansible.host_key_checking = false
ansible.verbose = "vvvvv" ansible.verbose = "vv"
ansible.extra_vars = { ansible.extra_vars = {
"n_peer_nodes" => n_peer_nodes "n_peer_nodes" => n_peer_nodes
} }

View File

@ -3,8 +3,10 @@
[Interface] [Interface]
PrivateKey = {{ peer_node_private_key }} PrivateKey = {{ peer_node_private_key }}
Address = 10.6.0.{{ peer_ip }}/24 Address = 10.6.0.{{ peer_ip }}/24
ListenPort = 51820
[Peer] [Peer]
PublicKey = {{ root_node_public_key }} PublicKey = {{ root_node_public_key }}
AllowedIPs = 10.6.0.0/24 AllowedIPs = 10.6.0.0/24
Endpoint = {{ root_node_public_ip }}:51820 Endpoint = {{ root_node_public_ip }}:51820
PersistentKeepalive = 10