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

Remove not used firewall include on all proxy

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-01-17 16:35:17 +01:00
parent 289c26ebad
commit 37b059f39a
5 changed files with 17 additions and 3 deletions

View file

@ -255,7 +255,10 @@ rules_exist() {
start_service() { start_service() {
local cfgtype local cfgtype
[ -n "$(uci -q get firewall.ss_rules)" ] && {
uci -q del firewall.ss_rules
uci -q commit firewall
}
mkdir -p "$ss_confdir" mkdir -p "$ss_confdir"
config_load shadowsocks-libev config_load shadowsocks-libev
for cfgtype in ss_local ss_redir ss_server ss_tunnel; do for cfgtype in ss_local ss_redir ss_server ss_tunnel; do

View file

@ -210,7 +210,10 @@ rules_exist() {
start_service() { start_service() {
local cfgtype local cfgtype
[ -n "$(uci -q get firewall.ssr_rules)" ] && {
uci -q del firewall.ssr_rules
uci -q commit firewall
}
mkdir -p "$ss_confdir" mkdir -p "$ss_confdir"
config_load shadowsocks-rust config_load shadowsocks-rust
for cfgtype in ss_local ss_redir ss_server ss_tunnel; do for cfgtype in ss_local ss_redir ss_server ss_tunnel; do

View file

@ -2100,6 +2100,10 @@ clear_transparent_proxy() {
start_instance() { start_instance() {
local section="$1" local section="$1"
[ -n "$(uci -q get firewall.v2ray)" ] && {
uci -q del firewall.v2ray
uci -q commit firewall
}
if ! v2ray_section_validate "$section" ; then if ! v2ray_section_validate "$section" ; then
_err "Invalid config." _err "Invalid config."

View file

@ -1,2 +1,2 @@
#!/bin/sh #!/bin/sh
[ "$(uci -q get xray.main_dns.enabled)" = "1"] && /etc/init.d/xray rules_up [ "$(uci -q get xray.main_dns.enabled)" = "1" ] && /etc/init.d/xray rules_up

View file

@ -2321,6 +2321,10 @@ rules_down() {
start_service() { start_service() {
[ -n "$(uci -q get firewall.xray)" ] && {
uci -q del firewall.xray
uci -q commit firewall
}
clear_transparent_proxy clear_transparent_proxy
config_load "$NAME" config_load "$NAME"