Network_Commands
Network_Commands
1. Command Prompt:
● Press Windows Key + R, type cmd, and press Enter.
2. PowerShell:
● Press Windows Key + X and select Windows PowerShell (Admin) or
1 | Page
8. Get-NetIPAddress
Test-NetConnection: Test network connectivity (replaces ping and
tracert in some scenarios).
2 | Page
Blocking FTP Traffic (Port 21): Outbound Rule
4. Specify Port:
• Choose TCP.
• Enter 21 in the Specific local ports field.
• Click Next.
6. Specify Profile:
• Select the network profiles where this rule should apply (Domain,
Private, Public).
• Click Next.
3 | Page
Testing the Rules
These steps should help you create and test firewall rules for allowing
HTTP traffic and blocking FTP traffic in Windows.
4 | Page
2. Configure Snort:
● Open the Snort configuration file (usually located in
C:\Snort\etc\snort.conf).
Customize the configuration as needed.
3. Run Snort:
● Open Command Prompt as Administrator.
Start Snort:
snort -A console -q -c ..\etc\snort.conf -i 1
● Replace -i 1 with the appropriate network interface index.
By following these steps, you can configure and use network security
tools and commands effectively on a Windows system.
5 | Page