Purpose

Use the Aloha as an IPv6 to IPv4 gateway without modifying anything on your current platform.

Target Network Diagram

Context

The website is available through IPv4 on  the service IP  192.168.1.254. The IPv4 router does NAT IPv4 public address to this service IP.
About IPv6, the website hostname resolves directly on the IP 2001::2254, which is the  IPv6 service IP hosting the service. The router just routes traffic to the Aloha.
All IPv6 traffic will be automatically translated to IPv4 by the Aloha: nothing to change on your servers and your servers don’t even need to be IPv6 compliant.

Configuration

Aloha 1 network configuration

On the GUI, click on Services > network > eth0  setup icon  , then  update  the configuration as below:

service network eth0
    vrrp id 254
    vrrp garp 30
    vrrp prio 100
    vrrp no-address
    vrrp address 2001::2254
    vrrp address 192.168.1.254
    vrrp address 2001::2254
    ip6  address 2001::2201/96
    ip address 192.168.1.201/24
    mtu 1500

Click on [OK], then [Close].

Once the configuration has been updated, you need to reload the services:

  • Network: Click on Services > eth0 reload icon
  • VRRP: Click on Services > vrrp reload icon

Aloha 2 network configuration

On the GUI, click on Services > network > eth0  setup icon  , then  update  the configuration as below:

service network eth0
    vrrp id 254
    vrrp garp 30
    vrrp prio 99
    vrrp no-address
    vrrp address 2001::2254
    vrrp address 192.168.1.254
    vrrp address 2001::2254
    ip6  address 2001::2202/96
    ip address 192.168.1.202/24
    mtu 1500

Click on [OK], then [Close].

Once the configuration has been updated, you need to reload the services:

  • Network: Click on Services > eth0 reload icon
  • VRRP: Click on Services > vrrp reload icon

Layer 7 (HAproxy) configuration

This configuration is common to both Aloha load balancer.
Add the bind on the IPv6 service address in the corresponding frontend section:

frontend ft_myappli
    bind  192.168.1.254:80
    bind 2001::2254:80
    mode http
    log global
    option httplog
    maxconn 1000
    timeout client 25s
    default_backend bk_myappli

Click on [OK], then [Apply].

Links