Deploy TantoC2 on machines without internet access.
Using Pip Wheels
#On a Connected Machine
#1
2
3
4
5
6
| # Build all wheels from source
make all
# Download all Python dependencies
pip download -d deps/ tantoc2
pip download -d deps/ tantoc2-cli
|
Transfer the dist/ and deps/ directories to the air-gapped machine.
On the Air-Gapped Machine
#1
2
3
| python3.11 -m venv /opt/tantoc2
source /opt/tantoc2/bin/activate
pip install --no-index --find-links=deps/ dist/*.whl
|
Using Docker
#On a Connected Machine
#1
2
3
4
5
| # Build the image
docker build -t tantoc2 .
# Export to a tarball
docker save tantoc2 | gzip > tantoc2-image.tar.gz
|
Transfer tantoc2-image.tar.gz to the air-gapped machine.
On the Air-Gapped Machine
#1
2
3
4
5
6
7
| docker load < tantoc2-image.tar.gz
docker run -d \
--name tantoc2 \
-p 8443:8443 \
-v tantoc2-data:/app/data \
tantoc2
|
Verification
#After installation, verify the server starts correctly:
1
2
3
| tantoc2-server
# or
docker logs tantoc2
|
Check for the default admin credentials in the output and verify port binding with ss -tlnp | grep 8443.