mirror of
https://github.com/safing/portmaster
synced 2025-04-25 13:29:10 +00:00
.. | ||
clientsim.sh | ||
config-template.json | ||
docker-compose.yml | ||
entrypoint.sh | ||
inject-intel.sh | ||
intel-client.yaml | ||
intel-testnet.json | ||
join.sh | ||
README.md | ||
reset-databases.sh | ||
run.sh | ||
stop.sh |
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 --spn-map test --bootstrap-file ./testdata/shared/bootstrap.dsd
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