icmp6.sh (34063cb714602972b6d985ad747fc8f66a8daae1) icmp6.sh (89f6723288b0d27d3f14f93e6e83f672fa2b8aca)
1#
2# SPDX-License-Identifier: BSD-2-Clause
3#
4# Copyright (c) 2024 Rubicon Communications, LLC (Netgate)
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:

--- 106 unchanged lines hidden (view full) ---

115
116 vnet_mkjail cl ${epair_cl}a
117 jexec cl ifconfig ${epair_cl}a inet6 2001:db8:3::1/64 no_dad up
118 jexec cl route add -6 default 2001:db8:3::2
119
120 jexec nat pfctl -e
121 pft_set_rules nat \
122 "nat on ${epair_int}b from 2001:db8:3::/64 -> (${epair_int}b:0)" \
1#
2# SPDX-License-Identifier: BSD-2-Clause
3#
4# Copyright (c) 2024 Rubicon Communications, LLC (Netgate)
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:

--- 106 unchanged lines hidden (view full) ---

115
116 vnet_mkjail cl ${epair_cl}a
117 jexec cl ifconfig ${epair_cl}a inet6 2001:db8:3::1/64 no_dad up
118 jexec cl route add -6 default 2001:db8:3::2
119
120 jexec nat pfctl -e
121 pft_set_rules nat \
122 "nat on ${epair_int}b from 2001:db8:3::/64 -> (${epair_int}b:0)" \
123 "pass"
123 "block" \
124 "pass inet6 proto udp" \
125 "pass inet6 proto icmp6 icmp6-type { neighbrsol, neighbradv, echoreq }"
124
125 # Sanity checks
126 atf_check -s exit:0 -o ignore \
127 jexec cl ping -c 1 2001:db8:3::2
128 atf_check -s exit:0 -o ignore \
129 jexec cl ping -c 1 2001:db8:2::1
130 atf_check -s exit:0 -o ignore \
131 jexec cl ping -c 1 2001:db8:2::2

--- 23 unchanged lines hidden ---
126
127 # Sanity checks
128 atf_check -s exit:0 -o ignore \
129 jexec cl ping -c 1 2001:db8:3::2
130 atf_check -s exit:0 -o ignore \
131 jexec cl ping -c 1 2001:db8:2::1
132 atf_check -s exit:0 -o ignore \
133 jexec cl ping -c 1 2001:db8:2::2

--- 23 unchanged lines hidden ---