-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom route fails to work without setting gateway #16
Comments
@jow- , I have created an interface with dhcp client protocol named iptv without default gateway option. ifstatus iptv shows this record correctly: inactive -> route -> nexthop: 100.112.84.1 But when i leave blank the gateway (see image attachment), "traceroute 10.31.44.26" says no route to host(this is dhcpserver). NETIFD can't read inactive -> route -> nexthop value. #ifstatus iptv
|
@gntcs That's weird when I set the gateway manually like this it works fine (and persists):
Without a different route it works fine as well, just that when I add a route without setting a gateway to an interface that is not point to point (like VPN/4G/PPPoE) it doesn't work |
@hayzamjs No problem when I specify gateway address manually, it works. The problem is when the router is rebooted, the ip address and the gateway is changed (PROTO=DHCP), I have to add new gateway again manually. IMO, See route->"nexthop": "0.0.0.0", IT must be empty "", not "0.0.0.0". |
This is my network config:
This is my firewall config:
Before I set anything up, I can ping
172.30.249.11
and172.30.249.33
by using the commandping <ip> -I lan4
, what I want to achieve is all packets directed to these IPs (and some other IPs that I will add later) to automatically use lan4 (BSNLTrunk). I can see the following data in the overview page as well:Now this is my setup :
0.0.0.0/0
to172.30.249.0/24
using these nftables rules:/usr/share/nftables.d/chain-pre/mangle_output/0-pbr.nft :
/usr/share/nftables.d/chain-pre/mangle_prerouting/0-pbr.nft :
/etc/config/network
file:Now I should ideally be able to ping 172.30.249.0/24 from anywhere in the network right? But that's not the case the pings seemingly go nowhere and the traceroute (from the router to the range) looks like this:
Also I should note that in the overview page the gateway has turned into 0.0.0.0?
Now I should add that I use the same method to PBR using other interfaces (My 4G interface, some wireguard interfaces) and they all work perfectly fine except this one interface. Also when I add the gateway '10.148.96.1' to this route:
It works as expected again (setting the interface BSNLTrunk to a different routing table also works), but I don't want to use the gateway as it's not reliable and prone to change in my case, I want to use the interface directly. I have tried everything I could think of but I can't seem to get it to work. A user on the forum told me it might be a bug so thought I'd post it here.
The text was updated successfully, but these errors were encountered: