Commit c73aa4eb by César Galvis

docs: updated readme

parent f9a319d7
......@@ -4,7 +4,7 @@ Configure a virtual machine to connect to a VPN (FortiNet) through a proxy
## Requirements
- `FortiClient` backup file for your user in Windows.
- `FortiClient` backup file with `.conf` extension.
## References
......@@ -21,8 +21,10 @@ Configure a virtual machine to connect to a VPN (FortiNet) through a proxy
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
```
......@@ -43,31 +45,31 @@ vagrant up
Copy your `FortiClient` backup file in `./files` folder and follow these steps:
- Open `FortiClient VPN` in the virtual machine. Accept the initial message
- Click on the lock button at the top right
- Click the gear button at the top right
- In `System`, click the `Restore` button and select your backup file in `C:\vagrant\files` path
- Add the backup file password and clic the `Ok` button
- Open `FortiClient VPN` in the virtual machine. Accept the initial message.
- Click on the `lock` button at the top right.
- Click the `gear` button at the top right.
- In `System`, click the `Restore` button and select your backup file in `C:\vagrant\files` path.
- Add the backup file, the password and clic the `Ok` button.
#### Enable proxy
In Windows, open the `squid` program from the Windows menu. Right clicking on `Squid Server` tray icon and select the option `Open Squid Configuration`.
Replace the file content with [this file](src/config/squid-proxy.conf)
Replace the file content with [this file](src/config/squid-proxy.conf).
> **NOTE:** Change your local network value in the file
> **NOTE:** Change your local network value in `squid-proxy.conf` file
Then, restart the `squid` service. Now, you can add the proxy url in your host!
Then, restart the `squid` service.
##### Add proxy in host
#### Add proxy in host
Test your proxy with `curl`:
```sh
# Add parameters
PROXY_ADDRESS=windows-vpn
PROXY_PORT=3128
# Test the proxy
curl -x http://$PROXY_ADDRESS:$PROXY_PORT -I http://www.google.com
curl -x http://windows-vpn:3128 -I http://www.google.com
```
Add the proxy `windows-vpn:3128` in your network settings or web browser.
## Useful commands
```sh
......
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