tinc configuration question
Hanxi Zhang
hanxi.zhang at crc.ca
Mon Sep 15 18:44:26 CEST 2008
This is a follow-up on my previous post:
http://www.tinc-vpn.org/pipermail/tinc/2008-September/001759.html
After being able to build tinc from source on FC8, I have stumbled upon
some configuration issue. My tinc daemon is configured as follows:
[root at optiplex060 crc_idb1]# pwd
/usr/local/etc/tinc/crc_idb1
[root at optiplex060 crc_idb1]# ls -l
total 24
drwxr-xr-x 2 root root 4096 2008-09-15 06:59 hosts
-rw------- 1 root root 887 2008-09-15 07:03 rsa_key.priv
-rw-r--r-- 1 root root 56 2008-09-15 06:58 tinc.conf
[root at optiplex060 crc_idb1]#
The tinc.conf file reads like:
[root at optiplex060 crc_idb1]# more tinc.conf
Name = crc_idb1
ConnectedTo = fry
Device = /dev/net/tun
And under "hosts" folder, there is a crc_idb1 file that reads like:
Address = myhost.badlab.crc.ca
Subnet = 10.1.8.100/32
-----BEGIN RSA PUBLIC KEY-----
xxxx public key xxxxx
-----END RSA PUBLIC KEY-----
Finally, there is a tinc-up script under /etc/tinc/crc_idb1/:
#!/bin/sh
ifconfig crc_idb1 10.1.8.100 netmask 255.255.255.0 up
route add -net 10.1.0.0/16 crc_idb1
The problem is, when I start tincd, I get this warning:
tincd -n crc_idb1 --pidfile=/tmp/tinc.crc_idb1.pid -d5 -D
/dev/net/tun is a Linux tun/tap device (tun mode)
Listening on :: port 655
Can't bind to 0.0.0.0 port 655/tcp: Address already in use
Ready
And if I do "ifconfig", the crc_idb1 virtual interface is always
inactive/down, even if the tincd daemon is running.
Am I doing something obviously wrong or it somehow has
to do with the Can't bind warning?
Thank you in advance!
Hanxi
More information about the tinc
mailing list