Heartbeat AICCU can't force tunnel work
Carmen Sandiego on Sunday, 10 October 2010 20:09:16
AICCU doesn't do anything. For a few minutes it's working (I mean heartbeat) but then it stops. And No AICCU doesn't create any tunnel at all!!! I've written a script which should do what AICCU should but I don't know what I'm doing wrong -> the POP is not responding throug the tunnel.
PLEASE somebody help!
#! /bin/sh
# written by Oliver Walter <owb@gmx.de>
serverv6="$1"
serverv4="$2"
clientv6="$3"
clientv4="$4"
password="$5"
sleep="$6"
while [ 1 ]
do
d=`date +%s`
let d-=7200
hb_base="HEARTBEAT TUNNEL $clientv6 $clientv4 $d"
#echo "$hb_base" >> /jffs/beat.log
packet="$hb_base `echo -n "$hb_base $password" | md5sum | cut -d ' ' -f 1`"
echo -n -e "$packet\0" | netcat -c -w 1 -u "$serverv4" 3740
#echo -e "$packet\0" >> packet.log
ping6 -s 8 -c 1 -q $serverv6 > /dev/null 2>&1 &
sleep $sleep
done
Heartbeat AICCU can't force tunnel work
Carmen Sandiego on Sunday, 10 October 2010 20:12:20
I run it like:
WANIP=$(ip -4 addr show dev vlan1 | awk '/inet / {print $2}' | cut -d/ -f1)
SUBNET="2001:6a0:***::/64"
MY_ROUTED_ADDR="2001:6a0:***::*" # change me
MY_TUNNEL_ADDR="2001:6a0:***:***::2"
TUNNEL_POP="2001:6a0:***:***::1"
TUNNEL_REMOTE_IP="193.219.28.26"
sh /jffs/heartbeat.sh ${TUNNEL_POP} ${TUNNEL_REMOTE_IP} ${MY_TUNNEL_ADDR} ${WANIP} *** 60
Posting is only allowed when you are logged in. |