AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   DumpAdminCache() behind NAT (https://forums.alliedmods.net/showthread.php?t=340575)

ilham92-cc-sakura 11-25-2022 14:02

DumpAdminCache() behind NAT
 
I have run several test about DumpAdminCache(), which is commonly used by SourceBans++

What I found, DumpAdminCache() didn't work when game server are bind NAT/Router

DumpAdminCache() not working when behind NAT/Router:
Code:

10.41.3.8:27018 [ public 80.84.45.10:27018 ]

DumpAdminCache() working when Private BGP (Border Gateway Protocol):
Code:

192.168.88.2:27016 [ public 121.121.123.14:27016 ]
DumpAdminCache() working:
Code:

91.11.14.89:27015 [ public same ]
Private BGP/IP Route:
Where Home A LANs able to access Home B LANs without NAT

It seem DumpAdminCache() require dump data arrived at same IP, is this a security feature or can be disable or NATed Server is not supported?

asherkin 11-25-2022 14:44

Re: DumpAdminCache() behind NAT
 
I'm afraid it isn't clear what you're explaining here - could you add some examples of what you're seeing and what you're expecting? Not just the environmental differences.

The `DumpAdminCache()` native just cleans up internal data, it absolutely does not care anything about your server or client IP.

ilham92-cc-sakura 11-25-2022 15:13

Re: DumpAdminCache() behind NAT
 
Quote:

Originally Posted by asherkin (Post 2793695)
I'm afraid it isn't clear what you're explaining here - could you add some examples of what you're seeing and what you're expecting? Not just the environmental differences.

The `DumpAdminCache()` native just cleans up internal data, it absolutely does not care anything about your server or client IP.

I was troubleshoot SourceBans++ sm_rehash:
https://github.com/sbpp/sourcebans-p...n.sp#L689-L695

I have ask SB++ about this, so asking here since code lead to DumpAdminCache();

I copy whole server from VPS to Home Lab, so environment is the same

Here the network map, the X where sm_rehash not working
https://pictr.com/images/2022/11/26/Eg3Uol.png

asherkin 11-25-2022 15:15

Re: DumpAdminCache() behind NAT
 
You're still talking about the environment I'm afraid.

What tests have you done that show it isn't working?

ilham92-cc-sakura 11-25-2022 15:28

Re: DumpAdminCache() behind NAT
 
SourceBans++ Rehash Admin.

Based on image of network map:
✅ = Admin Rehash successful, sb_admins.cfg contain admin steam id, flags, ...
❌ = Admin Rehash failed, blank sb_admins.cfg

You can replicate this by hosting L4D2 behind router, where srcds status show LAN and WAN IP together, execute sm_rehash and check sb_admins.cfg contain admin or blank...

asherkin 11-25-2022 16:40

Re: DumpAdminCache() behind NAT
 
The admin cache code path has nothing to do with writing sb_admins.cfg - I’m afraid you’ve gone off on the wrong track somewhere.

ilham92-cc-sakura 11-25-2022 22:27

Re: DumpAdminCache() behind NAT
 
Quote:

Originally Posted by asherkin (Post 2793711)
The admin cache code path has nothing to do with writing sb_admins.cfg - I’m afraid you’ve gone off on the wrong track somewhere.

I think it's true, I have replicate this issue many time...

the sb_admins.cfg file become blank when server IS behind NAT/Router...

it do something with +ip launch parameter.

I add WireGuard Tunnel between SourceBans++ Website and Game Server (wg0, 192.168.255.0/24),
then launch server with +ip 192.168.255.2 (bind to wg0 tun iface), surprisingly sb_admins.cfg worked, has admin info, but no connection to Steam


All times are GMT -4. The time now is 04:20.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.