config help & pid file not existing issue

David Penn px920906 at gmail.com
Mon May 6 10:43:28 CEST 2019


Tinc team:
I'm creating a vpn for my work laptop and vps and got trapped, here are my
config files:
on laptop:
*tinc.conf
Name = envy13
Device = /dev/net/tun
ConnectTo = main

*hosts/main
Address = <my vps ext ip address>
Port = 655
Subnet = 10.0.0.1/32

*hosts/envy13
Port = 655
Subnet = 10.0.0.2/32

*tinc-up
#!/bin/sh
ip link set myvpn up
ip addr add 10.0.0.2/32 dev myvpn
ip route add 10.0.0.0/24 via 10.0.0.2

*tinc-down
#!/bin/sh
ip route del 10.0.0.0/24 via 10.0.0.2
ip addr del 10.0.0.2/32 dev myvpn
ip link set myvpn down

on vps:
*tinc.conf
Name = main
Device = /dev/net/tun

*hosts/main, *hosts/envy13 same as on laptop

*tinc-up
#!/bin/sh
ip link set myvpn up
ip addr add 10.0.0.1/32 dev myvpn
ip route add 10.0.0.0/24 via 10.0.0.1

*tinc-down
#!/bin/sh
ip route del 10.0.0.0/24 via 10.0.0.1
ip addr del 10.0.0.1/32 dev myvpn
ip link set myvpn down

when I ping each other:
on vps ping laptop:
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
^C
--- 10.0.0.2 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4031ms

on laptop ping vps:
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
>From 10.0.0.1 icmp_seq=1 Destination Net Unknown
>From 10.0.0.1 icmp_seq=2 Destination Net Unknown
>From 10.0.0.1 icmp_seq=3 Destination Net Unknown
>From 10.0.0.1 icmp_seq=4 Destination Net Unknown
^C
--- 10.0.0.1 ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 52ms

I have ufw allowed 655. What did i miss?

-------------------------------------

On both nodes I installed 1.1pre17 (laptop from aur package, vps using make
install), and when I use commands like "tinc stop","tinc dump nodes", it
says  "Could not open pid file /usr/local/var/run/tinc.pid: No such file or
directory".
Does this matter? or even the previous problem is somehow due to this?

I'd appreciate your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20190506/d8cfe478/attachment.html>


More information about the tinc mailing list