mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
ocserv-fw should send all traffic to the device-specific forwarding chain
After adding port-specific rules to FORWARD and creating SEC_FORWARD_CHAIN with route-specific rules, send any remaining FORWARD traffic to SEC_FORWARD_CHAIN.
This commit is contained in:
@@ -270,6 +270,10 @@ else
|
||||
iptables -A ${SEC_FORWARD_CHAIN} -i ${DEVICE} -j ACCEPT -m comment --comment "${COMMENT}"
|
||||
fi
|
||||
|
||||
# send traffic to the route chain
|
||||
iptables -A FORWARD -i ${DEVICE} -j ${SEC_FORWARD_CHAIN} --match comment --comment "${COMMENT}"
|
||||
ip6tables -A FORWARD -i ${DEVICE} -j ${SEC_FORWARD_CHAIN} --match comment --comment "${COMMENT}"
|
||||
|
||||
execute_next_script
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user