diff options
| author | Ho3ein <ho3ein.sanaei@gmail.com> | 2023-03-29 00:39:21 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-29 00:39:21 +0300 |
| commit | 706c39452b0753802792e2498a513e503e97283b (patch) | |
| tree | 8bbcfc5d841069ad8cefb6bb9a20b1d52cd39602 | |
| parent | 80759c8951d1f3108310b857a65260cb94a2e6c2 (diff) | |
| parent | 8b855a7cb5dccb37feb8412f310dfc6d2804a59f (diff) | |
Merge pull request #115 from MHSanaei/dev
enable traffic + block IR domain
| -rw-r--r-- | README.md | 14 | ||||
| -rw-r--r-- | media/4.png | bin | 47513 -> 162912 bytes | |||
| -rw-r--r-- | media/enable-traffic+block-IR-IP.txt (renamed from media/for enable traffic+block all iran ip.txt) | 1 | ||||
| -rw-r--r-- | media/enable-traffic+block-IR-domain.txt | 81 | ||||
| -rw-r--r-- | media/enable-traffic.txt (renamed from media/for enable traffic.txt) | 1 |
5 files changed, 89 insertions, 8 deletions
@@ -1,8 +1,8 @@ # 3x-ui - - - - +[](https://github.com/MHSanaei/3x-ui/releases) +[](#) +[](#) +[](#) [](https://www.gnu.org/licenses/gpl-3.0.en.html) @@ -34,6 +34,7 @@ certbot renew --dry-run - Port: 2053 - username and password will be generated randomly if you skip to modify your own security(x-ui "7") - database path: /etc/x-ui/x-ui.db +- xray config path: /usr/local/x-ui/bin/config.json before you set ssl on settings - http:// ip or domain:2053/xui @@ -44,8 +45,9 @@ After you set ssl on settings # Enable Traffic For Users: **copy and paste to xray Configuration :** (you don't need to do this if you have a fresh install) -- [for enable traffic](https://raw.githubusercontent.com/mhsanaei/3x-ui/main/media/for%20enable%20traffic.txt) -- [for enable traffic+block all iran ip address](https://raw.githubusercontent.com/mhsanaei/3x-ui/main/media/for%20enable%20traffic%2Bblock%20all%20iran%20ip.txt) +- [enable traffic](./media/enable-traffic.txt) +- [enable traffic+block all IR IP address](./media/enable-traffic+block-IR-IP.txt) +- [enable traffic+block all IR domain](./media/enable-traffic+block-IR-domain.txt) # Features diff --git a/media/4.png b/media/4.png Binary files differindex 2cd2ecf0..b58f520e 100644 --- a/media/4.png +++ b/media/4.png diff --git a/media/for enable traffic+block all iran ip.txt b/media/enable-traffic+block-IR-IP.txt index 8947f066..b1a1178f 100644 --- a/media/for enable traffic+block all iran ip.txt +++ b/media/enable-traffic+block-IR-IP.txt @@ -3,7 +3,6 @@ "loglevel": "warning", "access": "./access.log" }, - "api": { "services": [ "HandlerService", diff --git a/media/enable-traffic+block-IR-domain.txt b/media/enable-traffic+block-IR-domain.txt new file mode 100644 index 00000000..efd548c0 --- /dev/null +++ b/media/enable-traffic+block-IR-domain.txt @@ -0,0 +1,81 @@ +{ + "log": { + "loglevel": "warning", + "access": "./access.log" + }, + "api": { + "services": [ + "HandlerService", + "LoggerService", + "StatsService" + ], + "tag": "api" + }, + "inbounds": [ + { + "listen": "127.0.0.1", + "port": 62789, + "protocol": "dokodemo-door", + "settings": { + "address": "127.0.0.1" + }, + "tag": "api" + } + ], + "outbounds": [ + { + "protocol": "freedom", + "settings": {} + }, + { + "protocol": "blackhole", + "settings": {}, + "tag": "blocked" + } + ], + "policy": { + "levels": { + "0": { + "statsUserUplink": true, + "statsUserDownlink": true + } + }, + "system": { + "statsInboundDownlink": true, + "statsInboundUplink": true + } + }, + "routing": { + "rules": [ + { + "inboundTag": [ + "api" + ], + "outboundTag": "api", + "type": "field" + }, + { + "domain": [ + "regexp:.+.ir$" + ], + "outboundTag": "blocked", + "type": "field" + }, + { + "outboundTag": "blocked", + "protocol": [ + "bittorrent" + ], + "type": "field" + }, + { + "outboundTag": "blocked", + "ip": [ + "geoip:private" + ], + "type": "field" + } + ] + }, + "stats": {} +}
\ No newline at end of file diff --git a/media/for enable traffic.txt b/media/enable-traffic.txt index fd3c2370..0acbd3aa 100644 --- a/media/for enable traffic.txt +++ b/media/enable-traffic.txt @@ -3,7 +3,6 @@ "loglevel": "warning", "access": "./access.log" }, - "api": { "services": [ "HandlerService", |
