Local port forwarding ssh -L 8080::80 foo - Forwards port 80 on so that you can access it from localhost:8080.Connections using this proxy will be tunneled through SSH into the container and then tunneled to the foo network through the VPN client. Dynamic port forwarding (SOCKS proxy) ssh -D 1080 foo - Starts a socks5 proxy on port 1080.AUTHORIZED_KEYS: Any keys allowed to SSH as the current user to the current machine, any keys configured in ssh-agent, and any keys found in ~/.ssh/*.pub.ĭocker-vpn provides all the power of an OpenSSH server.You can customize options by setting the following environment variables. with password & external 2-factor authentication.Currently the following options are supported: To connect using a profile you can simply use openconnect NAME and the VPN connection will be established without any interaction. Once created, the profile is saved in ~/.vpn/NAME.profile and ~/.vpn/cret. OpenConnect offers an additional interactive command openconnect_new_profile which will guide you through a creation of a configuration profile. You can run chmod 600 ~/.vpn/foo.creds to ensure only the file owner can read it. You will still be prompted for your 2FA code if your VPN endpoint requires it. This gives up some security for the convenience of not having to enter your username and password. The username goes on the first line and the password on the second line. You can optionally put your credentials in ~/.vpn/foo.creds. To connect to the foo VPN put your config file at ~/.vpn/foo.ovpn and then you can run openvpn foo to automatically use the corresponding config file.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |