Differences

This shows you the differences between two versions of the page.

doc:uci:aiccu [2012/12/28 16:54]
morganfw
doc:uci:aiccu [2013/12/29 16:54] (current)
unnyulbenco
Line 32: Line 32:
:!: [[https://dev.openwrt.org/changeset/32666|Changeset 32666]] removed any OpenWrt changes to AICCU, so the information above does no longer apply. Still check if required packages are installed. :!: [[https://dev.openwrt.org/changeset/32666|Changeset 32666]] removed any OpenWrt changes to AICCU, so the information above does no longer apply. Still check if required packages are installed.
-This change affects the OpenWrt Attitude Adjustment (12.09) release. In order to maintain a working AICCU setup, it is necessary to start and configure AICCU manually:+This change affects the OpenWrt Attitude Adjustment (12.09) release. In order to maintain a working AICCU setup, it is necessary to start and configure AICCU manually. You can choose one of following two configuration methods, depending on how you are going to use AICCU.
-Create an AICCU config file in ''/etc/aiccu.conf''+A. If you need on-demand AICCU connection, you can create an AICCU config file in ''/etc/aiccu.conf''
| ''username USER-SIXXS | ''username USER-SIXXS
password password123 password password123
Line 48: Line 48:
pidfile /var/run/aiccu.pid'' | pidfile /var/run/aiccu.pid'' |
-create the following script in ''/etc/init.d/aiccu''+Note: with method A, you have to start aiccu manually by excuting command ''aiccu start''.  
 + 
 +B. It allows more convenient way to manipulate AICCU service. With this method, you can start/stop enable/disable the service via luci web interface. It needs two steps. 
 + 
 +First, create aiccu configuration file at ''/etc/config/aiccu'': 
 +| ''config aiccu 
 + option username  'XXXX-SIXXS' 
 + option password  'yourpassword' 
 + option protocol  'tic' 
 + option server 'tic.sixxs.net' 
 + option interface 'sixxs0' 
 + option tunnel_id 'T123XX6' 
 + option requiretls '0' 
 + option defaultroute    '1' 
 + option nat '1' 
 + option heartbeat '1' '' | 
 + 
 +Second, create the following script in ''/etc/init.d/aiccu'':
| ''#!/bin/sh /etc/rc.common | ''#!/bin/sh /etc/rc.common
Line 222: Line 239:
        option 'auto' '1'         option 'auto' '1'
        option 'ip6addr' **'2001:YOUR:END:POINT::2/64'**         option 'ip6addr' **'2001:YOUR:END:POINT::2/64'**
-        option 'ip6gw' **'2001:YOUR:END:POINT::1/64'**+        option 'ip6gw' **'2001:YOUR:END:POINT::1'**
        option 'send_rs' '0''' |         option 'send_rs' '0''' |
Line 229: Line 246:
Replace **'2001:YOUR:END:POINT::2/64'** with your SixXS Tunnel individual **endpoint** address. Replace **'2001:YOUR:END:POINT::2/64'** with your SixXS Tunnel individual **endpoint** address.
-Replace **'2001:YOUR:END:POINT::1/64'** with your SixXS Tunnel individual **gateway** address. +Replace **'2001:YOUR:END:POINT::1'** with your SixXS Tunnel individual **gateway** address.
===== Firewall ===== ===== Firewall =====
Line 366: Line 383:
and reboot your router. and reboot your router.
 +
 +===== hotplug script for 12.09.01 and later =====
 +In recent versions of openwrt, aiccu does not include an init script anymore. I've created an hotplug skript to run aiccu when my ipv4 wan interface comes up, and stops it when the wan interface goes down. Config is stored in /etc/aiccu.conf. Just copy that file to /etc/hotplug.d/iface/50-aiccu
 +
 +
 +| ''#!/bin/sh
 +
 +if [ "$ACTION" = "ifdown" ]; then
 + if [ "$INTERFACE" = "wan" ]; then
 +
 + # stop aiccu
 + /usr/sbin/aiccu stop
 +
 + fi
 +fi
 +
 +if [ "$ACTION" = "ifup" ]; then
 + if [ "$INTERFACE" = "wan" ]; then
 +
 + # start aiccu again
 + /usr/sbin/aiccu start
 +
 + fi
 +fi
 +'' |
 +

Back to top

doc/uci/aiccu.1356710086.txt.bz2 · Last modified: 2012/12/28 16:54 (external edit)