Created
September 15, 2023 21:00
-
-
Save soheilsec/c1995d1441e0fed0c67c95a80ee33a4c to your computer and use it in GitHub Desktop.
نصب v2ray روی میکروتیک
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
اولین به این اموزش نیاز هست | |
https://help.mikrotik.com/docs/display/ROS/Container | |
فعال کردن کانتینر | |
/system/device-mode/update container=yes | |
ریبوت سخت افزاری | |
ساخت اینترفیس و نت | |
/interface/veth/add name=veth1 address=172.17.0.2/24 gateway=172.17.0.1 | |
/interface/bridge/add name=containers | |
/ip/address/add address=172.17.0.1/24 interface=containers | |
/interface/bridge/port add bridge=containers interface=veth1 | |
/ip/firewall/nat/add chain=srcnat action=masquerade src-address=172.17.0.0/24 | |
کامندها | |
/container/config/set registry-url=https://registry-1.docker.io tmpdir=/pull | |
/container/add remote-image=teddysun/v2ray:latest interface=veth1 root-dir=/v2ray | |
container/shell 0 | |
سمپل یه کانفیگ سمت سرور | |
cat > /etc/v2ray/config.json <<EOF | |
{ | |
"inbounds": [ | |
{ | |
"port": 443, | |
"protocol": "vless", | |
"settings": { | |
"clients": [ | |
{ | |
"id": "6B57824F-5F8B-407C-96F5-BD2D50F6BB45", | |
"flow": "xtls-rprx-direct" | |
} | |
], | |
"decryption": "none", | |
"fallbacks": [ | |
{ | |
"dest": 80, | |
"xver": 0 | |
}, | |
{ | |
"alpn": "h2", | |
"dest": 888, | |
"xver": 1 | |
} | |
] | |
} | |
} | |
], | |
"outbounds": [ | |
{ | |
"protocol": "freedom", | |
"settings": {} | |
} | |
] | |
} | |
EOF |
سلام منظورت چیه
یه کانفیگ v2ray داری میخوای اینترنت میکروتیک از روی اون رد بشه ؟ اگر اینه شدن میشه من پیاده سازی نکردم
سلام
میشه یک کانفیگ برای استفاده از trojan هم بگذارید؟ چون با این تنظیم اطلاعات سرور زود لو میره و فیلترش میکنن
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
راهی داره فقط از خود کانفیگ روی میکروتیک استفاده کرد بدون سرور؟یا حتما نیاز به سرور داره؟