Hi guys, sorry if I am in the wrong forum but looking for some help with my home lab that I haven't the foggiest on how to troubleshoot at the moment.
I have a cluster of raspberry pi's behind a banana pi r1 router board, on a separate subnet from the rest of my home network. I had it all functioning for about 2 years up until this week when I had a short in one of the power lines to one of the raspberry's which caused it to burn out. So I have replaced all the power components yesterday, not changed anything else with the setup, just power supply and wires, and powered it back up last night. So all hardware is still working as far as I can tell apart from being able to access the cluster subnet from the rest of my network.
I am not the best with networking so bear with my explanation, please.
The Banana R1 is setup
/etc/network/if-pre-up.d/swconfig
/etc/network/interfaces
/etc/sysctl.conf
iptables
I have advanced routeing set up on my router for the subnet, and all setting seem to be saved, but no matter what I cannot access the subnet from my network. I can ssh to the R1 router, then from there ssh to each individual raspberries, but cannot connect from anywhere else.
I just haven't the foggiest on how to troubleshoot the issue.
Thanks in advance
Iain
I have a cluster of raspberry pi's behind a banana pi r1 router board, on a separate subnet from the rest of my home network. I had it all functioning for about 2 years up until this week when I had a short in one of the power lines to one of the raspberry's which caused it to burn out. So I have replaced all the power components yesterday, not changed anything else with the setup, just power supply and wires, and powered it back up last night. So all hardware is still working as far as I can tell apart from being able to access the cluster subnet from the rest of my network.
I am not the best with networking so bear with my explanation, please.
The Banana R1 is setup
/etc/network/if-pre-up.d/swconfig
Code:
# exit 0
ifconfig eth0 up
swconfig dev eth0 set reset 1
swconfig dev eth0 set enable_vlan 1
swconfig dev eth0 vlan 101 set ports '3 8t'
swconfig dev eth0 vlan 102 set ports '4 0 1 2 8t'
swconfig dev eth0 set apply 1
/etc/network/interfaces
Code:
auto lo
iface lo inet loopback
auto eth0.101
iface eth0.101 inet static
address 192.168.0.4
netmask 255.255.255.0
broadcast 192.168.0.255
network 192.168.0.0
gateway 192.168.0.1
dns-nameservers 8.8.8.8
auto eth0.102
iface eth0.102 inet static
address 192.168.1.1
netmask 255.255.255.0
` broadcast 192.168.1.255
network 192.168.1.0
up iptables-restore < /etc/iptables.ipv4.nat
Code:
Net.ipv4.ip_forward=1
Code:
iptables -t nat -A POSTROUTING -o eth0.101 -j MASQUERADE
iptables -A FORWARD -i eth0.101 -o eth0.102 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth0.102 -o eth0.101 -j ACCEPT
Code:
sh -c "iptables-save > /etc/iptables.ipv4.nat"
I just haven't the foggiest on how to troubleshoot the issue.
Thanks in advance
Iain