I have my main green network 192.168.255.0/24 and a seperate subnet 192.168.2250/24.
I have one server with 2 NIC’s one connects to green and the other connects to the subnet, so the green network has no direct access to the subnet.
What i’d like to do is allow ssh access to the subnet.
So i thought setting a rule allowing access between the green and the subnet using TCP on port 22 would do the trick.
But alas no, i’ve tried many permutations ( enabling/disabling NAT etc ) but cannot get a reply from the subnet and i’m unsure where it’s getting blocked. I know SSH is working on the machine i wish to access and UFW is not enabled on that machine either.
Any pointers from the network guru’s will be greatfully received
I am presuming that the separate subnet is supposed to be 192.168.225.0/24
Then your firewall rules need to be set up on that server as it has the two subnets connected to it and it has to carry out the routing to the separate subnet as only it will know about that separate subnet.
If you have two nics on a system and nothing else defined then one of those two nics will end up being the default gateway for connections and nothing will connect to the other nic as there is no routing info.
If you want to be able to access the other nic from systems on the first nic, you will need to create some routing rules on that server to do that so that it acts as a router between those two subnets. I believe that if there are no firewall rules then the routing information will allow anything on your green network to access anything on the separate subnet on the 2nd nic.