hiddify / Hiddify-Manager

Multi-user anti-filtering panel, with an effortless installation and supporting more than 20 protocols to circumvent filtering plus the telegram proxy.
https://hiddify.com
GNU General Public License v3.0
6.15k stars 721 forks source link

Add a non-Iranian config #3243

Closed TheTitanrain closed 1 year ago

TheTitanrain commented 1 year ago

How can I add or edit an existing set of rules for a country other than Iran? I want to replace the "ir" domain in the rules with another domain and add my own list of blocked websites. Is this done by manually editing YAML files or is there an easier way? I've searched everywhere for how to do this, but I haven't found anything.

UltimateABC commented 1 year ago

hi, i think it could help you

try to edit files:

nano /opt/hiddify-config/singbox/configs/03_routing.json
nano /opt/hiddify-config/singbox/configs/03_routing.json.template
nano /opt/hiddify-config/xray/configs/03_routing.json
nano /opt/hiddify-config/xray/configs/03_routing.json.template

after all, reboot.

UltimateABC commented 1 year ago

templates are used while making json files, it will generate 03_routing.json files when you hit apply config option.

it reads the template data and apply it on 03_routing.json file.

UltimateABC commented 1 year ago

maybe need to edit outbond tags too

nano /opt/hiddify-config/xray/configs/06_outbounds.json.template
nano /opt/hiddify-config/xray/configs/06_outbounds.json
TheTitanrain commented 1 year ago

Thanks for the answer and the hint on how to proceed! I will try.

hiddify-com commented 1 year ago

Thank you for your contribution. However, due to many similar or old issues, this bot automatically closed the issue. Please open a new issue if the problem is still there.

این یک پیام خودکار است. به علت شباهت های بسایری که بین ایشو ها بود و خیلی هاش رفع شده برای مدیریت بهتر به صورت خودکار تمام ایشو ها بسته میشه

ولی خواهشمند است که در صورتی که همچنان مشکل شما وجود دارد و یا نیاز به بهبود هست به ما پیام بدید

تا بتونیم مدیریت بهتری روی ایشو ها داشته باشیم.

با سپاس