Move to fakeip

This commit is contained in:
itdoginfo
2025-02-14 16:26:28 +03:00
parent 532fe10a1a
commit 7f6cc66eb1
8 changed files with 1387 additions and 1312 deletions

View File

@@ -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

View File

@@ -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