-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #946 from NethServer/sdl-929
Enhance interface filtering and ensure uniqueness in netifyd configuration #929
- Loading branch information
Showing
2 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ Global options: | |
- `firewall_exemption`: can be `0` or `1`, if set to `1` all firewall IP addresses will be | ||
added to global exemption list and will not match DPI rules | ||
- `popular_filters`: list of filters that will be returned to from `api-cli ns.dpi list-popular` call. | ||
- `exclude`: list of network interface exclusions in Netifyd that will be returned by `uci show netifyd.@netifyd[0].exclude` | ||
|
||
Rule options: | ||
|
||
|
@@ -145,3 +146,33 @@ Example: | |
``` | ||
HOST=http://__USER__:[email protected] dpi-update | ||
``` | ||
|
||
## Managing Interface Exclusions in Netifyd | ||
|
||
By default, Netifyd monitors all interfaces. To exclude specific interfaces, you can define an exclusion list. Below are commands to add, modify, or remove excluded interfaces. | ||
|
||
- Add interfaces to exclusion list | ||
``` | ||
uci add_list netifyd.@netifyd[0].exclude='eth1' | ||
uci add_list netifyd.@netifyd[0].exclude='tun' | ||
uci add_list netifyd.@netifyd[0].exclude='wg' | ||
uci commit netifyd | ||
``` | ||
|
||
- Modify exclusion list | ||
``` | ||
uci delete netifyd.@netifyd[0].exclude='eth1' | ||
uci add_list netifyd.@netifyd[0].exclude='eth2' | ||
uci commit netifyd | ||
``` | ||
|
||
- Clear exclusion list | ||
``` | ||
uci delete netifyd.@netifyd[0].exclude | ||
uci commit netifyd | ||
``` | ||
|
||
- Return the exclusion list | ||
``` | ||
uci show netifyd.@netifyd[0].exclude | ||
``` |