VPN with Tinc: Difference between revisions

From Run Your Own
Jump to navigation Jump to search
(Created page with "FIXME: What's a VPN, what's Tinc == Installation Server-side == === FreeBSD === * Install tinc sudo pkg install tinc or sudo portmaster -i security/tinc Category: VPN")
 
No edit summary
Line 1: Line 1:
FIXME: What's a VPN, what's Tinc
FIXME: What's a VPN, what's Tinc


== Installation Server-side ==
=== Installation on Server(s) and Client(s) ===
=== FreeBSD ===
=== FreeBSD ===
* Install tinc
* Install tinc 1.1 pre from ports
  sudo pkg install tinc
  sudo pkg install tinc-devel              # binary
or
sudo portmaster -iB security/tinc-devel  # source
  sudo portmaster -i security/tinc
 
=== GNU/Linux (Debian based) ===
* Install tinc 1.1 pre from source
sudo apt install -y build-essential libncurses5-dev libreadline6-dev libzlcore-dev zlib1g-dev liblzo2-dev libssl-dev
* Get latest source for 1.1 pre at https://www.tinc-vpn.org/download/
* untar, etc, then:
,/configure
make
sudo make install
 
=== MacOs ===
'''FIXME'''
 
=== Windows ===
* Install tinc 1.1 pre win binaries from upstream at https://tinc-vpn.org/download/
 
== Setup Server(s) ==
=== FreeBSD ===
* Initialize new VPN
sudo tinc -n beernet init server
* Configure the host's own interface
sudo tinc -n beernet add subnet 10.10.10.1
* Configure the host's public IP, or domain if you have one for the host
sudo tinc -n beernet add address=super.domain.xxx  # if you have a domain ...
  sudo tinc -n beernet add address=1.1.1.1          # or if you just have a public IP
* edit <code>/usr/local/etc/tinc/beernet/tinc-up</code>, so that your network interface is brought up correctly, for instance with:
ifconfig $INTERFACE 10.10.10.1 netmask 255.255.255.0  # leave $INTERFACE as it is
* test if your VPN works nicely for the time being by running it directly in a shell with extra verbose options:
tincd -n beernet -D -d3
 
== Setup Client ==
=== FreeBSD ===
=== GNU/Linux ===
=== MacOs ===
=== Windows ===
 
 






[[Category: VPN]]
[[Category: VPN]]

Revision as of 01:03, 22 February 2019

FIXME: What's a VPN, what's Tinc

Installation on Server(s) and Client(s)

FreeBSD

  • Install tinc 1.1 pre from ports
sudo pkg install tinc-devel               # binary
sudo portmaster -iB security/tinc-devel   # source

GNU/Linux (Debian based)

  • Install tinc 1.1 pre from source
sudo apt install -y build-essential libncurses5-dev libreadline6-dev libzlcore-dev zlib1g-dev liblzo2-dev libssl-dev
,/configure
make
sudo make install

MacOs

FIXME

Windows

Setup Server(s)

FreeBSD

  • Initialize new VPN
sudo tinc -n beernet init server
  • Configure the host's own interface
sudo tinc -n beernet add subnet 10.10.10.1
  • Configure the host's public IP, or domain if you have one for the host
sudo tinc -n beernet add address=super.domain.xxx  # if you have a domain ...
sudo tinc -n beernet add address=1.1.1.1           # or if you just have a public IP
  • edit /usr/local/etc/tinc/beernet/tinc-up, so that your network interface is brought up correctly, for instance with:
ifconfig $INTERFACE 10.10.10.1 netmask 255.255.255.0  # leave $INTERFACE as it is
  • test if your VPN works nicely for the time being by running it directly in a shell with extra verbose options:
tincd -n beernet -D -d3

Setup Client

FreeBSD

GNU/Linux

MacOs

Windows