mirror of
https://github.com/safing/portmaster
synced 2025-04-09 21:49:11 +00:00
1.1 KiB
1.1 KiB
Setup Guide
- Build SPN Hub
cd ../../../cmds/hub/
./build
- Reset any previous state (for a fresh test)
./reset-databases.sh
- Change compose file and config template as required
Files:
docker-compose.yml
config-template.json
- Start test network
./run.sh
- Option 1: Join as Hub
For testing just one Hub with a different build or config, you can simply use ./join.sh
to join the network with the most recently build hub binary.
- Option 2: Join as Portmaster
For connecting to the SPN test network with Portmaster, execute portmaster like this:
sudo ../../../cmds/portmaster-core/portmaster-core --disable-shutdown-event --devmode --log debug --data /opt/safing/portmaster
Note: This uses the same portmaster data and config as your installed version. As the SPN Test net operates under a different ID ("test" instead of "main"), this will not pollute the SPN state of your installed Portmaster.
- Stop the test net
This is important, as just stopping the ./run.sh
script will leave you with interfaces with public IPs!
./stop.sh