I wrote a stand-alone anticheat. When the client anticheat connects to its server, the server creates a firewall rule allowing the game client to gain access to the server.
The problem is the firewall creates rules by IP address. If NAT is used, then one of the NATed IPs accesses the anticheat server, this server creates a firewall rule for all IPs behind the NAT.
How can I solve this "NAT" issue? Is it possible to solve this using Windows firewall API?
I don't want to block NAT'ed connections, I want to allow it if there is a way to authenticate users' devices with Windows firewall on the anticheat server first.
The anticheat server and game server are on the same PC. Windows firewall blocks all inbound connections for the game. The only way you can connect to the game server is to authenticate first with the anticheat server. But, firewall add rules by IP address. If I have two users with the same external IP, one of them accesses with anticheat client and the other has no need to do it because the server already made a rule for the IP.