GNU nano 5.4 /root/wireguard-ui/docker-compose.yml
version: '3'
services:
wg:
image: ngoduykhanh/wireguard-ui:latest
container_name: wgui
ports:
- 5000:5000
logging:
driver: json-file
options:
max-size: 50m
volumes:
- ./db:/app/db
- /etc/wireguard:/etc/wireguard
restart: always
cap_add:
- NET_ADMIN
network_mode: host
environment:
- TZ=Europe/Berlin
root@wireguard-server:~# cd /root/wireguard-ui
root@wireguard-server:~/wireguard-ui# docker-compose up
wgui is up-to-date
Attaching to wgui
wgui | Wireguard UI
wgui | App Version : development
wgui | Git Commit : N/A
wgui | Git Ref : N/A
wgui | Build Time : 11-10-2021 10:21:06
wgui | Git Repo : https://github.com/ngoduykhanh/wireguard-ui
wgui | Authentication : true
wgui | Bind address : 0.0.0.0:5000
wgui | Email from :
wgui | Email from name : WireGuard UI
wgui | ⇨ http server started on [::]:5000
wgui | {"time":"2021-11-10T10:21:36.761398216Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":48707,"latency_human":"48.707µs","bytes_in":0,"bytes_out":4877}
wgui | {"time":"2021-11-10T10:22:06.87241135Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":52432,"latency_human":"52.432µs","bytes_in":0,"bytes_out":4877}
wgui | {"time":"2021-11-10T10:22:36.992701099Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":50188,"latency_human":"50.188µs","bytes_in":0,"bytes_out":4877}
wgui | {"time":"2021-11-10T10:23:07.077299124Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":60484,"latency_human":"60.484µs","bytes_in":0,"bytes_out":4877}
wgui | {"time":"2021-11-10T10:23:37.180112159Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":52862,"latency_human":"52.862µs","bytes_in":0,"bytes_out":4877}
wgui | {"time":"2021-11-10T10:24:07.276560713Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":99525,"latency_human":"99.525µs","bytes_in":0,"bytes_out":4877}
wgui | Wireguard UI
wgui | App Version : development
wgui | Git Commit : N/A
wgui | Git Ref : N/A
wgui | Build Time : 11-10-2021 10:24:25
wgui | Git Repo : https://github.com/ngoduykhanh/wireguard-ui
wgui | Authentication : true
wgui | Bind address : 0.0.0.0:5000
wgui | Email from :
wgui | Email from name : WireGuard UI
wgui | ⇨ http server started on [::]:5000
wgui | {"time":"2021-11-10T10:24:33.773687718Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/status","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":1252836,"latency_human":"1.252836ms","bytes_in":0,"bytes_out":20441}
wgui | {"time":"2021-11-10T10:24:41.371588483Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":6603353,"latency_human":"6.603353ms","bytes_in":0,"bytes_out":39576}
wgui | {"time":"2021-11-10T10:24:41.476645561Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/api/clients?_=1636539881346","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":4641102,"latency_human":"4.641102ms","bytes_in":0,"bytes_out":2486}
wgui | {"time":"2021-11-10T10:24:44.883745036Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/status","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":465688,"latency_human":"465.688µs","bytes_in":0,"bytes_out":20441}
wgui | {"time":"2021-11-10T10:24:48.431994484Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/status","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":524249,"latency_human":"524.249µs","bytes_in":0,"bytes_out":20441}
wgui | {"time":"2021-11-10T10:24:55.917423916Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":55780,"latency_human":"55.78µs","bytes_in":0,"bytes_out":4877}
wgui | {"time":"2021-11-10T10:25:01.372533458Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":4616653,"latency_human":"4.616653ms","bytes_in":0,"bytes_out":39576}
wgui | {"time":"2021-11-10T10:25:01.477695135Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/api/clients?_=1636539901349","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":4478148,"latency_human":"4.478148ms","bytes_in":0,"bytes_out":2486}
wgui | {"time":"2021-11-10T10:25:03.926855707Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/logout","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":307,"error":"","latency":361020,"latency_human":"361.02µs","bytes_in":0,"bytes_out":0}
wgui | {"time":"2021-11-10T10:25:03.937229755Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/login","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":52936,"latency_human":"52.936µs","bytes_in":0,"bytes_out":4877}
wgui | {"time":"2021-11-10T10:25:11.543188413Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"POST","uri":"/login","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":1001679,"latency_human":"1.001679ms","bytes_in":39,"bytes_out":51}
wgui | {"time":"2021-11-10T10:25:11.565509749Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":4320230,"latency_human":"4.32023ms","bytes_in":0,"bytes_out":39576}
wgui | {"time":"2021-11-10T10:25:11.650761221Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/api/clients?_=1636539911515","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":5072922,"latency_human":"5.072922ms","bytes_in":0,"bytes_out":2486}
wgui | {"time":"2021-11-10T10:25:15.501399504Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/api/client/c65pbm9hrfns73drfh20?_=1636539911516","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":4017299,"latency_human":"4.017299ms","bytes_in":0,"bytes_out":2484}
wgui | {"time":"2021-11-10T10:25:17.146884254Z","level":"INFO","prefix":"-","file":"routes.go","line":"283","message":"Updated client information successfully => {c65pbm9hrfns73drfh20 GJT9E6t4zthpGtCcEPBCqikez2evDu+/iXosRugEol8= K6kUvylaAhqZHRTZuRVqc2JAfgtICeQ845h1nLPPykc= h76kU99nrgF75Pf6myFsYiN3qq15aQMpxpot88kNuTw= Heiko heiko.huebner@freenet.de [10.252.1.1/32] [0.0.0.0/0] true true 2021-11-10 09:50:17.600248339 +0000 UTC 2021-11-10 10:25:17.146515034 +0000 UTC}"}
wgui | {"time":"2021-11-10T10:25:17.147301211Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"POST","uri":"/update-client","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":1049919,"latency_human":"1.049919ms","bytes_in":178,"bytes_out":56}
wgui | {"time":"2021-11-10T10:25:17.171009147Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":3760391,"latency_human":"3.760391ms","bytes_in":0,"bytes_out":39576}
wgui | {"time":"2021-11-10T10:25:17.254174737Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/api/clients?_=1636539917119","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":4547507,"latency_human":"4.547507ms","bytes_in":0,"bytes_out":2486}
wgui | {"time":"2021-11-10T10:25:20.607641941Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/api/apply-wg-config?_=1636539917120","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":823157,"latency_human":"823.157µs","bytes_in":0,"bytes_out":63}
wgui | {"time":"2021-11-10T10:25:22.534135825Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/wg-server","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":303993,"latency_human":"303.993µs","bytes_in":0,"bytes_out":29727}
wgui | {"time":"2021-11-10T10:25:25.99436097Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":47348,"latency_human":"47.348µs","bytes_in":0,"bytes_out":4877}
wgui | {"time":"2021-11-10T10:25:27.455477987Z","level":"INFO","prefix":"-","file":"routes.go","line":"410","message":"Updated wireguard server interfaces settings: {[10.252.1.0/24] 51820 2021-11-10 10:25:27.455278751 +0000 UTC iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE}"}
wgui | {"time":"2021-11-10T10:25:27.455502193Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"POST","uri":"/wg-server/interfaces","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":313052,"latency_human":"313.052µs","bytes_in":333,"bytes_out":69}
wgui | {"time":"2021-11-10T10:25:31.275174473Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/global-settings","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":186383,"latency_human":"186.383µs","bytes_in":0,"bytes_out":28747}
wgui | {"time":"2021-11-10T10:25:36.949468533Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/api/apply-wg-config?_=1636539931225","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":756814,"latency_human":"756.814µs","bytes_in":0,"bytes_out":63}
wgui | {"time":"2021-11-10T10:25:38.516461566Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/status","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":459481,"latency_human":"459.481µs","bytes_in":0,"bytes_out":20441}
wgui | {"time":"2021-11-10T10:25:54.061349484Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/status","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":438869,"latency_human":"438.869µs","bytes_in":0,"bytes_out":20479}
wgui | {"time":"2021-11-10T10:25:56.089193741Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":47443,"latency_human":"47.443µs","bytes_in":0,"bytes_out":4877}
wgui | {"time":"2021-11-10T10:26:00.735959779Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/wg-server","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":248849,"latency_human":"248.849µs","bytes_in":0,"bytes_out":29727}
wgui | {"time":"2021-11-10T10:26:26.207865725Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":47172,"latency_human":"47.172µs","bytes_in":0,"bytes_out":4877}
wgui | {"time":"2021-11-10T10:26:56.299700036Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":46552,"latency_human":"46.552µs","bytes_in":0,"bytes_out":4877}
wgui | {"time":"2021-11-10T10:27:26.400015928Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":46847,"latency_human":"46.847µs","bytes_in":0,"bytes_out":4877}
wgui | {"time":"2021-11-10T10:27:56.50027555Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":48831,"latency_human":"48.831µs","bytes_in":0,"bytes_out":4877}
docker stop 100
wgui | {"time":"2021-11-10T10:28:26.620845506Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":48440,"latency_human":"48.44µs","bytes_in":0,"bytes_out":4877}
docker system prune -a
docker-compose up -d
wgui | {"time":"2021-11-10T10:28:56.729088371Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":46536,"latency_human":"46.536µs","bytes_in":0,"bytes_out":4877}
wgui | {"time":"2021-11-10T10:29:26.864919676Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":41497,"latency_human":"41.497µs","bytes_in":0,"bytes_out":4877}
wgui | {"time":"2021-11-10T10:29:57.006133106Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":44548,"latency_human":"44.548µs","bytes_in":0,"bytes_out":4877}
wgui | {"time":"2021-11-10T10:30:27.108372782Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":48263,"latency_human":"48.263µs","bytes_in":0,"bytes_out":4877}
wgui | {"time":"2021-11-10T10:30:57.21280554Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":48096,"latency_human":"48.096µs","bytes_in":0,"bytes_out":4877}