1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Allow ICMP from VPN to OMR

This commit is contained in:
Ycarus 2018-05-31 15:44:40 +02:00
parent 61d58cab65
commit 6ca4577c2c
2 changed files with 12 additions and 1 deletions

View file

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=openmptcprouter
PKG_VERSION:=0.80
PKG_VERSION:=0.90
PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk

View file

@ -13,6 +13,17 @@ if [ "$(uci -q show firewall | grep Allow-All-Ping)" = "" ]; then
commit firewall
EOF
fi
if [ "$(uci -q show firewall | grep Allow-VPN-ICMP)" = "" ]; then
uci -q batch <<-EOF >/dev/null
add firewall rule
set firewall.@rule[-1].enabled='1'
set firewall.@rule[-1].target='ACCEPT'
set firewall.@rule[-1].name='Allow-VPN-ICMP'
set firewall.@rule[-1].proto='icmp'
set firewall.@rule[-1].src='vpn'
commit firewall
EOF
fi
if [ "$(uci -q show firewall | grep Allow-Lan-to-Wan)" = "" ]; then
uci -q batch <<-EOF >/dev/null
add firewall rule