I'm trying to set-up a very small wired/wireless network. One default parameter is : the device on the wired port (eth0) has a static IP address I have to work with. I used a Raspberry PI as Access Point and DHCP server.
I need to route the wlan1 to eth0 vice versa.
net.ipv4.ip_forward=1
In the RPI with ssh I can ping 192.168.144.12 but if I ping 192.168.144.116 I get reply "From 192.168.144.12 icmp_seq=1 Destination Net Unreachable"
return from: ip neigh
- 192.168.2.254 dev wlan0 lladdr 50:78:b3:a1:e4:d1 STALE
- 192.168.144.118 dev wlan1 FAILED
- 192.168.144.103 dev eth0 FAILED
- 192.168.144.103 dev wlan1 lladdr bc:83:85:06:5c:32 STALE
- 192.168.144.12 dev eth0 lladdr 60:78:f5:e8:81:0f STALE
- 192.168.144.12 dev wlan1 FAILED
- 192.168.2.252 dev wlan0 lladdr f8:08:4f:88:13:53 STALE
- 192.168.2.22 dev wlan0 lladdr ac:b5:7d:6c:24:37 REACHABLE
- fe80::5278:b3ff:fea1:e4d1 dev wlan0 lladdr 50:78:b3:a1:e4:d1 router REACHABLE
- fe80::6278:f5ff:fee8:810f dev eth0 lladdr 60:78:f5:e8:81:0f router REACHABLE
The return from: nft list ruleset
table ip ap {
chain apincomming {
type filter hook input priority filter; policy accept;
ct state established,related accept
}
chain aprouting {
type nat hook postrouting priority filter; policy accept;
oifname "eth0" masquerade
}
}
Does someone can give me a pointer, I would be grateful
The response from ip route:
default via 192.168.144.12 dev eth0 proto dhcp src 192.168.144.118 metric 202
default via 192.168.2.254 dev wlan0 proto dhcp src 192.168.2.18 metric 303
default via 192.168.144.1 dev wlan1 src 192.168.144.100 metric 304
192.168.2.0/24 dev wlan0 proto dhcp scope link src 192.168.2.18 metric 303
192.168.144.0/24 dev eth0 proto dhcp scope link src 192.168.144.118 metric 202
192.168.144.0/24 dev wlan1 proto dhcp scope link src 192.168.144.100 metric 304
