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
On Mon, Sep 15, 2008 at 12:44:26PM -0400, Hanxi Zhang wrote:> After being able to build tinc from source on FC8, I have stumbled upon > some configuration issue. My tinc daemon is configured as follows:[...]> 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.You mention that your config files are in /usr/local/etc/tinc/crc_idb1, but that the tinc-up script is in /etc/tinc/crc_idb1. They should all be in the same directory. Also make sure that the tinc-up script is executable.> Am I doing something obviously wrong or it somehow has > to do with the Can't bind warning?The bind warning has nothing to do with it, you can ignore it. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: Digital signature Url : http://www.tinc-vpn.org/pipermail/tinc/attachments/20080915/21b2c35e/attachment.pgp