| 1 |
# NAT gateway configuration |
| 2 |
# |
| 3 |
# See ctdb.conf for main cluster configuration details |
| 4 |
# |
| 5 |
# Cluster provides file services on following IP addresses |
| 6 |
# |
| 7 |
# 10.1.1.101 - 10.1.1.106 |
| 8 |
# |
| 9 |
# When a node is not hosting any IPs, it cannot connect to network |
| 10 |
# infrastructure (e.g. DNS, Active Directory, ...). |
| 11 |
# |
| 12 |
# Using NAT gateway feature of CTDB allows a node not hosting IPs to connect |
| 13 |
# to network infrastructure using the additional CTDB_NATGW_PUBLIC_IP. |
| 14 |
|
| 15 |
# ---------- /etc/ctdb/natgw_nodes ---------- |
| 16 |
# 192.168.1.1 |
| 17 |
# 192.168.1.2 |
| 18 |
# 192.168.1.3 |
| 19 |
# ---------- /etc/ctdb/natgw_nodes ---------- |
| 20 |
# |
| 21 |
CTDB_NATGW_PUBLIC_IP=10.1.1.121/24 |
| 22 |
CTDB_NATGW_PUBLIC_IFACE=eth1 |
| 23 |
CTDB_NATGW_DEFAULT_GATEWAY=10.1.1.254 |
| 24 |
CTDB_NATGW_PRIVATE_NETWORK=192.168.1.0/24 |
| 25 |
CTDB_NATGW_NODES=/etc/ctdb/natgw_nodes |