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

luci-mod-status: add simple filtering for connections #7499

Merged
merged 1 commit into from
Dec 27, 2024

Conversation

McGiverGim
Copy link
Contributor

This commit adds a simple filtering input text into the connections status page. You can type some filtering like:

  • '100.15' -> Will show only connections that include this '100.15' onto the IP.
  • 'UDP 100.15' -> Will show only UDP connections that include this '100.15' onto the IP.

You can use a part of the IP or part of the name if the DNS resolution button is enabled.

It's a very simple filter that can grow in the future if it deserves some interest, maybe adding some regular expression support.

image

@McGiverGim McGiverGim force-pushed the add_connections_filter branch from 17391e1 to 311ce29 Compare December 24, 2024 10:23
@McGiverGim
Copy link
Contributor Author

I replaced the text with the samples (but I'm ready to change it if someone prefers a better wording) and added comparison with ignore case to protocol and network.

@stokito
Copy link
Contributor

stokito commented Dec 24, 2024

Is it really needed?

@systemcrash
Copy link
Contributor

It’s low effort, and high value when dealing with lots of endpoints, so it’s a welcome addition I think. @McGiverGim also thinks so.

@stokito
Copy link
Contributor

stokito commented Dec 24, 2024

ok, just newer thought that someone may need to search or even filter by the ip

@McGiverGim
Copy link
Contributor Author

I think it's useful when you want to see the connections from a host, for example. If this is not needed, then the full list of connections it's not needed neither, because now it's a big list but you can't find anything because it's big and changes continuosly.

@McGiverGim McGiverGim force-pushed the add_connections_filter branch 2 times, most recently from 0d640a5 to 3482725 Compare December 27, 2024 09:00
This commit adds a simple filtering input text into the connections status page. You can type some filtering like:
- '100.15' -> Will show only connections that include this '100.15' onto the IP.
- 'UDP 100.15' -> Will show only UDP connections that include this '100.15' onto the IP.
- ':443' -> Will show only connections that use the port 443 as source or destination.

You can use a part of the IP or part of the name if the DNS resolution button is enabled.

It's a very simple filter that can grow in the future if it deserves some interest, maybe adding some regular expression support.

Signed-off-by: Miguel Angel Mulero Martinez <migmul@gmail.com>
@McGiverGim McGiverGim force-pushed the add_connections_filter branch from 3482725 to 88edae4 Compare December 27, 2024 18:08
@systemcrash
Copy link
Contributor

Took it for a spin. Works fine.

@systemcrash systemcrash merged commit 6404f3a into openwrt:master Dec 27, 2024
5 checks passed
@systemcrash
Copy link
Contributor

Thanks @McGiverGim

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

Successfully merging this pull request may close these issues.

4 participants