monitors your net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
david 9348d80d9d add more stuff 3 years ago
public/styles first 3 years ago
views first 3 years ago
.dockerignore add more stuff 3 years ago
.gitignore first 3 years ago
Dockerfile add more stuff 3 years ago
README.md add more stuff 3 years ago
database.js first 3 years ago
docker-compose.yml add more stuff 3 years ago
index.js add more stuff 3 years ago
netmon.py first 3 years ago
package-lock.json add more stuff 3 years ago
package.json add more stuff 3 years ago
postcss.config.js first 3 years ago
supervisord.conf add more stuff 3 years ago
tailwind.config.js first 3 years ago

README.md

netmon

super basic way to run

touch db.sqlite3
docker run --rm -d \
  --name netmon \
  -p 4000:3000 \
  -e dstHost=1.1.1.1 \
  -e dstPort=53 \
  --mount type=bind,source=$(pwd)/db.sqlite3,target=/app/db.sqlite3 \
  daveplsno/netmon:latest

bunch of misc cmds used along the way

docker run --rm -it --name pls -w /app -p 3000:3000 -p 5000:5000 -e dstHost=localhost -e dstPort=8000 -e TZ=Australia/Sydney -v /home/blender/projects/netmon:/app nikolaik/python-nodejs:python3.9-nodejs16-alpine sh
docker exec -it pls sh
apk add sqlite
npm install -g nodemon
npm install express sqlite
python -m http.server 8000
export dstHost=localhost dstPort=8000
python netmon.py monitor

sqlite3 db.sqlite3
.headers on
.mode column
`SELECT * FROM netmonResults;`

npm install -D tailwindcss@latest postcss@latest autoprefixer@latest postcss-cli

npm install tailwindcss postcss autoprefixer postcss-cli