Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jsporna/vagrant-vpn-openconnect-socks5-proxy
Separate in VM VPN openconnect paloalto client with SOCKS5 proxy
https://github.com/jsporna/vagrant-vpn-openconnect-socks5-proxy
ansible socks5-proxy vagrant vagrantfile vpn-client
Last synced: 23 days ago
JSON representation
Separate in VM VPN openconnect paloalto client with SOCKS5 proxy
- Host: GitHub
- URL: https://github.com/jsporna/vagrant-vpn-openconnect-socks5-proxy
- Owner: jsporna
- License: mit
- Created: 2020-12-02T08:48:50.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-02T13:56:20.000Z (about 4 years ago)
- Last Synced: 2024-05-02T05:11:22.872Z (8 months ago)
- Topics: ansible, socks5-proxy, vagrant, vagrantfile, vpn-client
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vagrant-vpn-openconnect-socks5-proxy
The Vagrant project will provision VM with configured VPN openconnect connection and SOCKS5 proxy for this connection
## Quick start
1. Clone this repository `git clone https://github.com/jsporna/vagrant-vpn-openconnect-socks5-proxy.git`
2. Change into the `vagrant-vpn-openconnect-socks5-proxy` directory
3. Run `vagrant up; vagrant ssh -c 'vpn-up'`VPN Connection is up and SOCKS proxy listen on `localhost:1080`
## Usage
1. curl
`curl -x socks5://localhost:1080 ifconfig.co`
2. firefox
1. create new profile using **browser**: in new tab enter `about:profiles` or create new profile using **Profile Manager**: run `firefox --ProfileManger`
2. in new profile setup proxy: in new tab enter `about:preferences` and go to **Network Settings**
3. check **Manual proxy configuration** and fill up **SOCKS Host** with `localhost` and **Port** with `1080`
4. check **Proxy DNS when using SOCKS v5**4. google-chrome
`google-chrome --proxy-server='socks://127.0.0.1:1080 &`
## Configuration
The Vagrant projecxt can be uses _as-is_; there are a couple of parameters you have to set up installation.
### How to configure
There are several ways to set parameters:
1. Update the Vagrantfile. This is straightforward; the downside is that you will loose changes when you update this repository.
2. Use environment variables. Might be difficult to remember the parameters used when the VM was instantiated.
3. Use the `.env` / `.env.local` files (requires [vagrant-env](https://github.com/gosuri/vagrant-env) plugin). Configure your VPN connection by editing the `.env` file; or better copy `.env` to `.env.local` and edit the latter one, it won't be overridden when you update this repository and it won't mark your git tree as changed (you won't accidentally commit your local configuration!)Parameters are considered in the following order (first one wins):
1. Environment variables
2. `.env.local` (if [vagrant-env](https://github.com/gosuri/vagrant-env) plugin is installed)
3. `.env` (if [vagrant-env](https://github.com/gosuri/vagrant-env) plugin is installed)
4. Vagrantfile definitions### VPN connection parameters
- `VPN_GATEWAY`: VPN gateway
- `VPN_PROTOCOL`: VPN connection protocol
- `VPN_USER`: VPN username
- `VPN_PASSWORD`: VPN user password## Optional plugins
When installed, this Vagrant project will make use of the following third party Vagrant plugins:
- [vagrant-env](https://github.com/gosuri/vagrant-env): loads environment variables from .env files
- [vagrant-exec](https://github.com/p0deje/vagrant-exec): allow in userfriendly way run scripts in Vagrant VMTo install Vagrant plugins run:
```shell
vagrant plugin install ...
```## Feedback
Please provide feedback of any kind via Github issues on this repository.