This runs openfortivpn in docker and exposes an http proxy
Put your configurations inside config dir (copy and fill secrets)
cp config/openfortivpn.config.example config/openfortivpn.config
cp config/tinyproxy.conf.example config/tinyproxy.confEdit and add to your '.gitconfig' file (replace 'example.com' with your own)
[http "https://example.com"]
proxy = http://127.0.0.1:8888Same for .ssh/config (replace 'example.com' with your own)
Host example.com
User git
HostName example.com
ProxyCommand nc -X connect -x 127.0.0.1:8888 %h %pRun
docker compose up -dThen you can use git and ssh
docker compose exec forti tail -f -n0 /var/log/tinyproxy/tinyproxy.logYou might see Unauthorized connection from "<docker-gateway-ip>" (docker gateway)
This means your IP is not allowed to connect
You can add it to the config file config/tinyproxy.conf with Allow <docker-gateway-ip>