Nethserver as gateway between 2 subnets

I have a Nethserver with 2 green subnets and 1 red wan connection
both green networks can access the red subnet and nethserver can ping everything but when I try to reach a computer in green subnet1 from green subnet 2 I get no response.
traceroute ends at the nethserver.
I tried adding a rule in the firewall: green → green; any service; accept.
sadly that didnt work so im out of ideas.

My relevant firewall logs:
Jan 4 22:00:07 neth01 kernel: Shorewall:loc2loc:ACCEPT:IN=eth1 OUT=eth2 MAC=fa:c9:c7:1b:bd:38:62:a0:f2:1e:26:be:08:00 SRC=192.168.42.149 DST=192.168.69.95 LEN=52 TOS=0x00 PREC=0x00 TTL=125 ID=38070 DF PROTO=TCP SPT=53107 DPT=443 WINDOW=64860 RES=0x00 SYN URGP=0
Jan 4 22:00:08 neth01 kernel: Shorewall:loc2loc:ACCEPT:IN=eth1 OUT=eth2 MAC=fa:c9:c7:1b:bd:38:62:a0:f2:1e:26:be:08:00 SRC=192.168.42.149 DST=192.168.69.95 LEN=52 TOS=0x00 PREC=0x00 TTL=125 ID=38071 DF PROTO=TCP SPT=53108 DPT=443 WINDOW=64860 RES=0x00 SYN URGP=0

NethServer Version: NethServer release 7.9.2009 (final)
Module: Network/firewall

Nevermind this has bothered me for so long and it was just me being stupid as always.
The Computer I was trying to reach has 2 network interfaces and I didnt configure a static route for the source IP on it. neth server was never the problem.
the following on the computer I tried to reach solved the problem.
ip route add 192.168.42.0/24 via 192.168.69.1

2 Likes

Thanks for sharing :wink: