I am starting to configure a pretty small cluster with 1 access node (head) and 2 nodes for calculation (node). The problem is that for configuring the node I need internet access for them. So I need to configure the head as a gateway. For my user I already have ssh with no password working.
For the head side:
enp3s0 Address: 192.168.0.1/24 -> Cluster network
enp4s0 Automatic IP Address ->Internet access
from “cat /proc/sys/net/ipv4/ip_forward” the answer is “1”
I configured iptables as:
sudo iptables -t nat -A POSTROUTING -o enp3s0 -j MASQUERADE
sudo iptables -A FORWARD -i enp4s0 -o enp3s0 -j ACCEPT
sudo iptables -A FORWARD -i enp3s0 -o enp4s0 -m state --state RELATED,ESTABLISHED -j ACCEPT
And the node side:
eno1 Address: 192.168.0.2/24 -> Cluster network
DNS servers: XX.XX.XX.XX -> internet access from head node
It should be working, right? What am I missing?
I am using nmtui to configure the network.
PS2: I need internet access to install bundles. Is there other way to do this?