Commit adb134cb by César Galvis

docs: updated readme

parent 598810d3
# Virtual Machine for VPN setup # Virtual Machine for VPN setup
Configure a virtual machine to connect to a VPN (FortiNet) through a proxy Configure a virtual machine to connect to a VPN (FortiNet) through a proxy for Linux systems
## Requirements
- `FortiClient` backup file with `.conf` extension.
## References ## References
...@@ -12,25 +8,13 @@ Configure a virtual machine to connect to a VPN (FortiNet) through a proxy ...@@ -12,25 +8,13 @@ Configure a virtual machine to connect to a VPN (FortiNet) through a proxy
- [dev.to](https://dev.to/sannae/setting-up-windows-virtual-test-environments-with-vagrant-4k1b) - [dev.to](https://dev.to/sannae/setting-up-windows-virtual-test-environments-with-vagrant-4k1b)
- [Vagrant Boxes](https://portal.cloud.hashicorp.com/vagrant/discover) - [Vagrant Boxes](https://portal.cloud.hashicorp.com/vagrant/discover)
## Setup ## Requirements
### Vagrant
> Steps from [developer.hashicorp.com](https://developer.hashicorp.com/vagrant/install)
Install Vagrant in Ubuntu/Debian distros:
```sh
# Add official repository
wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
# Install vagrant
sudo apt update && sudo apt install vagrant
```
### VirtualBox - `FortiClient` backup file with `.conf` extension.
- [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
- [Vagrant](https://developer.hashicorp.com/vagrant/install)
Install VirtualBox from [here](https://www.virtualbox.org/wiki/Downloads) ## Setup
### Run the virtual machine ### Run the virtual machine
...@@ -53,7 +37,41 @@ Copy your `FortiClient` backup file in `./files` folder and follow these steps: ...@@ -53,7 +37,41 @@ Copy your `FortiClient` backup file in `./files` folder and follow these steps:
#### Add proxy in host #### Add proxy in host
Add the automatic proxy file `http://192.168.56.10:8080/proxy.pac` in your network settings or web browser. Add the automatic proxy file `http://192.168.56.10:8080/proxy.pac` in your network settings and/or web browser.
#### Add proxy in git
> Steps from [here](https://gist.github.com/evantoli/f8c23a37eb3558ab8765)
Add proxy in git for private git server.
```sh
# Add proxy by git server domain or IP
GIT_PRIVATE_SERVER=http://192.168.11.78
PROXY_SERVER=http://192.168.56.10:3128
git config --global "http.$GIT_PRIVATE_SERVER.proxy" $PROXY_SERVER
# Check global configuration
cat ~/.gitconfig
```
#### Add proxy in NMAP
```sh
nmap --proxies http://192.168.56.10:3128 $PRIVATE_DOMAIN_OR_IP
```
#### Add proxy for SSH connection
> `corkscrew` required
```sh
# Install corkscrew (in Debian-based distributions)
sudo apt -y install corkscrew
# Install sshpass password provider for plain text data
sudo apt -y install sshpass
```
Copy and modify the bash scripts [here](src/scripts/bash/).
## Useful commands ## Useful commands
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment