So I am attempting to add a 2nd vpn to my existing setup and for some reason I can't seem to get it to work quite right.<div><br></div><div>The issue I'm having right now is successful execution of the tinc-up script. It's probably something obvious but after several days I still don't see what I'm missing. I can see in syslog that </div>
<div>"Script tinc-up exited with non-zero status 1"</div><div><br></div><div>Both vpns are definitely running.</div><div><br></div><div><div>donald@Donald-TincVM:~$ ps -aux | grep tincd</div><div>Warning: bad ps syntax, perhaps a bogus '-'? See <a href="http://procps.sf.net/faq.html">http://procps.sf.net/faq.html</a></div>
<div>root 931 0.0 0.4 3940 1240 ? Ss 16:22 0:00 /usr/sbin/tincd -n vpn</div><div>root 939 0.0 0.3 3752 956 ? Ss 16:22 0:00 /usr/sbin/tincd -n alan</div><div>donald 1567 0.0 0.3 3044 864 pts/1 R+ 16:26 0:00 grep --color=auto tincd</div>
</div><div><br></div><div>Following is some relevant console output. </div><div><br></div><div><div>donald@Donald-TincVM:/etc/tinc$ ls -la</div><div>total 32</div><div>drwxr-xr-x 4 root root 4096 2010-12-27 16:02 .</div>
<div>drwxr-xr-x 130 root root 12288 2010-12-27 16:03 ..</div><div>drwxr-xr-x 3 root root 4096 2010-12-26 12:26 alan</div><div>-rw-r--r-- 1 root root 92 2010-12-27 16:02 nets.boot</div><div>-rw-r--r-- 1 root root 81 2010-03-07 08:57 nets.boot~</div>
<div>drwxr-xr-x 3 root root 4096 2010-12-27 07:33 vpn</div><div><br></div><div>donald@Donald-TincVM:/etc/tinc$ cat ./nets.boot</div><div>## This file contains all names of the networks to be started on system startup.</div>
<div>vpn</div><div>alan</div><div>#</div><div><br></div><div>donald@Donald-TincVM:/etc/tinc$ ls -la ./vpn</div><div>total 24</div><div>drwxr-xr-x 3 root root 4096 2010-12-27 07:33 .</div><div>drwxr-xr-x 4 root root 4096 2010-12-27 16:02 ..</div>
<div>drwxr-xr-x 2 root root 4096 2010-12-27 07:32 hosts</div><div>-rwxr-xr-x 1 root root 887 2010-03-07 11:09 rsa_key.priv</div><div>-rwxr-xr-x 1 root root 138 2010-12-27 07:33 tinc.conf</div><div>-rwxr-xr-x 1 root root 274 2010-12-26 12:26 tinc-up</div>
<div><br></div><div>donald@Donald-TincVM:/etc/tinc$ ls -la ./alan</div><div>total 24</div><div>drwxr-xr-x 3 root root 4096 2010-12-26 12:26 .</div><div>drwxr-xr-x 4 root root 4096 2010-12-27 16:02 ..</div><div>drwxr-xr-x 2 root root 4096 2010-12-24 15:08 hosts</div>
<div>-rw-r--r-- 1 root root 1679 2010-12-24 11:09 rsa_key.priv</div><div>-rw-r--r-- 1 root root 106 2010-12-24 14:51 tinc.conf</div><div>-rwxr-xr-x 1 root root 90 2010-12-26 12:26 tinc-up</div><div><br></div><div>donald@Donald-TincVM:/etc/tinc$ cat ./vpn/tinc-up</div>
<div>#!/bin/sh</div><div>modprobe tun</div><div>ifconfig vpn 0.0.0.0</div><div>ifconfig vpn up</div><div>ifconfig eth1 0.0.0.0</div><div>ifconfig eth1 up</div><div><br></div><div>brctl addbr bridge</div><div>brctl addif bridge vpn</div>
<div>brctl addif bridge eth1</div><div>ifconfig bridge 192.168.2.11 netmask 255.255.0.0</div><div>route add default gw 192.168.2.1 bridge</div><div>ifconfig bridge up</div><div><br></div><div>donald@Donald-TincVM:/etc/tinc$ cat ./alan/tinc-up</div>
<div>#!/bin/sh</div><div>ifconfig alan 0.0.0.0</div><div>ifconfig alan up</div><div><br></div><div>brctl addif bridge alan</div><div>#</div></div><div><br></div><div><div>donald@Donald-TincVM:/etc/tinc$ brctl show</div><div>
bridge name bridge id STP enabled interfaces</div><div>bridge 8000.000c29c79d3a no eth1</div><div> vpn</div></div><div>
<br></div><div><div>donald@Donald-TincVM:/etc/tinc$ ifconfig</div><div>alan Link encap:Ethernet HWaddr 4a:e8:67:f9:a4:36</div><div> inet6 addr: fe80::48e8:67ff:fef9:a436/64 Scope:Link</div><div> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1</div>
<div> RX packets:0 errors:0 dropped:0 overruns:0 frame:0</div><div> TX packets:6 errors:0 dropped:0 overruns:0 carrier:0</div><div> collisions:0 txqueuelen:500</div><div> RX bytes:0 (0.0 B) TX bytes:468 (468.0 B)</div>
<div><br></div><div>bridge Link encap:Ethernet HWaddr 00:0c:29:c7:9d:3a</div><div> inet addr:192.168.2.11 Bcast:192.168.255.255 Mask:255.255.0.0</div><div> inet6 addr: fe80::20c:29ff:fec7:9d3a/64 Scope:Link</div>
<div> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1</div><div> RX packets:349 errors:0 dropped:0 overruns:0 frame:0</div><div> TX packets:362 errors:0 dropped:0 overruns:0 carrier:0</div><div>
collisions:0 txqueuelen:0</div><div> RX bytes:27800 (27.8 KB) TX bytes:39691 (39.6 KB)</div><div><br></div><div>eth1 Link encap:Ethernet HWaddr 00:0c:29:c7:9d:3a</div><div> inet6 addr: fe80::20c:29ff:fec7:9d3a/64 Scope:Link</div>
<div> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1</div><div> RX packets:351 errors:0 dropped:0 overruns:0 frame:0</div><div> TX packets:334 errors:0 dropped:0 overruns:0 carrier:0</div><div>
collisions:0 txqueuelen:1000</div><div> RX bytes:33210 (33.2 KB) TX bytes:35815 (35.8 KB)</div><div> Interrupt:18 Base address:0x1400</div><div><br></div><div>lo Link encap:Local Loopback</div>
<div> inet addr:127.0.0.1 Mask:255.0.0.0</div><div> inet6 addr: ::1/128 Scope:Host</div><div> UP LOOPBACK RUNNING MTU:16436 Metric:1</div><div> RX packets:15 errors:0 dropped:0 overruns:0 frame:0</div>
<div> TX packets:15 errors:0 dropped:0 overruns:0 carrier:0</div><div> collisions:0 txqueuelen:0</div><div> RX bytes:1100 (1.1 KB) TX bytes:1100 (1.1 KB)</div><div><br></div><div>vpn Link encap:Ethernet HWaddr fe:4f:b6:2b:06:d8</div>
<div> inet6 addr: fe80::fc4f:b6ff:fe2b:6d8/64 Scope:Link</div><div> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1</div><div> RX packets:0 errors:0 dropped:0 overruns:0 frame:0</div><div> TX packets:54 errors:0 dropped:0 overruns:0 carrier:0</div>
<div> collisions:0 txqueuelen:500</div><div> RX bytes:0 (0.0 B) TX bytes:5026 (5.0 KB)</div></div><div><br></div>