https://github.com/neilalexander/vyatta-quicktun
A quicktun package for Ubiquiti EdgeOS
https://github.com/neilalexander/vyatta-quicktun
edgerouter nacl0 nacltai quicktun salty tunnel ubiquiti-edgeos vpn vyatta
Last synced: about 2 months ago
JSON representation
A quicktun package for Ubiquiti EdgeOS
- Host: GitHub
- URL: https://github.com/neilalexander/vyatta-quicktun
- Owner: neilalexander
- Created: 2017-03-13T00:03:07.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-28T18:17:14.000Z (over 7 years ago)
- Last Synced: 2025-03-25T04:52:22.823Z (2 months ago)
- Topics: edgerouter, nacl0, nacltai, quicktun, salty, tunnel, ubiquiti-edgeos, vpn, vyatta
- Language: Shell
- Homepage:
- Size: 98.6 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# QuickTun for Ubiquiti EdgeOS
### Introduction
This is a QuickTun distributable package for Ubiquiti EdgeOS, providing support for QuickTun TUN interfaces through the EdgeOS CLI.
### Compatibility
| | Architecture | Compatible | Notes |
|-----------------------|:------------:|:----------:|:----------------------------------------------:|
| EdgeRouter X (ERX) | mipsel | Yes | Builds with crossbuild-essential, see below |### Building for EdgeRouter X
On 64-bit Debian Jessie, start by installing the toolchain:
```
echo "deb http://emdebian.org/tools/debian/ jessie main" >> /etc/apt/sources.listwget http://emdebian.org/tools/debian/emdebian-toolchain-archive.key
apt-key add emdebian-toolchain-archive.keydpkg --add-architecture mipsel
apt-get update
apt-get install crossbuild-essential-mipsel
```
Compile the package then by cloning the repository and running 'make':
```
PREFIX='mipsel-linux-gnu-' PKGARCH='mipsel' make -e
```
The package `vyatta-quicktun.deb` will be created in the parent directory. Copy it to the EdgeRouter and install it:
```
sudo dpkg -i vyatta-quicktun.deb
```### Creating an interface
Create the interface by specifying protocol (either `raw`, `nacl0`, `nacltai` or `salty`), remote and local endpoints and your peer's public key:
```
configure
set interfaces quicktun tun0 description "QuickTun Tunnel"
set interfaces quicktun tun0 protocol salty
set interfaces quicktun tun0 local address 1.1.1.1
set interfaces quicktun tun0 local port 1111
set interfaces quicktun tun0 remote address 2.2.2.2
set interfaces quicktun tun0 remote port 2222
set interfaces quicktun tun0 remote public-key XXXXXXXXXX
commit
```
Your own keypair will automatically be generated if not specified. You can retrieve your keypair:
```
configure
show interfaces quicktun tun0 local private-key
show interfaces quicktun tun0 local public-key
```
Your private key is secret. Do not share it. Send your public key to your peer.### Set tunnel interface addresses
Add IPv4 or IPv6 addresses to the virtual tunnel interface:
```
configure
set interfaces quicktun tun0 tunnel address 3.3.3.3/24
set interfaces quicktun tun0 tunnel address fd33:3333:3333:3333::3/64
commit
```### Set firewall rules
Set any combination of firewall chains to be active on the virtual tunnel interface:
```
configure
set interfaces quicktun tun0 firewall in name CHAIN-IPv4-IN
set interfaces quicktun tun0 firewall local name CHAIN-IPv4-LOCAL
set interfaces quicktun tun0 firewall out name CHAIN-IPv4-OUT
set interfaces quicktun tun0 firewall in ipv6-name CHAIN-IPv6-IN
set interfaces quicktun tun0 firewall local ipv6-name CHAIN-IPv6-LOCAL
set interfaces quicktun tun0 firewall out ipv6-name CHAIN-IPv6-OUT
commit
```### Restart quicktun
In operational view, you can restart the quicktun process associated with an interface:
```
restart quicktun tun0
```