Skip to content

Commit 6761e73

Browse files
committed
Feature: Firewall edit/del + docs
1 parent fa13f29 commit 6761e73

5 files changed

Lines changed: 58 additions & 2 deletions

File tree

Source/NETworkManager/Views/FirewallView.xaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@
101101
SelectedItem="{Binding SelectedResult}"
102102
SelectedItemsList="{Binding SelectedResults, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
103103
RowDetailsVisibilityMode="Collapsed">
104+
<controls:MultiSelectDataGrid.InputBindings>
105+
<KeyBinding Command="{Binding EditEntryCommand}" Key="F2" />
106+
<KeyBinding Command="{Binding DeleteEntryCommand}" Key="Delete" />
107+
</controls:MultiSelectDataGrid.InputBindings>
104108
<controls:MultiSelectDataGrid.Resources>
105109
<ContextMenu x:Key="RowContextMenu" Opened="ContextMenu_Opened" MinWidth="150">
106110
<MenuItem Header="{x:Static localization:Strings.EnableEntry}"

Website/docs/application/discovery-protocol.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ If you are using a hypervisor like Hyper-V with a virtual switch configured as "
2222

2323
:::
2424

25+
:::note
26+
27+
Capturing network packets requires administrator privileges. If the application is not running as administrator, capturing is not available. Use the **Restart as administrator** button to relaunch the application with elevated rights.
28+
29+
:::
30+
2531
![Discovery Protocol](../img/discovery-protocol.png)
2632

2733
In addition, further actions can be performed using the buttons at the bottom right:
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,44 @@
11
---
22
sidebar_position: 17
3+
description: "Manage Windows Firewall rules with NETworkManager. Add, edit, enable, disable, or delete inbound and outbound rules using a user-friendly interface."
4+
keywords: [NETworkManager, Windows Firewall, firewall rules, inbound, outbound, network security, firewall management]
35
---
46

57
# Firewall
8+
9+
The **Firewall** allows you to view, add, edit, enable, disable, or delete Windows Firewall rules managed by NETworkManager. Rules are identified by a `NETworkManager_` prefix in their display name so that only rules created through NETworkManager are shown in this view.
10+
11+
:::info
12+
13+
Windows Firewall (Windows Defender Firewall) is a built-in host-based firewall included with all versions of Windows. It filters inbound and outbound network traffic based on rules that define the protocol, port, address, program, and action (allow or block).
14+
15+
Rules created by NETworkManager use the prefix `NETworkManager_` in their display name to distinguish them from system-managed or third-party rules. Only rules with this prefix are shown in the Firewall view.
16+
17+
:::
18+
19+
:::note
20+
21+
Adding, editing, enabling, disabling, or deleting firewall rules requires administrator privileges. If the application is not running as administrator, the view is in read-only mode. Use the **Restart as administrator** button to relaunch the application with elevated rights.
22+
23+
:::
24+
25+
![Firewall](../img/firewall.png)
26+
27+
:::note
28+
29+
In addition, further actions can be performed using the buttons below:
30+
31+
- **Add entry...** - Opens a dialog to create a new firewall rule.
32+
- **Windows Firewall Settings** - Opens the Windows Firewall management console (`WF.msc`).
33+
34+
:::
35+
36+
:::note
37+
38+
With `F5` you can refresh the firewall rules.
39+
40+
Right-click on a rule to `enable`, `disable`, `edit`, or `delete` it, or to `copy` or `export` the information.
41+
42+
You can also use the Hotkeys `F2` (`edit`) or `Del` (`delete`) on a selected rule.
43+
44+
:::

Website/docs/application/hosts-file-editor.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ keywords: [NETworkManager, hosts file editor, Windows hosts file, DNS override,
88

99
The **Hosts File Editor** allows you to view, add, edit, enable, disable, or remove entries in the local computer's `hosts` file.
1010

11-
Editing the `hosts` file requires administrator privileges. The application automatically creates a daily backup of the `hosts` file, retaining up to 5 backups in the same directory (Syntax: `hosts_backup_NETworkManager_YYYYMMDD`).
12-
1311
:::info
1412

1513
The hosts file is a plain text file that maps hostnames to IP addresses and is checked by the operating system before querying DNS servers. It's commonly used to override DNS settings for testing websites, redirecting domains, or blocking access to certain sites. On Windows, the file is located at `C:\Windows\System32\drivers\etc\hosts` and requires administrator privileges to edit.
@@ -24,6 +22,14 @@ Example of a hosts file entry:
2422

2523
:::
2624

25+
:::note
26+
27+
Editing the `hosts` file requires administrator privileges. If the application is not running as administrator, the view is in read-only mode. Use the **Restart as administrator** button to relaunch the application with elevated rights.
28+
29+
The application automatically creates a daily backup of the `hosts` file, retaining up to 5 backups in the same directory (Syntax: `hosts_backup_NETworkManager_YYYYMMDD`).
30+
31+
:::
32+
2733
![Hosts File Editor](../img/hosts-file-editor.png)
2834

2935
:::note

Website/docs/introduction.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ NETworkManager comes with various built-in tools. See the documentation for deta
2929
- [Web Console](./application/web-console)
3030
- [SNMP](./application/snmp) - Get, Walk, Set
3131
- [Hosts File Editor](./application/hosts-file-editor)
32+
- [Firewall](./application/firewall)
3233
- [SNTP Lookup](./application/sntp-lookup)
3334
- [Discovery Protocol](./application/discovery-protocol) - LLDP, CDP
3435
- [Wake on LAN](./application/wake-on-lan)

0 commit comments

Comments
 (0)