Isolating the network and configuring the egress gateway
Make a routing bastion the only layer 3 exit from the air-gapped network, and
configure it to drop all forwarded traffic except traffic to the allowed
destinations.
In this procedure, you make a routing bastion the only layer 3 exit from the
air-gapped network, and you configure it to drop all forwarded traffic except
traffic to the allowed destinations. The bastion forwards traffic without network
address translation, so the source address of every connection is preserved. Hosts
in the air gap keep their addresses, and your logs show which host sent which
traffic.
Cloudera validates a single bastion. High availability for the bastion and IPv6 are
not covered.
You have a Linux host to act as the bastion, with one VLAN sub-interface in each
cluster VLAN and one transit interface that connects to your corporate
network.
You have a network engineer who can change the fabric configuration during a
maintenance window.
You know the addresses of the allowed destinations: DNS, NTP, SMTP, the
registry, the package mirror, and the operator VPN range.
The cluster VLANs are layer 2 only, or you are ready to make them layer 2 only
in this procedure.
On the bastion, assign an address to each cluster VLAN sub-interface.
Use an address that differs from the existing fabric gateway. For example, if
the fabric gateway is .1, use .2. Assign the transit interface an address on
the transit VLAN. Set the MTU of each sub-interface to the MTU of its
VLAN.
Enable IPv4 forwarding and increase the connection tracking table.
Set the default forward policy to accept, and do not drop invalid connection
states. The fabric gateways are still active, so return traffic is not yet
symmetric.
Change the default gateway of every Cloudera Cloud Core host to the bastion address on its
VLAN.
Migrate one host at a time and confirm connectivity after each change. Keep the bastion
in permissive mode while you migrate the hosts.
Ask your network engineer to complete the fabric change in one maintenance
window.
Remove the layer 3 gateway addresses (switch virtual interfaces) of
every cluster VLAN.
Add static routes for the cluster subnets, or one summary route, that
point to the bastion transit address.
Redistribute those routes into your routing protocol.
On the bastion, verify that the old fabric gateway addresses no longer
respond, and that return traffic arrives through the bastion transit
interface.
Repeat the ping for the old gateway address of every cluster VLAN. While the
capture runs, send a DNS query from a Cloudera Cloud Core host to an allowed DNS server.
sudo ip neigh flush to <old-gateway-address>
ping -c 1 -W 1 <old-gateway-address>
sudo tcpdump -i <transit-interface> -nn host <ccc-host-address> and port 53
The ping must fail for every VLAN. The capture must show both directions of the
DNS query with the original host address, which confirms that routing is
symmetric and that the bastion does not translate addresses.
Enable enforcement.
Set the default forward policy to drop, accept the established and allowed
traffic, and drop invalid states. Log dropped and forwarded packets with
distinct prefixes.
Save the ruleset so that it loads at boot, for example in
/etc/nftables.conf.
Set the gateway that you give to the Cloudera Cloud Core external network (the
Gateway IP field in the installer) to the bastion
address on the external VLAN, never to the old fabric gateway address.
The network service stores the gateway address when it creates the external
subnet.