mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-18 20:50:09 +08:00
remove unused files
This commit is contained in:
parent
218e793253
commit
8ee15d40be
@ -17,8 +17,6 @@
|
||||
</qresource>
|
||||
<qresource prefix="/neko">
|
||||
<file alias="nekobox.png">public/nekobox.png</file>
|
||||
<file>vpn/vpn-run-root.sh</file>
|
||||
<file>vpn/sing-box-vpn.json</file>
|
||||
<file>dashboard-notice.html</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
Binary file not shown.
@ -1,152 +0,0 @@
|
||||
{
|
||||
"log": {
|
||||
"level": "info"
|
||||
},
|
||||
"dns": {
|
||||
"fakeip": {
|
||||
"enabled": true,
|
||||
"inet4_range": "198.18.0.0/15",
|
||||
"inet6_range": "fc00::/18"
|
||||
},
|
||||
"servers": [
|
||||
{
|
||||
"tag": "dns-remote",
|
||||
"address": "8.8.8.8",
|
||||
"detour": "nekoray-socks"
|
||||
},
|
||||
{
|
||||
"tag": "dns-direct",
|
||||
"address": "%DNS_ADDRESS%",
|
||||
"detour": "direct"
|
||||
},
|
||||
{
|
||||
"address": "fakeip",
|
||||
"tag": "dns-fake"
|
||||
},
|
||||
{
|
||||
"address": "rcode://success",
|
||||
"tag": "dns-block"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"query_type": [
|
||||
32,
|
||||
33
|
||||
],
|
||||
"server": "dns-block"
|
||||
},
|
||||
{
|
||||
"domain_suffix": [
|
||||
".lan"
|
||||
],
|
||||
"server": "dns-block"
|
||||
},
|
||||
{
|
||||
"process_name": [
|
||||
"nekoray_core",
|
||||
"nekoray_core.exe",
|
||||
"nekobox_core",
|
||||
"nekobox_core.exe"
|
||||
],
|
||||
"server": "dns-direct"
|
||||
},
|
||||
{
|
||||
"inbound": "%FAKE_DNS_INBOUND%",
|
||||
"server": "dns-fake"
|
||||
}
|
||||
]
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"type": "tun",
|
||||
"tag": "tun-in",
|
||||
"interface_name": "%TUN_NAME%",
|
||||
"inet4_address": "172.19.0.1/28",
|
||||
//%IPV6_ADDRESS%
|
||||
"mtu": %MTU%,
|
||||
"auto_route": true,
|
||||
"strict_route": %STRICT_ROUTE%,
|
||||
"stack": "%STACK%",
|
||||
"endpoint_independent_nat": true,
|
||||
"sniff": false
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"type": "socks",
|
||||
"tag": "nekoray-socks",
|
||||
"udp_fragment": true,
|
||||
//%SOCKS_USER_PASS%
|
||||
"server": "127.0.0.1",
|
||||
"server_port": %PORT%
|
||||
},
|
||||
{
|
||||
"type": "block",
|
||||
"tag": "block"
|
||||
},
|
||||
{
|
||||
"type": "direct",
|
||||
"tag": "direct"
|
||||
},
|
||||
{
|
||||
"type": "dns",
|
||||
"tag": "dns-out"
|
||||
}
|
||||
],
|
||||
"route": {
|
||||
"final": "%FINAL_OUT%",
|
||||
"auto_detect_interface": true,
|
||||
"rules": [
|
||||
{
|
||||
"network": "udp",
|
||||
"port": [
|
||||
135,
|
||||
137,
|
||||
138,
|
||||
139,
|
||||
5353
|
||||
],
|
||||
"outbound": "block"
|
||||
},
|
||||
{
|
||||
"ip_cidr": [
|
||||
"224.0.0.0/3",
|
||||
"ff00::/8"
|
||||
],
|
||||
"outbound": "block"
|
||||
},
|
||||
{
|
||||
"source_ip_cidr": [
|
||||
"224.0.0.0/3",
|
||||
"ff00::/8"
|
||||
],
|
||||
"outbound": "block"
|
||||
},
|
||||
{
|
||||
"port": 53,
|
||||
"process_name": [
|
||||
"nekoray_core",
|
||||
"nekoray_core.exe"
|
||||
],
|
||||
"outbound": "dns-out"
|
||||
},
|
||||
{
|
||||
"process_name": [
|
||||
"nekoray_core",
|
||||
"nekoray_core.exe",
|
||||
"nekobox_core",
|
||||
"nekobox_core.exe"
|
||||
],
|
||||
"outbound": "direct"
|
||||
}
|
||||
//%PROCESS_NAME_RULE%
|
||||
//%CIDR_RULE%
|
||||
,
|
||||
{
|
||||
"port": 53,
|
||||
"outbound": "dns-out"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@ -1,49 +0,0 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
set -x
|
||||
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
echo "[Warning] Tun script not running as root"
|
||||
fi
|
||||
|
||||
if [ "$(uname)" == "Darwin" ]; then
|
||||
IS_MACOS=1
|
||||
fi
|
||||
|
||||
[ -z $TABLE_FWMARK ] && echo "Please set env TABLE_FWMARK" && exit
|
||||
command -v pkill >/dev/null 2>&1 || echo "[Warning] pkill not found"
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
cd $BASEDIR
|
||||
|
||||
pre_start_linux() {
|
||||
# set bypass: fwmark
|
||||
ip rule add pref 8999 fwmark $TABLE_FWMARK table main || return
|
||||
ip -6 rule add pref 8999 fwmark $TABLE_FWMARK table main || return
|
||||
|
||||
# for Tun2Socket
|
||||
iptables -I INPUT -s 172.19.0.2 -d 172.19.0.1 -p tcp -j ACCEPT
|
||||
ip6tables -I INPUT -s fdfe:dcba:9876::2 -d fdfe:dcba:9876::1 -p tcp -j ACCEPT
|
||||
}
|
||||
|
||||
start() {
|
||||
[ -z $IS_MACOS ] && pre_start_linux
|
||||
"./nekobox_core" run -c "$CONFIG_PATH" --protect-listen-path "$PROTECT_LISTEN_PATH" --protect-fwmark $TABLE_FWMARK
|
||||
}
|
||||
|
||||
stop() {
|
||||
[ -z $IS_MACOS ] || return
|
||||
for local in $BYPASS_IPS; do
|
||||
ip rule del to $local table main
|
||||
done
|
||||
iptables -D INPUT -s 172.19.0.2 -d 172.19.0.1 -p tcp -j ACCEPT
|
||||
ip6tables -D INPUT -s fdfe:dcba:9876::2 -d fdfe:dcba:9876::1 -p tcp -j ACCEPT
|
||||
ip rule del fwmark $TABLE_FWMARK
|
||||
ip -6 rule del fwmark $TABLE_FWMARK
|
||||
}
|
||||
|
||||
if [ "$1" != "stop" ]; then
|
||||
start || true
|
||||
fi
|
||||
|
||||
stop || true
|
||||
@ -49,9 +49,6 @@ void loadTranslate(const QString& locale) {
|
||||
if (trans->load(":/translations/" + locale + ".qm")) {
|
||||
QCoreApplication::installTranslator(trans);
|
||||
}
|
||||
if (trans_qt->load(QApplication::applicationDirPath() + "/qtbase_" + locale + ".qm")) {
|
||||
QCoreApplication::installTranslator(trans_qt);
|
||||
}
|
||||
}
|
||||
|
||||
#define LOCAL_SERVER_PREFIX "nekoray-"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user