mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
ipsec-policy: Permit GRE traffic for GRE connections
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -82,6 +82,19 @@ install_policy() {
|
||||
# Check if this a net-to-net connection
|
||||
[ "${type}" = "net" ] || continue
|
||||
|
||||
# Install permissions for GRE traffic
|
||||
case "${interface_mode}" in
|
||||
gre)
|
||||
if [ -n "${remote}" ]; then
|
||||
iptables -A IPSECINPUT -p gre \
|
||||
-s "${remote}" -j ACCEPT
|
||||
|
||||
iptables -A IPSECOUTPUT -p gre \
|
||||
-d "${remote}" -j ACCEPT
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
# Split multiple subnets
|
||||
rightsubnets="${rightsubnets//\|/ }"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user