how can set rule for every new inbound that have specific pattern of tag #4607
Unanswered
mohamadrezamomeni
asked this question in
Q&A
Replies: 1 comment
-
Assuming you're talking about routing rules, you can't do that without patching. Patch with After that, you can use the log:
# loglevel: info
access: /dev/stdout
inbounds:
- &in
tag: a_1
protocol: dokodemo-door
port: 8001
settings:
address: 1.1.1.1
port: 80
- <<: *in
tag: a_2
port: 8002
- <<: *in
tag: a_x
port: 8003
- <<: *in
tag: a_y
port: 8004
- <<: *in
tag: b_1
port: 8005
- <<: *in
tag: b_2
port: 8006
- <<: *in
tag: other
port: 8007
outbounds:
- &out
tag: out_a
protocol: freedom
- <<: *out
tag: out_b
- <<: *out
tag: out_c
routing:
rules:
- inboundTag:
- regexp:a_[0-9]+$
outboundTag: out_a
- inboundTag:
- regexp:a_[a-z]+$
- other
outboundTag: out_b
- inboundTag:
- regexp:b_.*
outboundTag: out_c |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hello can we put regular expression in rules.rule.inputTag?
Beta Was this translation helpful? Give feedback.
All reactions