Move to fakeip
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=podkop
|
||||
PKG_VERSION:=0.2.5
|
||||
PKG_VERSION:=0.3.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_MAINTAINER:=ITDog <podkop@itdog.info>
|
||||
@@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/package.mk
|
||||
define Package/podkop
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=+dnsmasq-full +curl +jq +kmod-nft-tproxy +coreutils-base64
|
||||
DEPENDS:=+sing-box +curl +jq +kmod-nft-tproxy +coreutils-base64
|
||||
TITLE:=Domain routing app
|
||||
URL:=https://itdog.info
|
||||
PKGARCH:=all
|
||||
@@ -33,8 +33,6 @@ define Package/podkop/prerm
|
||||
|
||||
grep -q "105 podkop" /etc/iproute2/rt_tables && sed -i "/105 podkop/d" /etc/iproute2/rt_tables
|
||||
|
||||
rm -f /etc/hotplug.d/iface/50-podkop
|
||||
|
||||
exit 0
|
||||
endef
|
||||
|
||||
@@ -49,9 +47,6 @@ define Package/podkop/install
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_CONF) ./files/etc/config/podkop $(1)/etc/config/podkop
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/hotplug.d/iface
|
||||
$(INSTALL_DATA) ./files/etc/hotplug.d/iface/50-podkop $(1)/etc/hotplug.d/iface/50-podkop
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,podkop))
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
config main 'main'
|
||||
option mode ''
|
||||
option interface ''
|
||||
option mode 'proxy'
|
||||
#option interface ''
|
||||
option proxy_config_type ''
|
||||
#option outbound_json ''
|
||||
#option proxy_string ''
|
||||
option proxy_string ''
|
||||
option domain_list_enabled '1'
|
||||
option domain_list 'ru_inside'
|
||||
option domain_list 'russia_inside'
|
||||
option subnets_list_enabled '0'
|
||||
#list subnets 'twitter'
|
||||
option custom_domains_list_type 'disable'
|
||||
#list custom_domains ''
|
||||
#option custom_domains_text ''
|
||||
@@ -29,21 +28,5 @@ config main 'main'
|
||||
option yacd '0'
|
||||
option socks5 '0'
|
||||
option exclude_ntp '0'
|
||||
option update_interval ''
|
||||
option custom_domains_text
|
||||
|
||||
config second 'second'
|
||||
option second_enable '0'
|
||||
option second_mode 'proxy'
|
||||
option second_interface ''
|
||||
option second_proxy_config_type ''
|
||||
#option second_outbound_json ''
|
||||
#option second_proxy_string ''
|
||||
option second_domain_service_enabled '0'
|
||||
#list second_service_list 'youtube'
|
||||
option second_custom_domains_type 'disable'
|
||||
#list second_custom_domains 'ifconfig.io'
|
||||
#option second_custom_domains_text ''
|
||||
option second_custom_subnets_type 'disable'
|
||||
#list second_custom_subnets ''
|
||||
#porion second_custom_subnets_text ''
|
||||
option update_interval '1d'
|
||||
option custom_domains_text
|
||||
@@ -1,28 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /lib/functions.sh
|
||||
config_load "/etc/config/podkop"
|
||||
. /etc/init.d/podkop
|
||||
|
||||
config_get "interface" "main" "interface" "0"
|
||||
config_get "mode" "main" "mode" "0"
|
||||
if [ "$mode" = "vpn" ] && [ -n "$interface" ]; then
|
||||
add_route_interface "$interface" "podkop"
|
||||
fi
|
||||
|
||||
if [ "$mode" = "proxy" ]; then
|
||||
echo "Add route for main tproxy"
|
||||
add_route_tproxy podkop
|
||||
fi
|
||||
|
||||
config_get second_enable "second" "second_enable" "0"
|
||||
config_get second_interface "second" "second_interface" "0"
|
||||
config_get "second_mode" "second" "second_mode" "0"
|
||||
if [ "$second_enable" -eq "1" ] && [ "$second_mode" = "vpn" ] && [ -n "$second_interface" ]; then
|
||||
add_route_interface "$second_interface" "podkop2"
|
||||
fi
|
||||
|
||||
if [ "$second_enable" -eq "1" ] && [ "$second_mode" = "proxy" ]; then
|
||||
echo "Add route for second tproxy"
|
||||
add_route_tproxy podkop2
|
||||
fi
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user