Commit 4c08b8d2 authored by Leigh B Stoller's avatar Leigh B Stoller

Add NAT bypass for ops/boss since they might not be on the same

subnet as the control network (as in Utah).
parent 7409b31e
......@@ -221,6 +221,15 @@ sub Online()
" -s $vnode_ip -d $network/$cnet_mask");
return -1
if ($?);
#
# Boss/ops/fs specific rules in case the control network is
# segmented like it is in Utah.
#
mysystem2("$IPTABLES -t nat -A POSTROUTING -j ACCEPT " .
" -s $vnode_ip -d $boss_ip,$ops_ip");
return -1
if ($?);
}
#
......@@ -286,6 +295,9 @@ sub Offline()
if (!REMOTEDED()) {
mysystem2("$IPTABLES -t nat -D POSTROUTING -j ACCEPT " .
" -s $vnode_ip -d $network/$cnet_mask");
mysystem2("$IPTABLES -t nat -D POSTROUTING -j ACCEPT " .
" -s $vnode_ip -d $boss_ip,$ops_ip");
}
mysystem2("$IPTABLES -t nat -D POSTROUTING ".
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment