sqproxy icon indicating copy to clipboard operation
sqproxy copied to clipboard

How to verify that it is working?

Open incognico opened this issue 4 years ago • 4 comments
trafficstars

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 avatar Nov 19 '21 08:11 incognico

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?

incognico avatar Nov 19 '21 08:11 incognico

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

spumer avatar Nov 19 '21 20:11 spumer

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

incognico avatar Nov 21 '21 19:11 incognico

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

spumer avatar Dec 19 '21 19:12 spumer