Commit 8986de81 authored by Nico's avatar Nico

add ffs-allow-wan-status

This will make the status page accessible over the WAN interface by
default.
parent caff6fa7
include $(TOPDIR)/rules.mk
PKG_NAME:=ffs-allow-wan-status
PKG_VERSION:=1
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(TOPDIR)/../package/gluon.mk
PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
define Package/ffs-allow-wan-status
SECTION:=gluon
CATEGORY:=Gluon
TITLE:=Allow status page to be accessed over WAN
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/ffs-allow-wan-status/install
$(INSTALL_DIR) $(1)/lib/gluon/upgrade
$(INSTALL_BIN) ./files/lib/gluon/upgrade/141-allow-wan-status $(1)/lib/gluon/upgrade/141-allow-wan-status
endef
$(eval $(call BuildPackage,ffs-allow-wan-status))
#!/usr/bin/lua
local uci = require('simple-uci').cursor()
uci:section('firewall', 'rule', 'wan_status', {
name = 'wan_status',
src = 'wan',
dest_port = '80',
proto = 'tcp',
target = 'ACCEPT',
})
uci:save('firewall')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment