I have an easy tether interface that has been working on another router for a while, but im seeing an issue with this on a new rpi openwrt setup.
I have an upstream router that connects to this rpi via ospf so the only masquerade that occurs is on the edge, this is a new config which i think is related.
Im only able to get out to the internet when i connect the openvpn interface. And with openvpn down, i can see reply packets on the easy tether interface with the interface's ip as the destination, so it appears to be a nat issue.
One test i should be able to do is ping from an upstream host to the easy tether router ip. I can do this from my main router, but not from a host. This suggests that there is an implicit rule to only masquerade LAN ip hosts, which is why my ospf routed network cant get out.
What do i need to do to allow all ips to masquerade? Enabling a specific nat rule with no specified source ip doesnt help, and setting up a normal ethernet connection on eth0 exposes the same problem.
Could it be that the ospf routes arent living in the right routing table??
ip route
0.0.0.0/1 via 10.8.0.1 dev tun0
default via 192.168.117.1 dev tap-easytether proto static src 192.168.117.2 metric 10
10.0.0.0/8 nhid 94 via 192.168.8.10 dev eth1 proto ospf metric 20
10.0.18.0/24 nhid 94 via 192.168.8.10 dev eth1 proto ospf metric 20
10.0.19.0/24 nhid 94 via 192.168.8.10 dev eth1 proto ospf metric 20
10.0.26.0/24 nhid 94 via 192.168.8.10 dev eth1 proto ospf metric 20
10.0.27.0/24 nhid 94 via 192.168.8.10 dev eth1 proto ospf metric 20
10.0.53.0/29 nhid 94 via 192.168.8.10 dev eth1 proto ospf metric 20
10.8.0.0/24 dev tun0 proto kernel scope link src 10.8.0.5
10.234.3.0/24 nhid 94 via 192.168.8.10 dev eth1 proto ospf metric 20
128.0.0.0/1 via 10.8.0.1 dev tun0
192.168.0.0/22 nhid 94 via 192.168.8.10 dev eth1 proto ospf metric 20
192.168.2.0/24 nhid 94 via 192.168.8.10 dev eth1 proto ospf metric 20
192.168.8.0/29 dev dummy0 proto kernel scope link src 192.168.8.1
192.168.8.8/29 dev eth1 proto kernel scope link src 192.168.8.9
192.168.8.16/29 dev wlan0 proto kernel scope link src 192.168.8.17
192.168.117.0/24 dev tap-easytether proto static scope link metric 10
193.29.61.76 via 192.168.117.1 dev tap-easytether
I think I found the issue checking logs on reboot of the rpi router. it's an issue with mwan3
Sun Jan 22 18:07:03 2023 user.warn mwan3rtmon[1111]: failed: 'ip -4 route replace table 2 10.0.18.0/24 nhid 94 via 192.168.8.10 dev eth1 proto ospf metric 20 ' - error: Error: Nexthop specification and nexthop id are mutually exclusive.
Sun Jan 22 18:07:03 2023 user.warn mwan3rtmon[1111]: failed: 'ip -4 route replace table 2 10.0.19.0/24 nhid 94 via 192.168.8.10 dev eth1 proto ospf metric 20 ' - error: Error: Nexthop specification and nexthop id are mutually exclusive.
Sun Jan 22 18:07:03 2023 user.warn mwan3rtmon[1111]: failed: 'ip -4 route replace table 2 10.0.26.0/24 nhid 94 via 192.168.8.10 dev eth1 proto ospf metric 20 ' - error: Error: Nexthop specification and nexthop id are mutually exclusive.
Sun Jan 22 18:07:03 2023 user.warn mwan3rtmon[1111]: failed: 'ip -4 route replace table 2 10.0.27.0/24 nhid 94 via 192.168.8.10 dev eth1 proto ospf metric 20 ' - error: Error: Nexthop specification and nexthop id are mutually exclusive.
Sun Jan 22 18:07:04 2023 user.warn mwan3rtmon[1111]: failed: 'ip -4 route replace table 2 10.0.53.0/29 nhid 94 via 192.168.8.10 dev eth1 proto ospf metric 20 ' - error: Error: Nexthop specification and nexthop id are mutually exclusive.
Sun Jan 22 18:07:04 2023 user.warn mwan3rtmon[1111]: failed: 'ip -4 route replace table 2 10.234.3.0/24 nhid 94 via 192.168.8.10 dev eth1 proto ospf metric 20 ' - error: Error: Nexthop specification and nexthop id are mutually exclusive.
Sun Jan 22 18:07:04 2023 kern.warn kernel: [ 63.668977] drop easytether in: IN=tap-easytether OUT= MAC=02:00:54:74:68:72:02:00:6d:73:62:62:08:00 SRC=1.1.1.1 DST=192.168.117.2 LEN=1453 TOS=0x00 PREC=0x00 TTL=128 ID=39582 PROTO=TCP SPT=443 DPT=51928 WINDOW=11680 RES=0x00 ACK PSH URGP=0 MARK=0x3f00
Sun Jan 22 18:07:04 2023 user.warn mwan3rtmon[1111]: failed: 'ip -4 route replace table 2 10.0.0.0/8 nhid 94 via 192.168.8.10 dev eth1 proto ospf metric 20 ' - error: Error: Nexthop specification and nexthop id are mutually exclusive.
Sun Jan 22 18:07:04 2023 user.warn mwan3rtmon[1111]: failed: 'ip -4 route replace table 2 192.168.0.0/22 nhid 94 via 192.168.8.10 dev eth1 proto ospf metric 20 ' - error: Error: Nexthop specification and nexthop id are mutually exclusive.
Sun Jan 22 18:07:04 2023 user.warn mwan3rtmon[1111]: failed: 'ip -4 route replace table 2 192.168.2.0/24 nhid 94 via 192.168.8.10 dev eth1 proto ospf metric 20 ' - error: Error: Nexthop specification and nexthop id are mutually exclusive.
damn, it's a bug and this patch doesn't seem to work for me. stopping mwan3 allows packets to route as expected, but I lose gateway tracking....