Skip to content
This repository has been archived by the owner on Jun 5, 2018. It is now read-only.

jamgocoop/docker-juniper-vpn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

‼️👎 Moved to Gitlab... (jamgo/docker-juniper-vpn)

docker-juniper-vpn

Dockerized juniper vpn connection using:

http://www.infradead.org/openconnect/

https://github.com/jamgocoop/juniper-vpn-py

This is only a simple implementation to skip browser connect limitations in linux.

How to use this image

docker run --name junipervpn -e JUNIPER_HOST=<host> -e JUNIPER_USER=<user> -e JUNIPER_PASSWORD=<password> --privileged=true -d -ti jamgocoop/juniper-vpn

Once started you can route subnets from host via docker container:

#! /bin/bash
JUNIPER_DOCKER_IP="$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' junipervpn)"
if [ -z "$JUNIPER_DOCKER_IP" ]; then
	echo >&2 'error: missing JUNIPER_DOCKER_IP, is junipervpn docker running?'
	exit 1;
fi
sudo route add -net a.b.c.0 netmask 255.255.255.0 gw $JUNIPER_DOCKER_IP
sudo route add -net x.y.z.0 netmask 255.255.255.0 gw $JUNIPER_DOCKER_IP
...

About

Dockerized juniper vpn connection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages