Public Stats backend and services

Discussion in 'News' started by MrNiceGuy, Apr 15, 2021.

  1. MrNiceGuy

    MrNiceGuy Founder Staff Member

    A public stats backend and login services have been put online following the new release of BF2Statistics V3.1.0

    A BIG thanks to @Wilson212 for all his hard work through the years.

    This system is 15 years old, so why not celebrate :D

    - The ASP backend is currently running on:
    https://bf2web.bf2statistics.com/ASP

    - The Gamespy services on:
    https://bf2web.bf2statistics.com, so you can use this to create an account and play online.

    - BF2 Linux Server running on:

    [​IMG]

    Coop:
    [​IMG]

    It's currently running in Ranked mode, so players needed to start is 8 (so bring your friends) :)

    Screenshot at 15-09-59.png

    To play on this server you should use the Gamespy Redirector to redirect the GameSpy requests to these services.

    This is the settings for Provider:

    Screenshot at 15-01-21.png

    This is the settings for the server:

    Screenshot at 15-02-29.png

    Any feedback or bug reports are welcome.

    Enjoy! :)
     
    Last edited: Sep 30, 2021
    exemaco, unknown and Wilson212 like this.
  2. Sunnyghost

    Sunnyghost Member

    Hi MrNiceGuy. I was able to login but only using the "Auto Join Server" option. This BF2 server is not showing-up in the BF2 server browser list.
     
    Last edited: Apr 15, 2021
  3. MrNiceGuy

    MrNiceGuy Founder Staff Member

    Hi @Sunnyghost, are all ports open in your firewall?

    I cannot recall what ports are for the serverlist, but as long as the hosts file entries are there, it should work.

    Have a look around, see if you figure something out.

    I'll be back later today. :)
     
  4. Sunnyghost

    Sunnyghost Member

    Yes. I am using BF2 hub for our main server ( First-Legion ) and we are running our own ranking system ( BF2Statistics V3.1.0 ). I created an extra service provider in GamespyRedirector for BF2statistics.com.
    When I choose BF2 hub or First-Legion as service provider, BF2 starts and after selecting "Multiplayer", a list of available servers are shown. When I select BF2statistics.com as my service provider, BF2 "hangs" for a several seconds after selecting "Multiplayer" and no servers are listed.
     
    Last edited: Apr 15, 2021
    MrNiceGuy likes this.
  5. Wilson212

    Wilson212 Administrator Staff Member

    This is awesome! I will check this out more when I get home from work today :D
     
    MrNiceGuy likes this.
  6. Sunnyghost

    Sunnyghost Member

    @MrNiceGuy:

    If you need 6 or 8 idle bots to get your server started, just give me 6 or 8 names I can put those bots in if you like. I can let them connect to your server so you can do more testing if needed.
     
    Last edited: Apr 15, 2021
    MrNiceGuy likes this.
  7. MrNiceGuy

    MrNiceGuy Founder Staff Member

    That's weird, not sure what would be causing this. Are you able to test if any of the required ports are blocked?
     
  8. MrNiceGuy

    MrNiceGuy Founder Staff Member

    Mind sharing how you populate the server with bots? :)
     
  9. Sunnyghost

    Sunnyghost Member

    I have ( paid for it ) a program thats putting BOTS on your server . You need name password ipaddress and portnumber of the BF2 server to connect to. They never log-in but stay in the connecting state.
     
  10. Sunnyghost

    Sunnyghost Member

    All ports are open. I am using GamespyRedirector for all servers I connect to. BF2HUB servers and my own ranked servers.
    I think all needed ports are open already.
     
    MrNiceGuy likes this.
  11. Wilson212

    Wilson212 Administrator Staff Member

    There is a known issue with the Gamespy master server I made that prevents servers from populating for some clients in the server browser. I will work on a fix. In the mean time, the following ports need to be open on the computer that is hosting the Gamespy emulator:

    27900 (udp), 28910, 29900, 29901 and 29910 (udp)
     
    Sunnyghost and MrNiceGuy like this.
  12. MrNiceGuy

    MrNiceGuy Founder Staff Member

    Thanks!

    I have 28910 listed as udp, is that port tcp? o_O
     
  13. Sunnyghost

    Sunnyghost Member

    These ports are open on my BF2Statistics server. ( The gamespy emulator in instaled on this server too ).
    I haven't had any problems with server browser listing, neither the other players.
    Could be the solution for MrNiceGuy too :)
    All these ports are TCP/UDP at my firewall/router.
     
    MrNiceGuy likes this.
  14. Sunnyghost

    Sunnyghost Member

    @MrNiceGuy
    If you have changed settings, just let me know and i will try again to login and see if your server will appear in the serverbrowser list.
     
    MrNiceGuy likes this.
  15. MrNiceGuy

    MrNiceGuy Founder Staff Member

    I'm currently working on a pre script for CSF firewall, this is what i got so far:


    Code:
    # Battlefield 2
    # UDP
    
    iptables -A INPUT -i eth0 -p udp -m multiport --dports 27900,27901 -j ACCEPT
    iptables -A OUTPUT -o eth0 -p udp -m multiport --sports 27900,27901 -j ACCEPT
    
    iptables -A INPUT -i eth0 -p udp --dport 16567:16570 -j ACCEPT
    iptables -A INPUT -i eth0 -p udp --dport 29900:29910 -j ACCEPT
    iptables -A INPUT -i eth0 -p udp --dport 55123:55135 -j ACCEPT
    iptables -A INPUT -i eth0 -p udp --dport 1500:4999 -j ACCEPT
    iptables -A INPUT -i eth0 -p udp --dport 1024:1124 -j ACCEPT
    
    iptables -A OUTPUT -o eth0 -p udp --dport 16567:16570 -j ACCEPT
    iptables -A OUTPUT -o eth0 -p udp --dport 29900:29904 -j ACCEPT
    iptables -A OUTPUT -o eth0 -p udp --dport 55123:55135 -j ACCEPT
    iptables -A OUTPUT -o eth0 -p udp --dport 1500:4999 -j ACCEPT
    iptables -A OUTPUT -o eth0 -p udp --dport 1024:1124 -j ACCEPT
    
    # TCP
    iptables -A INPUT -i eth0 -p tcp -m multiport --dports 27900,28910,29910,29960,4711,4712,18000,18300 -j ACCEPT
    iptables -A OUTPUT -o eth0 -p tcp -m multiport --sports 27900,28910,29910,29960,4711,4712,18000,18300 -j ACCEPT
    
    iptables -A INPUT -i eth0 -p tcp --dport 1024:1124 -j ACCEPT
    iptables -A OUTPUT -o eth0 -p tcp --dport 1024:1124 -j ACCEPT
    
    
    Did i miss anything?

    *Edited
    Should be working now. :)
     
    Last edited: Apr 18, 2021
    SharK and Sunnyghost like this.
  16. Wilson212

    Wilson212 Administrator Staff Member

    Correct,it is TCP. This port is the server listing port, and probably why the server isn't showing up.
     
    Sunnyghost and MrNiceGuy like this.
  17. MrNiceGuy

    MrNiceGuy Founder Staff Member

    Right, i had a peek in the config.ini, indeed tcp.

    Got an error in the firewall too, so there's something fishy going on... I'll post back when it's fixed :D
     
    Sunnyghost likes this.
  18. Sunnyghost

    Sunnyghost Member

    I am using hardware firewall in stead of ip-tables. I have port 27900 28910 29900 2990 and 29910 redirected to my BF2Statistics server ( Gamespy emulator is running on the same server).
    besides these ports , I have redirected the gamespy port and the join port to my BF2 servers. Also RCON and BF2CC deamon ports are redirected to my BF2 servers.
     
  19. MrNiceGuy

    MrNiceGuy Founder Staff Member

    Okay, got all services on the same host.

    Try again now, i have changed port 28910 to tcp.
     
  20. Wilson212

    Wilson212 Administrator Staff Member

    I really need to write an installation guide :eek: . I also plan to rewrite the GameSpy emulator in C++ so it works on Linux natively. All ports are TCP unless specified
     
    MrNiceGuy likes this.

Share This Page