Skip to content
Discussion options

You must be logged in to vote

The issue is rule ordering. Your geoip:private block rule applies to inbound-443 without any user filter, so it catches LAN-bound traffic from all users including the ones you want to allow through.

Xray evaluates routing rules top to bottom and stops at the first match. You need to add a user-specific LAN allow rule before the private IP block. Add this rule to your routing.rules array, placed before the geoip:private blocked rule:

{
  "type": "field",
  "inboundTag": ["inbound-443"],
  "user": ["user1"],
  "ip": ["geoip:private"],
  "outboundTag": "direct"
}

Then your existing geoip:privateblocked rule will only fire for users who didn't match the above.

Note: since you're running in…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by janusn
Comment options

You must be logged in to vote
4 replies
@eben-vranken
Comment options

@janusn
Comment options

@eben-vranken
Comment options

@janusn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants