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

How to verify that it is working? #110

Open
incognico opened this issue Nov 19, 2021 · 4 comments
Open

How to verify that it is working? #110

incognico opened this issue Nov 19, 2021 · 4 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@incognico
Copy link
Contributor

incognico commented Nov 19, 2021

I just set up sqproxy/sqredirect with bpf and have no idea if it is working correctly.
Using HLDS, or rather SvenDS (Sven Co-op).

All I see in the log occasionally is 2021-11-19 08:59:20,827 [WARNING] [HLDS-Server] No response for <class 'source_query_proxy.source.messages.RulesRequest'>({'request_type': 86, 'challenge': 2145834309})

eBPF rule seems to be active when sqproxy is running:

# tc filter show dev ens3
filter parent 1: protocol all pref 49152 u32 chain 0
filter parent 1: protocol all pref 49152 u32 chain 0 fh 800: ht divisor 1
filter parent 1: protocol all pref 49152 u32 chain 0 fh 800::2 order 2 key ht 800 bkt 0 flowid 1:2 not_in_hw
  match 00000000/00000000 at 0
        action order 1: bpf outgoing id 67 tag 76420d702d0a2d1d jited default-action pass
         index 2 ref 1 bind 1

I'm proxying 27015<->30015 but with tcpdump I don't see any traffic on port 30015.

@incognico
Copy link
Contributor Author

Hmm, it seems to be working because the player infos are actually cached for 5sec when refreshing in the steam server info dialog. Is the eBPF redirect at such low level that I can not see any traffic on the redirect port with tcpdump?

@spumer
Copy link
Collaborator

spumer commented Nov 19, 2021

Which command you use to traffic dump? I mean full command

@incognico
Copy link
Contributor Author

Just tcpdump -ni interface port 30015. I don't see any traffic but sqproxy is working. 🤷‍♂️

@spumer spumer added the question Further information is requested label Dec 18, 2021
@spumer
Copy link
Collaborator

spumer commented Dec 19, 2021

Yea, in future plans is back some CLI stats or something else to make it more clarify

@spumer spumer added the enhancement New feature or request label Apr 3, 2022
@spumer spumer mentioned this issue Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants