> For the complete documentation index, see [llms.txt](https://docs.linuxgsm.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.linuxgsm.com/guides/punkbuster.md).

# PunkBuster

Enable PunkBuster anti-cheat on older Call of Duty, Battlefield, Quake and Wolfenstein servers

PunkBuster is an anti-cheat made by Even Balance. It was built into many shooters from about 2001 to 2015. It runs on the server as `pbsv.so` in a `pb` folder, and on each player's PC as a client. The server checks players, can take screenshots, and kicks or bans cheaters.

{% hint style="warning" %}
Even Balance no longer supports PunkBuster for any game LinuxGSM runs. There are no new cheat detections, no updates and no PunkBuster master servers for these titles. PunkBuster will still catch old, known cheats, and you can still use community ban lists. Treat it as a basic extra layer, not full protection.
{% endhint %}

LinuxGSM installs every server with PunkBuster turned off.

## Supported Servers

| Server                             | PunkBuster server                  |
| ---------------------------------- | ---------------------------------- |
| Battlefield 1942                   | v1.056                             |
| Battlefield: Vietnam               | v1.458                             |
| Call of Duty 2                     | v1.760                             |
| Call of Duty: World at War         | v1.814                             |
| Quake 3: Arena                     | v1.641                             |
| Quake 4                            | v1.743                             |
| Soldier Of Fortune 2: Gold Edition | v1.728                             |
| Wolfenstein: Enemy Territory       | v1.809                             |
| Call of Duty                       | Not available                      |
| Call of Duty: United Offensive     | Not available                      |
| Call of Duty 4                     | Not supported, LinuxGSM uses CoD4x |

Each server ships the last PunkBuster release for that game in `serverfiles/pb`. There are no PunkBuster files for the Linux Call of Duty and United Offensive servers.

Call of Duty 4 installs [CoD4x](https://cod4x.ovh), the maintained Linux server for CoD4. It works with 1.7 clients, but it doesn't support PunkBuster. LinuxGSM doesn't offer the official CoD4 server.

Return to Castle Wolfenstein, Jedi Knight II and Jedi Knight: Jedi Academy use open-source engines (iortcw and OpenJK) that don't include PunkBuster.

## Enable PunkBuster

1. Stop the server.
2. In `lgsm/config-lgsm/<x>server/<x>server.cfg`, copy the `startparameters` line from `_default.cfg` and change `+set sv_punkbuster 0` to `+set sv_punkbuster 1`. See [Start Parameters](https://docs.linuxgsm.com/configuration/start-parameters.md).
3. Set the same value in the game config, where the game has one:
   * Quake 4: `seta sv_punkbuster "1"` in `serverfiles/q4base/q4server.cfg`.
   * Battlefield 1942 and Battlefield: Vietnam: `game.serverPunkBuster 1` in `serverfiles/mods/<mod>/settings/serversettings.con`. These two don't use the start parameter.
4. Start the server and check the console for PunkBuster loading.

{% hint style="info" %}
In the Quake 3 engine games, `sv_punkbuster` is read-only once the server is running. Set it in the start parameters, or use `pb_sv_enable` in the console.
{% endhint %}

## Restore PunkBuster Files

If the `pb` folder is missing or damaged, reinstall the server to get the files back. The legacy files are also on [PBBans Legacy PunkBuster Files](https://community.pbbans.com/files/category/7-legacy-punkbuster-files/).

Make sure the LinuxGSM user owns the `pb` folder and can write to it. PunkBuster writes its logs, screenshots and settings there.

## Configuration

PunkBuster reads its server settings from `pbsv.cfg` in its `pb` folder when it starts. Create the file if it doesn't exist.

Battlefield 1942, Battlefield: Vietnam and Enemy Territory run PunkBuster from `serverfiles/pb`. Call of Duty 2, World at War, Quake 3 and Soldier of Fortune 2 copy it to the `pb` folder in the game's home directory, for example `~/.q3a/pb`, and run it from there, so put `pbsv.cfg` there and look there for the logs.

For example, to turn on player screenshots:

```
pb_sv_ssflag 1
pb_sv_sspath "svss"
```

The full command list is in the archived PunkBuster server admin manuals on [PBBans](https://community.pbbans.com/files/category/7-legacy-punkbuster-files/).

## PBBans

[PBBans](https://www.pbbans.com) is a community ban network for PunkBuster games. It isn't run by Even Balance. Servers that stream to the PBBans Hub share bans, so a cheater banned on one server is blocked on all of them. It still accepts streams from the older games, including Call of Duty, Call of Duty 2, Call of Duty 4, Call of Duty: World at War, Battlefield 1942, Quake 4 and Enemy Territory.

To stream to PBBans:

1. Register on the [PBBans forums](https://community.pbbans.com).
2. Follow the PBBans Automated Hub Setup, which gives you the lines to add to `pbsv.cfg`.
3. Make sure the server's game port is reachable over UDP. PunkBuster streams over the same port the game uses.

## Server Resources

* [Even Balance](https://www.evenbalance.com)
* [PBBans](https://www.pbbans.com)
* [PBBans Legacy PunkBuster Files](https://community.pbbans.com/files/category/7-legacy-punkbuster-files/)
* [CoD4x](https://cod4x.ovh)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.linuxgsm.com/guides/punkbuster.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
