Lines Matching full:allowed
74 endpoint ${endpoint2}:12345 allowed-ips ${tunnel2}/32
80 endpoint ${endpoint1}:12345 allowed-ips ${tunnel1}/32
142 endpoint ${endpoint2}:12345 allowed-ips ${tunnel2}/128,${testnet}
148 endpoint ${endpoint1}:12345 allowed-ips ${tunnel1}/128,${testnet}
217 endpoint ${endpoint2}:12345 allowed-ips ${tunnel2}/32,${tunnel4}/32
223 endpoint ${endpoint1}:12345 allowed-ips ${tunnel1}/32,${tunnel3}/32
290 allowed-ips "${tunnel1}/32"
333 allowed-ips "${tunnel1}/32"
389 endpoint 127.0.0.1:12346 allowed-ips ${tunnel2}/32
395 endpoint 127.0.0.1:12345 allowed-ips ${tunnel1}/32
420 # The kernel should now allow removing a single allowed-ip without having to
426 atf_set descr "Add/remove allowed-ips from a peer with the +/- incremental syntax"
453 allowed-ips "${tunnel1}/32,${tunnel2}/32"
455 atf_check -o save:wg.allowed jexec wgtest1 wg show $wg1 allowed-ips
456 atf_check grep -q "${tunnel1}/32" wg.allowed
457 atf_check grep -q "${tunnel2}/32" wg.allowed
461 allowed-ips "-${tunnel2}/32"
463 atf_check -o save:wg-2.allowed jexec wgtest1 wg show $wg1 allowed-ips
464 atf_check grep -q "${tunnel1}/32" wg-2.allowed
465 atf_check -s not-exit:0 grep -q "${tunnel2}/32" wg-2.allowed
469 allowed-ips "+${tunnel2}/32"
471 atf_check -o save:wg-3.allowed jexec wgtest1 wg show $wg1 allowed-ips
472 atf_check grep -q "${tunnel1}/32" wg-3.allowed
473 atf_check grep -q "${tunnel2}/32" wg-3.allowed
479 allowed-ips "+${tunnel2}/32"
481 atf_check -o save:wg-4.allowed -x \
482 "jexec wgtest1 wg show $wg1 allowed-ips | cut -f2 | tr ' ' '\n'"
483 atf_check -o match:"2 wg-4.allowed$" wc -l wg-4.allowed
489 allowed-ips "-${tunnel3}/32"
491 atf_check -o save:wg-5.allowed -x \
492 "jexec wgtest1 wg show $wg1 allowed-ips | cut -f2 | tr ' ' '\n'"
493 atf_check cmp -s wg-4.allowed wg-5.allowed
504 atf_set descr "Add/remove IPv6 allowed-ips from a peer with the +/- incremental syntax"
530 allowed-ips "${tunnel1}/128"
531 atf_check -o save:wg.allowed jexec wgtest1 wg show $wg1 allowed-ips
532 atf_check grep -q "${tunnel1}/128" wg.allowed
536 allowed-ips "+${tunnel2}/128"
537 atf_check -o save:wg-2.allowed jexec wgtest1 wg show $wg1 allowed-ips
538 atf_check grep -q "${tunnel1}/128" wg-2.allowed
539 atf_check grep -q "${tunnel2}/128" wg-2.allowed
543 allowed-ips "-${tunnel1}/128"
544 atf_check -o save:wg-3.allowed jexec wgtest1 wg show $wg1 allowed-ips
545 atf_check -s not-exit:0 grep -q "${tunnel1}/128" wg-3.allowed
546 atf_check grep -q "${tunnel2}/128" wg-3.allowed
558 atf_set descr "Add/remove allowed-ips from a peer with the +/- incremental syntax to steal"
591 allowed-ips "${tunnel1}/32,${tunnel2}/32"
595 allowed-ips "${tunnel3}/32"
601 allowed-ips "-${tunnel3}/32"
603 atf_check -o save:wg.allowed jexec wgtest1 wg show $wg1 allowed-ips
604 atf_check grep -Eq "^${regex3}.+${tunnel3}/32" wg.allowed
609 allowed-ips "+${tunnel3}/32"
611 atf_check -o save:wg-2.allowed jexec wgtest1 wg show $wg1 allowed-ips
613 atf_check grep -Eq "^${regex2}.+${tunnel3}/32" wg-2.allowed
614 atf_check grep -Evq "^${regex3}.+${tunnel3}/32" wg-2.allowed