feat(client-template): add possibility to use vless flow and uuid in client template#405
feat(client-template): add possibility to use vless flow and uuid in client template#405KlimSemikin wants to merge 1 commit intoPasarGuard:devfrom
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
And why you should do this ? |
I use it like this one: {
"inbounds": [
{
...
}
],
"outbounds": [
{
// main config from panel
"tag": "proxy"
},
{
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "domain2.xyz",
"port": 443,
"users": [
{
"encryption": "none",
"flow": "{{ flow }}",
"id": "{{ uuid }}"
}
]
}
]
},
"streamSettings": {
"network": "raw",
"security": "tls",
"fingerprint": "chrome",
"serverName": "domain2.xyz"
}
},
"tag": "germany"
},
{
"tag": "direct",
"protocol": "freedom"
},
{
"tag": "block",
"protocol": "blackhole"
}
],
"observatory": {
"subjectSelector": [
"germany"
],
"probeUrl": "https://captive.apple.com/hotspot-detect.html",
"probeInterval": "10s",
"enableConcurrency": false
},
"routing": {
"domainStrategy": "IPIfNonMatch",
"balancers": [
{
"tag": "balancer",
"selector": [
"germany"
],
"fallbackTag": "proxy"
}
],
"rules": [
{
"inboundTag": [
"socks"
],
"balancerTag": "balancer"
}
]
}
}Main outbound "proxy" that added automatically by pasarguard uses CDN. I want to use cdn with paid traffic only for mobile networks with enabled whitelist blocks. So i don`t want to pay for users forgot enable another default config if they using wi-fi (without whitelist blocks). "proxy" will be used only if "germany" is not available. With {{ uuid }} second config will be related to same user with all trafic counting and so on With this feature we get more possibilities for customise client configs and create more flexible configs with many outbounds related with current user |
e25442c to
1735798
Compare
Add possibility to use uuid and flow variables in client template. You can add second outbound with same user uuid with this changes. It can be used with observer for example and pick different oubounds by ping etc