Skip to content
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

Missing ipproto keyword in network config rule section #7330

Open
TheRainstorm opened this issue Oct 17, 2024 · 1 comment
Open

Missing ipproto keyword in network config rule section #7330

TheRainstorm opened this issue Oct 17, 2024 · 1 comment

Comments

@TheRainstorm
Copy link

TheRainstorm commented Oct 17, 2024

The ip-rule1 utility supports the ipproto keyword, allowing us to route UDP traffic differently using the following command:

ip ru add from all ipproto udp table udp_table prior 10

The ip utility in Openwrt also supports this keyword. Howerver, In Luci, there is no option to configure the ipproto keyword. The network configuration file /etc/configure/network also does not support it either. 2

As a result, to implement routing according to L4 protocol, we can only use command line or route using fwmark with the help of nftables. It would be more convenient if support for the ipproto keyword were added.

Steps to reproduce:

  1. go to: Network → Routing→ IPv4 rules
  2. no method to set ipproto

Additional Information:

OpenWrt version information from system /etc/openwrt_release

DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='23.05.0'
DISTRIB_REVISION='r23497-6637af95aa'
DISTRIB_TARGET='x86/64'
DISTRIB_ARCH='x86_64'
DISTRIB_DESCRIPTION='OpenWrt 23.05.0 r23497-6637af95aa'
DISTRIB_TAINTS=''

I have also installed ip-full

Footnotes

  1. https://man7.org/linux/man-pages/man8/ip-rule.8.html

  2. https://openwrt.org/docs/guide-user/network/routing/ip_rules

@systemcrash
Copy link
Contributor

This is not complex to add within luci, but luci depends on what exists in the openwrt base system. I sent a patch for netifd to the mailing list and opened a PR which will probably take about 17 years to get acknowledged.

See openwrt/netifd#36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants