Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
windows-vm
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pem
windows-vm
Commits
adb134cb
Commit
adb134cb
authored
Apr 28, 2025
by
César Galvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: updated readme
parent
598810d3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
23 deletions
+41
-23
README.md
README.md
+41
-23
No files found.
README.md
View file @
adb134cb
# Virtual Machine for VPN setup
Configure a virtual machine to connect to a VPN (FortiNet) through a proxy
## Requirements
-
`FortiClient`
backup file with
`.conf`
extension.
Configure a virtual machine to connect to a VPN (FortiNet) through a proxy for Linux systems
## References
...
...
@@ -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
)
-
[
Vagrant Boxes
](
https://portal.cloud.hashicorp.com/vagrant/discover
)
## Setup
### 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
```
## Requirements
### 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
...
...
@@ -53,7 +37,41 @@ Copy your `FortiClient` backup file in `./files` folder and follow these steps:
#### 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment