mirror of
https://github.com/routerich/RouterichAX3000_configs.git
synced 2025-12-11 05:56:44 +03:00
Fix files
This commit is contained in:
@@ -443,13 +443,63 @@ wget "$url" -O "$destination_file" || { echo "Failed to download the file"; exit
|
|||||||
echo "Installing opera-proxy..."
|
echo "Installing opera-proxy..."
|
||||||
opkg install $destination_file
|
opkg install $destination_file
|
||||||
|
|
||||||
|
cat <<EOF > /etc/sing-box/config.json
|
||||||
|
{
|
||||||
|
"log": {
|
||||||
|
"disabled": true,
|
||||||
|
"level": "error"
|
||||||
|
},
|
||||||
|
"inbounds": [
|
||||||
|
{
|
||||||
|
"type": "tproxy",
|
||||||
|
"listen": "::",
|
||||||
|
"listen_port": 1100,
|
||||||
|
"sniff": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outbounds": [
|
||||||
|
{
|
||||||
|
"type": "http",
|
||||||
|
"server": "127.0.0.1",
|
||||||
|
"server_port": 18080
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"route": {
|
||||||
|
"auto_detect_interface": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
echo "Setting sing-box..."
|
echo "Setting sing-box..."
|
||||||
uci set sing-box.main.enabled='1'
|
uci set sing-box.main.enabled='1'
|
||||||
uci set sing-box.main.user='root'
|
uci set sing-box.main.user='root'
|
||||||
uci commit sing-box
|
uci commit sing-box
|
||||||
|
|
||||||
|
nameRule="option name 'Block_UDP_443'"
|
||||||
|
str=$(grep -i "$nameRule" /etc/config/firewall)
|
||||||
|
if [ -z "$str" ]
|
||||||
|
then
|
||||||
|
echo "Add block QUIC..."
|
||||||
|
|
||||||
|
uci add firewall rule # =cfg2492bd
|
||||||
|
uci set firewall.@rule[-1].name='Block_UDP_80'
|
||||||
|
uci add_list firewall.@rule[-1].proto='udp'
|
||||||
|
uci set firewall.@rule[-1].src='lan'
|
||||||
|
uci set firewall.@rule[-1].dest='wan'
|
||||||
|
uci set firewall.@rule[-1].dest_port='80'
|
||||||
|
uci set firewall.@rule[-1].target='REJECT'
|
||||||
|
uci add firewall rule # =cfg2592bd
|
||||||
|
uci set firewall.@rule[-1].name='Block_UDP_443'
|
||||||
|
uci add_list firewall.@rule[-1].proto='udp'
|
||||||
|
uci set firewall.@rule[-1].src='lan'
|
||||||
|
uci set firewall.@rule[-1].dest='wan'
|
||||||
|
uci set firewall.@rule[-1].dest_port='443'
|
||||||
|
uci set firewall.@rule[-1].target='REJECT'
|
||||||
|
uci commit firewall
|
||||||
|
fi
|
||||||
|
|
||||||
printf "\033[32;1mAutomatic generate config AmneziaWG WARP (n) or manual input parameters for AmneziaWG (y)...\033[0m\n"
|
printf "\033[32;1mAutomatic generate config AmneziaWG WARP (n) or manual input parameters for AmneziaWG (y)...\033[0m\n"
|
||||||
countRepeatAWGGen=0
|
countRepeatAWGGen=5
|
||||||
echo "Input manual parameters AmneziaWG? (y/n): "
|
echo "Input manual parameters AmneziaWG? (y/n): "
|
||||||
read is_manual_input_parameters
|
read is_manual_input_parameters
|
||||||
currIter=0
|
currIter=0
|
||||||
@@ -679,6 +729,7 @@ else
|
|||||||
else
|
else
|
||||||
manage_package "youtubeUnblock" "disable" "stop"
|
manage_package "youtubeUnblock" "disable" "stop"
|
||||||
printf "\033[32;1myoutubeUnblock not work...Try opera proxy...\033[0m\n"
|
printf "\033[32;1myoutubeUnblock not work...Try opera proxy...\033[0m\n"
|
||||||
|
system sing-box restart
|
||||||
sing-box tools fetch ifconfig.co -D /etc/sing-box/
|
sing-box tools fetch ifconfig.co -D /etc/sing-box/
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
printf "\033[32;1mOpera proxy well work...\033[0m\n"
|
printf "\033[32;1mOpera proxy well work...\033[0m\n"
|
||||||
@@ -690,29 +741,6 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
nameRule="option name 'Block_UDP_443'"
|
|
||||||
str=$(grep -i "$nameRule" /etc/config/firewall)
|
|
||||||
if [ -z "$str" ]
|
|
||||||
then
|
|
||||||
echo "Add block QUIC..."
|
|
||||||
|
|
||||||
uci add firewall rule # =cfg2492bd
|
|
||||||
uci set firewall.@rule[-1].name='Block_UDP_80'
|
|
||||||
uci add_list firewall.@rule[-1].proto='udp'
|
|
||||||
uci set firewall.@rule[-1].src='lan'
|
|
||||||
uci set firewall.@rule[-1].dest='wan'
|
|
||||||
uci set firewall.@rule[-1].dest_port='80'
|
|
||||||
uci set firewall.@rule[-1].target='REJECT'
|
|
||||||
uci add firewall rule # =cfg2592bd
|
|
||||||
uci set firewall.@rule[-1].name='Block_UDP_443'
|
|
||||||
uci add_list firewall.@rule[-1].proto='udp'
|
|
||||||
uci set firewall.@rule[-1].src='lan'
|
|
||||||
uci set firewall.@rule[-1].dest='wan'
|
|
||||||
uci set firewall.@rule[-1].dest_port='443'
|
|
||||||
uci set firewall.@rule[-1].target='REJECT'
|
|
||||||
uci commit firewall
|
|
||||||
fi
|
|
||||||
|
|
||||||
printf "\033[32;1mRestart service dnsmasq, odhcpd...\033[0m\n"
|
printf "\033[32;1mRestart service dnsmasq, odhcpd...\033[0m\n"
|
||||||
service dnsmasq restart
|
service dnsmasq restart
|
||||||
service odhcpd restart
|
service odhcpd restart
|
||||||
|
|||||||
@@ -28,6 +28,13 @@ config main 'main'
|
|||||||
list custom_domains 'animego.org'
|
list custom_domains 'animego.org'
|
||||||
list custom_domains 'jut.su'
|
list custom_domains 'jut.su'
|
||||||
list custom_domains 'anilibria.tv'
|
list custom_domains 'anilibria.tv'
|
||||||
|
list custom_domains 'cdninstagram.com'
|
||||||
|
list custom_domains 'instagram.com'
|
||||||
|
list custom_domains 'ig.me'
|
||||||
|
list custom_domains 'fbcdn.net'
|
||||||
|
list custom_domains 'facebook.com'
|
||||||
|
list custom_domains 'facebook.net'
|
||||||
|
list custom_domains 'fb.com'
|
||||||
list custom_domains 'chatgpt.com'
|
list custom_domains 'chatgpt.com'
|
||||||
list custom_domains 'oaistatic.com'
|
list custom_domains 'oaistatic.com'
|
||||||
list custom_domains 'oaiusercontent.com'
|
list custom_domains 'oaiusercontent.com'
|
||||||
@@ -54,6 +61,25 @@ config main 'main'
|
|||||||
list custom_domains 'myip.com'
|
list custom_domains 'myip.com'
|
||||||
list custom_domains '4pda.to'
|
list custom_domains '4pda.to'
|
||||||
list custom_domains 'habr.com'
|
list custom_domains 'habr.com'
|
||||||
|
list custom_domains 'byteoversea.com'
|
||||||
|
list custom_domains 'ibytedtos.com'
|
||||||
|
list custom_domains 'muscdn.com'
|
||||||
|
list custom_domains 'musical.ly'
|
||||||
|
list custom_domains 'tik-tokapi.com'
|
||||||
|
list custom_domains 'tiktok.com'
|
||||||
|
list custom_domains 'tiktokcdn-us.com'
|
||||||
|
list custom_domains 'tiktokcdn-eu.com'
|
||||||
|
list custom_domains 'tiktokcdn.com'
|
||||||
|
list custom_domains 'tiktokd.net'
|
||||||
|
list custom_domains 'tiktokd.org'
|
||||||
|
list custom_domains 'tiktokv.com'
|
||||||
|
list custom_domains 'tiktokv.us'
|
||||||
|
list custom_domains 'tiktokw.us'
|
||||||
|
list custom_domains 'ttwstatic.com'
|
||||||
|
list custom_domains 'intel.com'
|
||||||
|
list custom_domains 'intel.se'
|
||||||
|
list custom_domains 'onetrust.com'
|
||||||
|
list custom_domains 'gemini.google.com'
|
||||||
|
|
||||||
config second 'second'
|
config second 'second'
|
||||||
option second_enable '0'
|
option second_enable '0'
|
||||||
|
|||||||
@@ -39,6 +39,18 @@ config main 'main'
|
|||||||
list custom_domains 'animego.org'
|
list custom_domains 'animego.org'
|
||||||
list custom_domains 'jut.su'
|
list custom_domains 'jut.su'
|
||||||
list custom_domains 'anilibria.tv'
|
list custom_domains 'anilibria.tv'
|
||||||
|
list custom_domains 'cdninstagram.com'
|
||||||
|
list custom_domains 'instagram.com'
|
||||||
|
list custom_domains 'ig.me'
|
||||||
|
list custom_domains 'fbcdn.net'
|
||||||
|
list custom_domains 'facebook.com'
|
||||||
|
list custom_domains 'facebook.net'
|
||||||
|
list custom_domains 'fb.com'
|
||||||
|
list custom_domains 'discord.com'
|
||||||
|
list custom_domains 'discordapp.com'
|
||||||
|
list custom_domains 'discord.gg'
|
||||||
|
list custom_domains 'discordapp.net'
|
||||||
|
list custom_domains 'discord.media'
|
||||||
list custom_domains 'chatgpt.com'
|
list custom_domains 'chatgpt.com'
|
||||||
list custom_domains 'oaistatic.com'
|
list custom_domains 'oaistatic.com'
|
||||||
list custom_domains 'oaiusercontent.com'
|
list custom_domains 'oaiusercontent.com'
|
||||||
@@ -65,6 +77,25 @@ config main 'main'
|
|||||||
list custom_domains 'myip.com'
|
list custom_domains 'myip.com'
|
||||||
list custom_domains '4pda.to'
|
list custom_domains '4pda.to'
|
||||||
list custom_domains 'habr.com'
|
list custom_domains 'habr.com'
|
||||||
|
list custom_domains 'byteoversea.com'
|
||||||
|
list custom_domains 'ibytedtos.com'
|
||||||
|
list custom_domains 'muscdn.com'
|
||||||
|
list custom_domains 'musical.ly'
|
||||||
|
list custom_domains 'tik-tokapi.com'
|
||||||
|
list custom_domains 'tiktok.com'
|
||||||
|
list custom_domains 'tiktokcdn-us.com'
|
||||||
|
list custom_domains 'tiktokcdn-eu.com'
|
||||||
|
list custom_domains 'tiktokcdn.com'
|
||||||
|
list custom_domains 'tiktokd.net'
|
||||||
|
list custom_domains 'tiktokd.org'
|
||||||
|
list custom_domains 'tiktokv.com'
|
||||||
|
list custom_domains 'tiktokv.us'
|
||||||
|
list custom_domains 'tiktokw.us'
|
||||||
|
list custom_domains 'ttwstatic.com'
|
||||||
|
list custom_domains 'intel.com'
|
||||||
|
list custom_domains 'intel.se'
|
||||||
|
list custom_domains 'onetrust.com'
|
||||||
|
list custom_domains 'gemini.google.com'
|
||||||
|
|
||||||
config second 'second'
|
config second 'second'
|
||||||
option second_enable '0'
|
option second_enable '0'
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ DIR="/etc/config"
|
|||||||
DIR_BACKUP="/root/backup2"
|
DIR_BACKUP="/root/backup2"
|
||||||
config_files="network
|
config_files="network
|
||||||
firewall
|
firewall
|
||||||
|
youtubeUnblock
|
||||||
https-dns-proxy
|
https-dns-proxy
|
||||||
dhcp"
|
dhcp"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user