ruimarinho / docker-openvpn-monitor

The trusted multi-platform web-based OpenVPN Monitor docker image.
MIT License
106 stars 27 forks source link

How to disconnect users right ? #35

Open emoxam opened 1 year ago

emoxam commented 1 year ago

I am using this for running

docker run --name openvpn-monitor \
  -e OPENVPNMONITOR_DEFAULT_DATETIMEFORMAT="%%d/%%m/%%Y" \
  -e OPENVPNMONITOR_DEFAULT_MAPS=True \
  -e OPENVPNMONITOR_DEFAULT_MAPSHEIGHT=500 \
  -e OPENVPNMONITOR_DEFAULT_SITE=Test\
  -e OPENVPNMONITOR_SITES_0_HOST=172.16.10.177 \
  -e OPENVPNMONITOR_SITES_0_NAME=UDP \
  -e OPENVPNMONITOR_SITES_0_PORT=5555 \
  -p 80:80 ruimarinho/openvpn-monitor

As you can see i don't alow disconnect via the openvpn-monitor webpage. I can use telnet to disconnect telnet 172.16.10.177 5555 status kill someip:someport SUCCESS: 1 client(s) at address someip:someport killed

All seems fine until i get back to web page where i see that instead of a connections block i see

Could not connect to 172.16.10.177:5555 (timed out)

What's going on ? Did i do something wrong ? Thanks

ftoledo commented 10 months ago

you must set network as host mode on docker to connect from container to the host that run openopvn