Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Request: Step by step tutorial for tinc
New on LowEndTalk? Please Register and read our Community Rules.

Request: Step by step tutorial for tinc

andrewandrew Member

Well, i'm confused about tinc vpn. I read some pages but couldn't run tinc correctly and that's it.

There's very good tutorials about openvpn but not so lucky about tinc...

The server side is based on Debian (OVZ or Xen virtualization) and client side based on Windows 7. In fact i want to replace openvpn with tinc and using server net to bypassing some restrictions!

Any help would be pleasure

Comments

  • andrewandrew Member

    @NodeKid said:

    I tried it but failed

  • ZEROFZEROF Member
    edited July 2014

    Find point where above tutorial brake and just contact the author of DO tutorial to help you. Without more information and why you failed to set, nobody can help you. Don't forget some VPS's can have limitations, and its normal that VPN will not work, always enable TUN/TAP on your VPS if you can if not ask your provider.

    Pentesting with open source, BackBox Linux

  • RalliasRallias Member, Provider

    ZEROF said: Find point where above tutorial brake and just contact the author of DO tutorial to help you.

    Better yet, join #tinc on freenode and ask the author of the program.

  • FrankZFrankZ Member
    edited July 2014

    @andrew - Where are you failing?
    I don't use tinc as a personal VPN per say, but to set up a private network between different servers and VPSs. Details on setup follow. Use at your own risk

    on your VPS ...
    Make sure tun/tap is enabled on your VPS and restart
    apt-get install tinc
    mkdir /etc/tinc/myvpn

    nano -w /etc/tinc/myvpn/tinc.conf -- add the following
    Name = myvps
    Device = /dev/net/tun

    nano -w /etc/tinc/myvpn/tinc-up -- add the following
    #!/bin/sh
    ip tuntap add myvpn mode tun
    ifconfig $INTERFACE 10.100.10.1 netmask 0.0.0.0

    chmod 755 /etc/tinc/myvpn/tinc-up
    mkdir /etc/tinc/myvpn/hosts
    chmod 700 /etc/tinc/myvpn/hosts

    nano -w /etc/tinc/myvpn/hosts/myvps -- add the following
    Address = IP address of your VPS
    Subnet = 0.0.0.0/0

    nano -w /etc/tinc/myvpn/hosts/mypc -- add the following
    Address = IP address of your home PC (external)
    Subnet = 10.100.10.4/30

    tincd -n myvpn -K -- generates ssl key follow default prompts

    You should now be able to enter cmd "tincd -n myvpn" and see network adapter myvpn with ip 10.100.10.1 in ifconfig display.


    On your homepc
    download tinc for windows - http://tinc-vpn.org/packages/windows/tinc-1.0.24-install.exe
    follow http://tinc-vpn.org/examples/windows-install/
    Set up a tap network adapter V9 name adapter "myvpn"
    set IP address of adapter to 10.100.10.5 netmask 255.255.255.252

    edit C:\Program Files\tinc\tinc.conf -- add the following
    Name = mypc
    Interface = myvpn
    ConnectTo = myvps

    mkdir C:\Program Files\tinc\hosts
    copy /etc/tinc/myvpn/hosts/myvps from your vps to C:\Program Files\tinc\hosts\

    edit file C:\Program Files\tinc\hosts\mypc -- add the following
    Subnet = 10.100.10.4/30

    run "tincd -n vpn -K" in DOS window from C:/Program Files/tinc directory to generate ssl key.

    Copy ssl key from C:\Program Files\tinc\hosts\mypc to /etc/tinc/myvpn/hosts/mypc on your VPS, put below other stuff that was entered above.

    Do make sure udp port 655 is open on VPS firewall, also make sure port 655 is forwarded by your router to your PC at home.

    To start tinc on your PC. open DOS window and enter command "tincd -n myvpn" .
    I set it to start automatically on boot,

    You should now be able to ping 10.100.10.1 from your PC. and you should also be able to ping 10.100.10.5 from your VPS.

    EDIT: I am trying to format it better, without success:(

    Thanked by 1GM2015
Sign In or Register to comment.