Tinc VPN 1.1pre15 on Windows
with windows client (repeat client step to add more clients)

Firewall open firewall port 655 on your router

Install Tinc VPN

Download & Install Tinc 1.1pre14

Configure master node (master)

Ctrl + R then C:\Program Files\tinc & Enter
Click on File > Open Command Prompt as Administrator

  • tinc -n vpn init master
  • tinc -n vpn add subnet 20.0.0.1
  • tinc -n vpn add address=public.domain-or-ip

setup ethernet interface

  • cd tap-win64
  • addtap.bat
  • cd ..
  • netsh interface ipv4 show interfaces locate the one thats disconnected probably Ethernet 2
  • netsh interface set interface name = "Ethernet 2" newname = "tinc"
  • netsh interface ip set address "tinc" static 20.0.0.1 255.255.255.0
  • netsh interface ipv4 show config now you should have a tinc interface with ip/subnet

Configure client node (client1)

if you want to add more clients, change name and ip

Download & Install Tinc 1.1pre15

Ctrl + R then C:\Program Files\tinc & Enter
Click on File > Open Command Prompt as Administrator

  • tinc -n vpn init client1
  • tinc -n vpn add connectto master
  • tinc -n vpn add subnet 20.0.0.2

setup ethernet interface

  • cd tap-win64
  • addtap.bat
  • cd ..
  • netsh interface ipv4 show interfaces locate the one thats disconnected probably Ethernet 2
  • netsh interface set interface name = "Ethernet 2" newname = "tinc"
  • netsh interface ip set address "tinc" static 20.0.0.2 255.255.255.0

copy the files/keys

  • on client1 machine, copy the vpn/hosts/client1 file to yourvpn/hosts folder on your master machine
  • on master machine, copy the vpn/hosts/master file to your vpn/hosts folder on your client1 machine

test it with

Router

  • tincd -n vpn -D -d3
  • ping 20.0.0.2 (after both is up!)
  • issues, disable your firewall, open port 655..

Client1

  • tincd -n vpn -D -d3
  • ping 20.0.0.1 (after both is up!)
  • issues, disable your firewall, open port 655..

Run as daemon (on both router and client)

Router:
tincd -n vpn

Client
tincd -n vpn

Tips

  • ping 20.0.0.1 from client1
  • ping 20.0.0.2 from master
  • try opening windows share \\20.0.0.1 from client1
  • try opening windows share \\20.0.0.2 from master
  • try remote desktop, ftp, etc to check if it works

Warning: i asume you got a hardware firewall (router) and another antivirus installed

Press Win + R keyboard accelerator to open Run dialog box.
Type GPedit.msc and hit Enter or OK to open Local Group Policy Editor.

Disable Windows Defender

  • Computer Configuration
  • Administrative Templates
  • Windows Components
  • Windows Defender
  • Click “ Turn off Windows Defender" set it to Enabled

Disable Windows Firewall

  • Computer Configuration
  • Policies
  • Windows Settings
  • Security Settings
  • Windows Firewall with Advanced Security
  • Windows Firewall with Advanced Security Properties

Disable Web Search

  • Computer Configuration section
  • Administrative Templates
  • Windows Components
  • Search
  • Do not allow web search

Disable Corona

  • Navigate to Local Computer Policy
  • Computer Configuration
  • Administrative Templates
  • Windows Components
  • Search.
  • In the right pane, double click on policy named Allow Cortana.
  • Select the Disabled radio button.

Compiling lftp under cygwin is actually pretty simple when you use apt-cyg and know what packages you need

Install cygwin & cyg-get via chocolately

  • choco install cygwin cyg-get

Install Packages

  • open cygwin
  • cyg-get bison autoconf gcc-core gcc+g++ make pkg-config libreadline7 libreadline-devel libexpat1 openssl openssl-dev

Compile LFTP

  • wget http://lftp.yar.ru/ftp/lftp-4.6.4.tar.gz
  • tar zxvf lftp-4.6.4.tar.gz && lftp-4.6.4
  • ./configure
  • make -j4
  • make install

run lftp

  • lftp -v

** Update: it seems Windows 10 'Build 10586' November Refesh fixes buggy drivers, so its recommended to update

Asmedia Windows 10 Drivers for x64/x86

Asmedia ASM1040 ASM1041 ASM1042 ASM1142
USB 3.0 & USB 3.1
http://awesome.nwgat.ninja/win10/asmedia/

%ASMEDIA_Product_1%=ASMEDIA_Product1_Install,PCI\VEN_1B21&DEV_1040&REV_00 %ASMEDIA_Product_2%=ASMEDIA_Product2_Install,PCI\VEN_1B21&DEV_1040&REV_01 %ASMEDIA_Product_3%=ASMEDIA_Product3_Install,PCI\VEN_1B21&DEV_1040&REV_02 %ASMEDIA_Product_4%=ASMEDIA_Product4_Install,PCI\VEN_1B21&DEV_1041&REV_00 %ASMEDIA_Product_5%=ASMEDIA_Product5_Install,PCI\VEN_1B21&DEV_1041&REV_01 %ASMEDIA_Product_6%=ASMEDIA_Product6_Install,PCI\VEN_1B21&DEV_1041&REV_02 %ASMEDIA_Product_7%=ASMEDIA_Product7_Install,PCI\VEN_1B21&DEV_1042&REV_00 %ASMEDIA_Product_8%=ASMEDIA_Product8_Install,PCI\VEN_1B21&DEV_1042&REV_01 %ASMEDIA_Product_9%=ASMEDIA_Product9_Install,PCI\VEN_1B21&DEV_1042&REV_02 %ASMEDIA_Product_10%=ASMEDIA_Product10_Install,PCI\VEN_1B21&DEV_1142&REV_00 %ASMEDIA_Product_11%=ASMEDIA_Product11_Install,PCI\VEN_1B21&DEV_1240&REV_00 %ASMEDIA_Product_12%=ASMEDIA_Product12_Install,PCI\VEN_1B21&DEV_1241&REV_00 %ASMEDIA_Product_13%=ASMEDIA_Product13_Install,PCI\VEN_1B21&DEV_1242&REV_00 %ASMEDIA_Product_14%=ASMEDIA_Product14_Install,PCI\VEN_1B21&DEV_1042&SUBSYS_84881043&REV_00 %ASMEDIA_Product_15%=ASMEDIA_Product15_Install,PCI\VEN_1B21&DEV_1042&SUBSYS_84881043&REV_01 %ASMEDIA_Product_16%=ASMEDIA_Product16_Install,PCI\VEN_1B21&DEV_1042&SUBSYS_84881043&REV_02 %ASMEDIA_Product_17%=ASMEDIA_Product17_Install,PCI\VEN_1B21&DEV_1142&SUB

up to date lftp builds for windows

Research

I have been reseaching on howto get lftp with sftp/ssh working property on windows, it is a bit funky running under windows using standalone cygwin binaries, but it does work

Some things i noticed is

  • You have to add ./ssh.exe or ssh.exe to commandline to get it to work correctly

(on chocolately ssh works)

  • You have to use /cygdrive/driveletter/folder as source or dest path depending on which way you want to mirror
  • using quotes works like "C:\path\folder\" (thanks todd)

if you want to cancel a download press Ctrl + C

and am fully aware ssh.exe will spawn a few windows for each process, this started to happen in the latest lftp builds on windows 10 for some reason (fixed in 4.6.4?)

Download LFTP Builds (now in 64-bit flavour)

  • Full credits goes to lftp developers for their awesome software, donate to them
  • new builds are also heartbleed fixed
  • having issues?, first test it on a linux system to confirm its a real lftp bug or a cygwin issue, post in the blog forum, to cygwin issue tracker or lftp issue tracker

You can use the choco package manager for windows

Simple setup guide to choco with ssh batch examples (chocolately)

  • choco install lftp --version 4.7.5 (* auto 32/64)
  • choco install lftp --version 4.6.6 (* auto 32/64)
  • choco install lftp --version 4.6.5 (* auto 32/64)
  • choco install lftp --version 4.6.4 (* auto 32/64)
  • choco install lftp --version 4.6.1 (32-bit only)
  • *Can now run everywhere in cmd/powershell

or download standalone https://lftp.nwgat.ninja

feel free to mirror it with lftp -e "set ssl:verify-certificate no; mirror -c" https://lftp.nwgat.ninja/

Version 4.7.7 - 2017-03-07

  • mirror: fixed coredump when source directory does not exist.
  • mirror: don't create target directory if can't enter to the source directory.
  • ftp: fixed a rare hang when a NOOP was sent between "transfer ok" reply and EOF on data *socket.
  • fixed xfer:log setting (compatibility alias).
  • ftp: don't use EPSV with a proxy.

older changelogs can be found at offical lftp site

Receive $10 in credit at DigitalOcean for your VPS Hosting
€1.24 VPS from Time4VPs
Proudly published with Ghost | Theme based on Draugur | Header Image by GUWEIZ@DeviantArt
Creative Commons Licence