Verifying the network isolation
Verify that the bastion enforces the allowlist, that the registry and time synchronization are reachable, and that the MTU of each VLAN is correct.
-
List the active ruleset and confirm that the policy is drop.
sudo nft list table inet airgap -
On a Cloudera Cloud Core host, confirm that a public address is unreachable.
curl -sk -o /dev/null -w "%{http_code}\n" --max-time 4 https://1.1.1.1/The command must time out.
-
On the same host, confirm that the registry responds.
curl -sk -o /dev/null -w "%{http_code}\n" --max-time 5 https://<registry-host>/v2/A response of 200 or 401 means that the registry is reachable.
-
Confirm that time synchronization works.
chronyc -n sources -
On the bastion, confirm the maximum transmission unit on each VLAN.
The payload size 8972 plus 28 bytes of headers equals 9000. For a 1500 MTU VLAN, use 1472. Send the test from the bastion sub-interface on each VLAN, and test the transit interface against the upstream gateway.
sudo ping -I <vlan-interface> -M do -s 8972 -c 2 -W 1 <host-address-on-jumbo-vlan> sudo ping -I <vlan-interface> -M do -s 1472 -c 2 -W 1 <host-address-on-standard-vlan> sudo ping -I <transit-interface> -M do -s 1472 -c 2 -W 1 <upstream-gateway-address> -
Review the dropped traffic on the bastion.
sudo journalctl -k --since "5 minutes ago" | grep "AIRGAP_DROP:" | tail -n 10 -
Review the established forwarded connections on the bastion.
sudo conntrack -L | grep ESTABLISHEDThe entries show the original source addresses of the hosts.
-
Verify tenant egress from end to end.
Boot a disposable virtual machine on the external network, and from inside the machine connect to an allowed destination. On the bastion, confirm that the log shows a forwarded entry with the address of the machine as the source, and then delete the machine.
sudo journalctl -k | grep "AIRGAP_FWD:" | grep "SRC=<tenant-vm-address>"
The air-gapped network is isolated. Only the allowed destinations are reachable, and the bastion log records every dropped packet.
