Skip to content

A simple project to check if a vpn as a docker container actually works.

Notifications You must be signed in to change notification settings

SimonHaas/docker-vpn-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker vpn checker

The purpose of this projects is to check if one container is accessing the internet via a vpn.

The vpn-container uses 'network_mode: vpn' and the nonvpn-container does not. The non-vpn-container asks the vpn-container about its public IP and compares it to its own. If they are different one can assume that the traffic of one of them is routed through a vpn and the service returns 'safe' otherwise 'risky'.

The example inside docker-compose.yml uses Nordvpn.

curl localhost:8082/index.php/check?peer=vpn

should return 'safe'.

About

A simple project to check if a vpn as a docker container actually works.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages