Deploy NetScaler CPX with direct access to the network
In bridge networking mode, you can configure NetScaler CPX instance to have direct access to the network. In this scenario, the incoming traffic is directly received on the NetScaler CPX virtual server IP (VIP).
To enable this communication, you have to first configure a public IP address on docker0 bridge. Then, remove the public IP address from the network port eth0 and bind the network port to the docker0 bridge.
Configure load balancing by adding the two services and then configure a network public IP address as the VIP on the NetScaler CPX instance. The client requests are received directly on the VIP.
In the example configuration, the 10.x.x.x network denotes a public network.
To configure this scenario, run the following command at the Linux shell prompt:
ip addr add 10.102.29.100/24 dev docker0; \ ip addr del 10.102.29.100/24 dev eth0; \ brctl addif docker0 eth0; \ ip route del default; \ ip route add default via 10.102.29.1 dev docker0
Either by using the Jobs feature in NetScaler MAS or by using NITRO APIs, run the following commands:
add service s1 172.17.0.8 http 80 add service s2 172.17.0.9 http 80 add lb vserver cpx-vip HTTP 10.102.29.102 80 bind lb vserver cpx-vip s1 bind lb vserver cpx-vip s2