Signed-off-by: Stan Grishin <stangri@melmac.net> vpnbypass: fixed renamed option in stop_service Signed-off-by: Stan Grishin <stangri@melmac.net> vpnbypass: fixed typo in makefile, switch FW_MARK to 0x010000 to play nice with SQM/mwan (thanks Hannu) Signed-off-by: Stan Grishin <stangri@melmac.net> vpnbypass: proper masking in setting mark Signed-off-by: Stan Grishin <stangri@melmac.net> vpnbypass: separating luci-app-vpnbypass into different tree Signed-off-by: Stan Grishin <stangri@melmac.net> vpnbypass: fixed incorrect use of procd_add_reload_interface_trigger according to http://wiki.prplfoundation.org/wiki/Procd_reference Signed-off-by: Stan Grishin <stangri@melmac.net>
53 lines
No EOL
1.4 KiB
Makefile
53 lines
No EOL
1.4 KiB
Makefile
# Copyright (c) 2017 Stan Grishin (stangri@melmac.net)
|
|
# This is free software, licensed under the GNU General Public License v3.
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=vpnbypass
|
|
PKG_VERSION:=1.0.0
|
|
PKG_RELEASE:=4
|
|
PKG_LICENSE:=GPL-3.0+
|
|
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.net>
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/$(PKG_NAME)
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
DEPENDS:=+ip-full +ipset +iptables +ubox +dnsmasq-full
|
|
CONFLICTS:=ip dnsmasq
|
|
TITLE:=Simple VPN Bypass Service
|
|
PKGARCH:=all
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/description
|
|
This service can be used to enable simple VPN split tunnelling.
|
|
Supports accessing domains, IP ranges outside of your VPN tunnel.
|
|
Also supports dedicating local ports/IP ranges for direct internet access (outside of your VPN tunnel).
|
|
Please see the README for further information.
|
|
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/conffiles
|
|
/etc/config/vpnbypass
|
|
endef
|
|
|
|
define Build/Prepare
|
|
endef
|
|
|
|
define Build/Configure
|
|
endef
|
|
|
|
define Build/Compile
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/install
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/vpnbypass.init $(1)/etc/init.d/vpnbypass
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_CONF) ./files/vpnbypass.conf $(1)/etc/config/vpnbypass
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/firewall
|
|
$(INSTALL_DATA) ./files/vpnbypass.hotplug $(1)/etc/hotplug.d/firewall/90-vpnbypass
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME))) |