Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: dns lookup function #123

Merged
merged 2 commits into from
Apr 8, 2024
Merged

feat: dns lookup function #123

merged 2 commits into from
Apr 8, 2024

Conversation

tobyxdd
Copy link
Collaborator

@tobyxdd tobyxdd commented Apr 6, 2024

Example of detecting proxy protocols that use "SNI spoofing" (such as Xray Reality):

- name: SNI mismatch
  action: block
  log: true
  expr: tls?.req?.sni != nil && ip.dst not in concat(lookup(tls.req.sni, "1.1.1.1:53"), lookup(tls.req.sni, "8.8.8.8:53"))

@tobyxdd tobyxdd added the enhancement New feature or request label Apr 6, 2024
@tobyxdd tobyxdd requested a review from haruue April 6, 2024 21:45
@tobyxdd tobyxdd self-assigned this Apr 6, 2024
@tobyxdd tobyxdd merged commit 393c29b into master Apr 8, 2024
4 checks passed
@tobyxdd tobyxdd deleted the wip-lookup branch April 8, 2024 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants