Sida loo xannibo IP ama mareegaha iyadoo la adeegsanayo PowerShell gudaha Windows 10

PowerShell waxay la socotaa module Netsecurity kaas oo kuu ogolaanaya inaad habayso Firewall-ka Windows( configure the Windows Firewall) . Waxaad isticmaali kartaa shaqada - New-NetFirewallRule - gudaha Netsecurity si aad u xannibto IP ama degel adoo isticmaalaya PowerShell gudaha Windows . Tilmaamku wuxuu kuu ogolaanayaa inaad abuurto xeer cusub oo soo galaya ama ka baxsan oo ku dara xeerka kombuyuutarka bartilmaameedka ah.

Jooji IP-ga ama Mareegta adoo isticmaalaya PowerShell

Jooji IP-ga(Block IP) ama Mareegta(Website) adoo isticmaalaya PowerShell

Iyadoo xannibaadda kala duwanaanta IP ay si fiican u shaqeyso, xannibaadda degel ama domain waa dhib badan. Taasi waa sababta oo ah waxaa jiri kara dhowr IP oo ku xiran domainka, iyo inta aad ka hortagi karto, xaliyaha DNS wuxuu ogaan karaa IP ka duwan mar kasta oo uu weydiiyo. Sidoo kale, mararka qaarkood, isla IP-ga waxaa isticmaali kara adeegyada la xidhiidha, iyo xannibaadda IP-ga waxay la macno tahay in sidoo kale la joojiyo adeegyada kale.

  1. Xiro(Block) ciwaanada IP-ga maxaliga ah ama interneedka
  2. Jooji mareegaha ama magacyada domainka

Waxaad u baahan doontaa mudnaanta maamulka si aad kuwaan u fuliso.

1] Jooji IP(Block IP) ama Range adoo isticmaalaya PowerShell

Isticmaalka amarkan, waxaad isticmaali kartaa hal ciwaan IP ah ama cinwaanno IP ah oo kala duwan. Ku fuli amarka soo socda PowerShell.

New-NetFirewallRule -DisplayName "Block XYZ.com IP address" -Direction Outbound –LocalPort Any -Protocol TCP -Action Block -RemoteAddress 146.185.220.0/23

Waxaad ku bedeli kartaa Block XYZ.com IP ciwaanka wax kasta oo aad xasuusan karto ama kuu fududaynaya inaad fahamto mar kasta oo aad dib u eegto. Ciwaanka IP-ga ee lagu sheegay dhamaadka doorashada RemoteAddress waa waxa la xannibi doono. Shabakad kasta ama adeeg kasta oo taas ku xalliya waa la xannibi doonaa. Waxaad ku beddeli kartaa ikhtiyaarka RemoteAddress doorashada (RemoteAddress)LocalAddress haddii IP-gu yahay ciwaanka maxalliga ah ee IP-ga.

Ku xidh Ciwaanka IP-ga ee Daaqadaha App-ka Firewall

Marka dilku dhamaado, waa inaad heshaa fariin xaalad ah sida ” Xeerka si guul leh ayaa dukaanka looga soo saaray. (65536)”. Fur Windows Firewall oo hubi haddii gelitaanka la heli karo. Marka la xaqiijiyo, waa inaad awood u yeelatid inaad wax badan ku darto adoo isticmaalaya PowerShell .

2] Jooji Website(Block Website) ama Domain addoo isticmaalaya PowerShell

Xiro Domain-ka Mareegta adigoo isticmaalaya PowerShell

Mar haddii shaqadu aysan taageerin xannibaadda URL , waxaan haynaa laba doorasho. Marka hore(First) waa in la waydiiyo dhammaan IP-ga suurtagalka ah ee goobtaas, oo xannibi iyaga. Midda labaad waa in la helo tirada rasmiga ah ee IP-ga ee la yaqaan oo la xannibo. Kuwa dambe waxay leeyihiin fursad hoose oo ah inay si lama filaan ah u xannibaan adeegyada kale marka loo eego kuwii hore. Taasi waxay tidhi, haddii xannibaadda domain ay lagama maarmaan tahay, waxaad had iyo jeer isticmaali kartaa software kale si aad u xannibto.

Resolve-DnsName "facebook.com"

Ogow cinwaanka IP-ga oo aan ku isticmaali doono habka labaad

New-NetFirewallRule -DisplayName "Block XYZ.com IP address" -Direction Outbound –LocalPort Any -Protocol TCP -Action Block -RemoteAddress 146.185.220.0/23

Markii aan tan ku isticmaalay YouTube , ma shaqeynin inkastoo IP-ga tooska ah la xannibay. Markii aan isticmaalay Facebook -ga , way shaqeysay. Markaa haddii website-ka lagu xallin karo iyadoo la adeegsanayo cinwaanno badan oo IP ah, markaa habkani ma shaqeyn doono.

Isticmaalka amarrada PowerShell waa mid toos ah. (PowerShell)Haddii aad waligaa isticmaashay deg degga amarka, way u fiican tahay taas; Waxaan rajeynayaa inaad awooday inaad xannibto IP ama degel adoo isticmaalaya PowerShell gudaha Windows si guul leh. Mar kasta(Anytime) oo aad rabto in aad ka saarto, waxaad ka samayn kartaa Windows Firewall ama waxaad isticmaali kartaa ka saar-NetFirewallRule(Remove-NetFirewallRule)  amarka.



About the author

Anigu waxaan ahay windows 10/11/10 xirfadle taageero macaamiisha leh in ka badan 5 sano oo waayo-aragnimo ah. Waxaan sidoo kale ahaa ciyaaryahan aad u firfircoon dhowrkii sano ee la soo dhaafay waxaanan xiiso xoog leh u hayaa xbox One. Diiradayda hadda waa ka caawinta macaamiisha dhibaatooyinka ay ku qabaan nidaamyada Windows 10 ama Windows 11, marar badan iyada oo la adeegsanayo aaladaha adeegga macaamiisha, sida taageerada xarunta wacitaanka iyo caawinta khadka.



Related posts