@@ -10,6 +10,10 @@ Configure Windows ``netsh`` Firewall for MongoDB
1010 :depth: 1
1111 :class: singlecol
1212
13+ .. facet::
14+ :name: genre
15+ :values: tutorial
16+
1317On Windows Server systems, the ``netsh`` program provides
1418methods for managing the :guilabel:`Windows Firewall`. These firewall rules make it possible
1519for administrators to control what hosts can connect to the system,
@@ -209,16 +213,16 @@ servers, and the :binary:`mongos.exe` instances.
209213
210214.. include:: /includes/fact-deprecated-http-interface.rst
211215
212- Manage and Maintain * Windows Firewall* Configurations
213- -----------------------------------------------------
216+ Manage Windows Firewall Configurations
217+ --------------------------------------
214218
215219This section contains a number of basic operations for managing and
216220using ``netsh``. While you can use the GUI front ends to manage the
217221:guilabel:`Windows Firewall`, all core functionality is accessible is
218222accessible from ``netsh``.
219223
220- Delete all * Windows Firewall* Rules
221- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
224+ Delete Windows Firewall Rules for Default MongoDB Ports
225+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
222226
223227To delete the firewall rule allowing :binary:`mongod.exe` traffic:
224228
@@ -228,40 +232,43 @@ To delete the firewall rule allowing :binary:`mongod.exe` traffic:
228232
229233 netsh advfirewall firewall delete rule name="Open mongod shard port 27018" protocol=tcp localport=27018
230234
231- List All * Windows Firewall* Rules
232- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
235+ List All Windows Firewall Rules
236+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
233237
234238To return a list of all :guilabel:`Windows Firewall` rules:
235239
236240.. code-block:: bat
237241
238242 netsh advfirewall firewall show rule name=all
239243
240- Reset * Windows Firewall*
241- ~~~~~~~~~~~~~~~~~~~~~~~~
244+ Reset Windows Firewall
245+ ~~~~~~~~~~~~~~~~~~~~~~
242246
243247To reset the :guilabel:`Windows Firewall` rules:
244248
245249.. code-block:: bat
246250
247251 netsh advfirewall reset
248252
249- Backup and Restore * Windows Firewall* Rules
250- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
253+ Backup and Restore Windows Firewall Rules
254+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
251255
252- To simplify administration of larger collection of systems, you can export or
253- import firewall systems from different servers) rules very easily on Windows:
256+ To simplify administration of larger systems, you can export or import
257+ Windows Firewall rules.
254258
255- Export all firewall rules with the following command:
259+ - To export all Windows Firewall rules, run the following command:
256260
257- .. code-block:: bat
261+ .. code-block:: bat
258262
259- netsh advfirewall export "C:\temp\MongoDBfw.wfw"
263+ netsh advfirewall export "C:\temp\MongoDBfw.wfw"
260264
261- Replace ``"C:\temp\MongoDBfw.wfw"`` with a path of your choosing. You
262- can use a command in the following form to import a file created using
263- this operation:
265+ Replace ``"C:\temp\MongoDBfw.wfw"`` with a path of your choosing.
264266
265- .. code-block:: bat
267+ - To import Windows Firewall rules, run the following command:
268+
269+ .. code-block:: bat
270+
271+ netsh advfirewall import "C:\temp\MongoDBfw.wfw"
266272
267- netsh advfirewall import "C:\temp\MongoDBfw.wfw"
273+ Replace ``"C:\temp\MongoDBfw.wfw"`` with the path to the file that
274+ contains your Windows Firewall rules.
0 commit comments