Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disconnect users right ? #35

Open
emoxam opened this issue Jul 18, 2023 · 1 comment
Open

How to disconnect users right ? #35

emoxam opened this issue Jul 18, 2023 · 1 comment

Comments

@emoxam
Copy link

emoxam commented Jul 18, 2023

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
Copy link

ftoledo commented Dec 18, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants