Skip to content
This repository has been archived by the owner on Jul 2, 2022. It is now read-only.

dadevel/docker-pulse-secure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-pulse-secure

Make a Pulse Secure VPN available as SSH jumphost and SOCKS5 proxy.

Note: This is merely a last resort if openconncet and openconnect-sso don't work for you.

Usage

Create a Pulse Secure connections file.

./connections.txt:

{"connName": "Example Inc.", "baseUrl": "https://vpn.example.com", "preferredCert": ""}
{"connName": "My Organization", "baseUrl": "https://gateway.example.org", "preferredCert": ""}

Start both containers.

docker run --name pulse-client --detach --device /dev/net/tun --cap-add net_admin --cap-add sys_admin --ip 172.31.255.2 --volume "$PWD"/connections.txt:/data/.pulse_secure/pulse/.pulse_Connections.txt --volume /tmp/.X11-unix:/tmp/.X11-unix --env DISPLAY --env "USER_ID=$(id -u)" --env "GROUP_ID=$(id -g)" ghcr.io/dadevel/pulse-secure-client:latest
docker run --name pulse-proxy --detach --network container:pulse-client ghcr.io/dadevel/openssh-proxy:latest

Adapt your SSH configuration.

~/.ssh/config:

Host pulse-proxy
  Hostname 172.31.255.2
  User proxy
  DynamicForward 6789
  ForwardAgent yes
  AddKeysToAgent yes

Host gitlab.example.com
  User git
  ProxyJump pulse-proxy

Git LFS can make use of the proxy established by SSH.

git config http.proxy socks5://127.0.0.1:6789
git config https.proxy socks5://127.0.0.1:6789

I recommend Firefox with FoxyProxy to view websites trough the proxy.

If your experiencing connection problems check the logs.

docker logs -f pulse-client
docker logs -f pulse-proxy

Build

Pulse Secure mails you a download link to their Debian/Ubuntu package after you filled out this form with some random data. Once downloaded move the *.deb file to ./pulse-secure-client/pulse.deb.

docker buildx build --tag ghcr.io/dadevel/pulse-secure-client:latest --tag ghcr.io/dadevel/pulse-secure-client:9.1r4 --label org.opencontainers.image.title=pulse-secure-client --label org.opencontainers.image.author=dadevel --label org.opencontainers.image.source=https://github.com/dadevel/docker-pulse-secure --label org.opencontainers.image.created=$(date +%Y-%m-%dT%H:%M:%SZ) --label org.opencontainers.image.version=9.1r4 --push ./pulse-secure-client/
docker buildx build --tag ghcr.io/dadevel/openssh-proxy:latest --label org.opencontainers.image.title=openssh-proxy --label org.opencontainers.image.author=dadevel --label org.opencontainers.image.source=https://github.com/dadevel/docker-pulse-secure --label org.opencontainers.image.created=$(date +%Y-%m-%dT%H:%M:%SZ) --push ./openssh-proxy/

About

Containerized Pulse Connect Secure VPN Client

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published