User Tools

Site Tools


doc:uci:aiccu

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:uci:aiccu [2012/12/28 16:54]
morganfw
doc:uci:aiccu [2014/07/17 12:11] (current)
oskar Added information about new netifd integrated AICCU
Line 6: Line 6:
  
 See for further details on http://​www.sixxs.net/​signup/​create/​ See for further details on http://​www.sixxs.net/​signup/​create/​
 +
 +===== Netifd integration since Barrier Breaker RC1 =====
 +
 +The AICCU client is now integrated with [[doc/​techref/​netifd]]. ​
 +To use it, install the package aiccu and set up wan6 as follows:
 +
 +| ''​
 +config interface '​wan6'​
 +        option '​proto' ​   '​aiccu'​
 +        option '​username'​ '​HANDLE-SIXXS/​TID'​
 +        option '​password'​ '​Password'​ #Use per-tunnel TIC password instead your account password
 +        option '​ip6prefix'​ '​2001:​db8:​aabb::/​48'​ #Delegated subnet
 +        option '​ip6addr'​ '​2001:​db8:​aaaa:​aaa::​2/​64'​ #Optional
 +        option '​verbose'​ '​true'​
 +''​ |
 +
 +**Warning**:​ Do not restart the network interface with AICCU too often. TIC system [[https://​www.sixxs.net/​faq/​aiccu/?​faq=tic|detect excessive connection attempts and block your IP address]] if you try to connect more than 5 times per hour.
 +
 +
 +----
 +
 +{{page>​meta:​infobox:​historic&​noheader&​nofooter&​noeditbtn}}
  
 Check if your router is IPV6 ready. ​ Check if your router is IPV6 ready. ​
Line 28: Line 50:
 ---- ----
  
-{{page>​meta:​infobox:​historic&​noheader&​nofooter&​noeditbtn}} 
  
 :!: [[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 69:
 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 260:
         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 267:
 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 404:
  
 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
 +''​ |
 +
doc/uci/aiccu.1356710086.txt.bz2 · Last modified: 2012/12/28 16:54 (external edit)