Skip to content

Commit 0cd86ca

Browse files
Merge branch 'master' into speedtest
2 parents 8f865b0 + 35406f7 commit 0cd86ca

File tree

2 files changed

+42
-9
lines changed

2 files changed

+42
-9
lines changed

Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
FROM ubuntu:latest
1+
# Dockerfile for netprobe_lite
2+
# https://github.com/plaintextpackets/netprobe_lite/
3+
FROM python:3.11-slim-bookworm
24

35
COPY requirements.txt /netprobe_lite/requirements.txt
46

57
# Install python/pip
68
ENV PYTHONUNBUFFERED=1
7-
RUN apt-get update -y \
8-
&& apt-get install -y python3 \
9-
&& apt-get install -y python3-pip \
10-
&& apt-get install -y iputils-ping \
11-
&& pip install -r /netprobe_lite/requirements.txt --break-system-packages
9+
ENV PIP_DISABLE_PIP_VERSION_CHECK=on
10+
11+
RUN apt-get update && apt-get install -y iputils-ping && apt-get clean \
12+
&& pip install -r /netprobe_lite/requirements.txt --break-system-packages
1213

1314
WORKDIR /netprobe_lite
1415

15-
ENTRYPOINT [ "/bin/bash", "./entrypoint.sh" ]
16+
ENTRYPOINT [ "/bin/bash", "./entrypoint.sh" ]

README.md

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ Note: speedtest.net has a limit on how frequently you can connection and run the
8787

8888
### Change Netprobe port
8989

90-
To change the port that Netprobe is running on, edit the 'compose.yml' file, under the 'grafana' section:
90+
To change the port that Netprobe Lite is running on, edit the 'compose.yml' file, under the 'grafana' section:
9191

9292
```
9393
ports:
9494
- '3001:3000'
9595
```
9696

97-
Change the port on the left to the port you want to access Netprobe on
97+
Change the port on the left to the port you want to access Netprobe Lite on
9898

9999
### Customize DNS test
100100

@@ -215,6 +215,38 @@ This will delete all containers and volumes related to Netprobe.
215215

216216

217217

218+
## FAQ & Troubleshooting
219+
220+
Q. How do I reset my Grafana password?
221+
222+
A. Delete the docker volume for grafana. This will reset your password but will leave your data:
223+
224+
```
225+
docker volume rm netprobe_grafana_data
226+
```
227+
228+
Q. I am running Pihole and when I enter my host IP under 'DNS_NAMESERVER_4_IP=' I receive this error:
229+
230+
```
231+
The resolution lifetime expired after 5.138 seconds: Server Do53:192.168.0.91@53 answered got a response from ('172.21.0.1', 53) instead of ('192.168.0.91', 53)
232+
```
233+
A. This is a limitation of Docker. If you are running another DNS server in Docker and want to test it in Netprobe, you need to specify the Docker network gateway IP:
234+
235+
1. Stop netprobe but don't wipe it (docker compose down)
236+
2. Find the gateway IP of your netprobe-probe container:
237+
```
238+
$ docker inspect netprobe-probe | grep Gateway
239+
"Gateway": "",
240+
"IPv6Gateway": "",
241+
"Gateway": "192.168.208.1",
242+
"IPv6Gateway": "",
243+
```
244+
3. Enter that IP (e.g. 182.168.208.1) into your .env file for 'DNS_NAMESERVER_4_IP='
245+
246+
Q. I constantly see one of my DNS servers at 5s latency, is this normal?
247+
248+
A. 5s is the timeout for DNS queries in Netprobe Lite. If you see this happening for one specific IP, likely your machine is having issues using that DNS server (and so you shouldn't use it for home use).
249+
218250
## License
219251

220252
This project is released under a custom license that restricts commercial use. You are free to use, modify, and distribute the software for non-commercial purposes. Commercial use of this software is strictly prohibited without prior permission. If you have any questions or wish to use this software commercially, please contact [[email protected]].

0 commit comments

Comments
 (0)