
The router uses systemd-networkd and dnsmasq (caching on 127.0.0.1) and has three interfaces, eth0, eth1 and wlan0. eth0 is the external interface and configured using DHCP from external router outside (currently assigned 192.168.128.1). eth1 and wlan0 are the internal interfaces, and I'm using a 8 segment class C network (198.162.0.0/27). Once I get basic routing working, I'll turn on NATing using UFW.
I'm stuck even trying to get basic routing working, that is, pinging eth0 from eth1 (ping -I eth1 192.168.0.1) where I've also assigned eth0 a static internal ip using the eth0.network config:
$this->bbcode_second_pass_code('', '[Match]
Name=eth0
[Network]
DHCP=v4
[Address]
Address=192.168.0.1/27')
and eth1.network config:
$this->bbcode_second_pass_code('', '[Match]
Name=eth1
[Network]
DNS=127.0.0.1
[Address]
Address=192.168.0.33/27')
Route tells me:
$this->bbcode_second_pass_code('', 'Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default outside 0.0.0.0 UG 1024 0 0 eth0
192.168.0.0 * 255.255.255.224 U 0 0 0 eth0
192.168.0.32 * 255.255.255.224 U 0 0 0 eth1
192.168.128.0 * 255.255.255.0 U 0 0 0 eth0
outside * 255.255.255.255 UH 1024 0 0 eth0
')
IP forwarding is on:
$this->bbcode_second_pass_code('', 'net/ipv4/ip_forward=1')
Any help would be appreciated!