Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
HAVE_IPSEC="true"
HAVE_OPENVPN="true"
+HAVE_WG="true"
# INPUT
;;
esac
+# WireGuard INPUT
+case "${HAVE_WG},${POLICY}" in
+ true,MODE1) ;;
+ true,*)
+ iptables -A POLICYIN -i wg+ -j ACCEPT
+ ;;
+esac
+
case "${FWPOLICY2}" in
REJECT)
if [ "${DROPINPUT}" = "on" ]; then
# Grant access for OpenVPN connections
iptables -A POLICYFWD -i tun+ -j ACCEPT
+ # Grant access for WireGuard
+ iptables -A POLICYFWD -i wg+ -j ACCEPT
+
if [ -n "${IFACE}" ]; then
if [ "${HAVE_BLUE}" = "true" ] && [ -n "${BLUE_DEV}" ]; then
iptables -A POLICYFWD -i "${BLUE_DEV}" -s "${BLUE_NETADDRESS}/${BLUE_NETMASK}" -o "${IFACE}" -j ACCEPT