Lines Matching refs:n2
37 n2() { pretty 2 "$*"; maybe_exec ip netns exec $netns2 "$@"; } function
104 n2 wg set wg0 \
118 n2 ping -c 10 -f -W 1 192.168.241.1
122 n2 ping6 -c 10 -f -W 1 fd00::1
126 n2 iperf3 -s -1 -B 192.168.241.2 &
133 n2 iperf3 -Z -t 3 -c fd00::1
138 n2 iperf3 -Z -t 3 -b 0 -u -c 192.168.241.1
141 n2 iperf3 -s -1 -B fd00::2 &
151 n2 wg set wg0 peer "$pub1" endpoint 127.0.0.1:1
153 n2 ping -c 10 -f -W 1 192.168.241.1
158 read _ rx_bytes tx_bytes < <(n2 wg show wg0 transfer)
175 n2 wg set wg0 peer "$pub1" endpoint [::1]:1
185 n2 wg set wg0 peer "$pub1" endpoint 127.0.0.1:1
188 n2 ip route add 192.168.241.1/32 dev wg0 mtu 1299
189 n2 ping -c 1 -W 1 -s 1269 192.168.241.1
190 n2 ip route delete 192.168.241.1/32 dev wg0 mtu 1299
203 [[ $(n2 wg show wg0 endpoints) == "$pub1 127.212.121.99:9999" ]]
209 [[ $(n2 wg show wg0 endpoints) == "$pub1 [::1]:9998" ]]
216 n2 ncat -u 192.168.241.1 1111 <<<"X"
221 n2 wg set wg0 listen-port 9997
225 n2 ncat -u 192.168.241.1 1111 <<<"X"
233 n2 wg set wg0 private-key <(echo "$key2") listen-port 2 peer "$pub1" preshared-key <(echo "$psk") a…
236 n2 wg set wg0 peer "$pub3" preshared-key <(echo "$psk") allowed-ips 192.168.241.1/32 peer "$pub1" r…
238 n2 wg set wg0 peer "$pub3" remove
246 n2 wg set wg0 private-key <(echo "$key2") listen-port 2 peer "$pub1" preshared-key <(echo "$psk") a…
256 n2 wg set wg1 listen-port 5 private-key <(echo "$key4") peer "$pub3" allowed-ips 192.168.241.1/32,f…
312 n2 ping -W 1 -c 1 192.168.241.1
313 [[ $(n2 wg show wg0 endpoints) == "$pub1 10.0.0.1:1" ]]
316 n2 ping -W 1 -c 1 192.168.241.1
332 n2 wg set wg1 private-key <(echo "$key3") listen-port 5 peer "$pub1" allowed-ips 192.168.242.1/32
358 n2 iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -d 192.168.241.0/24 -j SNAT --to 192.168.241.2
360 n2 bash -c 'printf 1 > /proc/sys/net/ipv4/ip_forward'
362 n2 wg set wg0 peer "$pub1" remove
367 n2 iptables -t nat -F
391 n2 bash -c 'printf 0 > /proc/sys/net/ipv6/conf/all/accept_dad'
393 n2 bash -c 'printf 0 > /proc/sys/net/ipv6/conf/veth2/accept_dad'
431 n2 wg set wg0 peer "$pub1" endpoint 10.0.0.1:1
432 n2 ping -W 1 -c 1 192.168.241.1
433 [[ $(n2 wg show wg0 endpoints) == "$pub1 10.0.0.1:1" ]]
434 n2 wg set wg0 peer "$pub1" endpoint [fd00:aa::1]:1
435 n2 ping -W 1 -c 1 192.168.241.1
436 [[ $(n2 wg show wg0 endpoints) == "$pub1 [fd00:aa::1]:1" ]]
437 n2 wg set wg0 peer "$pub1" endpoint 10.0.0.2:1
438 n2 ping -W 1 -c 1 192.168.241.1
439 [[ $(n2 wg show wg0 endpoints) == "$pub1 10.0.0.2:1" ]]
440 n2 wg set wg0 peer "$pub1" endpoint [fd00:aa::2]:1
441 n2 ping -W 1 -c 1 192.168.241.1
442 [[ $(n2 wg show wg0 endpoints) == "$pub1 [fd00:aa::2]:1" ]]
449 n2 wg set wg0 peer "$pub1" endpoint 10.50.0.1:1
450 n2 ping -W 1 -c 1 192.168.241.1
451 [[ $(n2 wg show wg0 endpoints) == "$pub1 10.50.0.1:1" ]]
478 [[ $(n2 wg show wg0 endpoints) == "$pub1 10.0.0.1:1" ]]
481 n2 bash -c 'printf 0 > /proc/sys/net/ipv4/conf/veth4/rp_filter'
483 n2 bash -c 'printf 0 > /proc/sys/net/ipv4/conf/all/rp_filter'
485 [[ $(n2 wg show wg0 endpoints) == "$pub1 10.0.0.3:1" ]]