Go to file
Patrick MARIE 66f02634ab Fix version used.
It seems like using an older version breaks things, as the server will
only return AUTH_FAILED.

Making a bigger channel so the tool does not block after the preflight
query.
2023-02-09 18:19:55 +01:00
scripts Initial commit 2022-04-06 20:51:58 +02:00
.gitignore Initial commit 2022-04-06 20:51:58 +02:00
go.mod Initial commit 2022-04-06 20:51:58 +02:00
main.go Fix version used. 2023-02-09 18:19:55 +01:00
README.md Adding some README. 2022-10-17 17:35:45 +02:00

LightVPN

An alternative to AVPNC for Fedora users.

How does it work?

Aviatrix VPN requires a special authentification string in order to allow login. To retrieve it, the client is redirected to a web page, and the webpage pings local port 15395 to send the authentification string.

How ?

Compile:

$ go build

Run:

$ sudo ./light-vpn -ovpn /path/to/corp-saml-aviatrix-vpn.ovpn
Using configuration file is [/home/mycroft/.downloads/corp-saml-aviatrix-vpn.ovpn].
Please now go to https://prod.aviatrixsystems.com/flask/saml/login/avxcorpvpn.
Got your token! Email is: pmarie@aviatrix.com
Launching OpenVPN. Check log file: /tmp/openvpn-avx.log
...

Using ssh with a remote box

If lightvpn is on a remote box (ie: ec2), it is required to redirect your local 15395 to distant's. Use:

ssh -L 15395:localhost:15395 <your-ec2-box>

Then initiate light-vpn in a persistent virtual terminal (like screen or tmux), and follow the instructions.