PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : بستن پورت از كامند



mr.cback
November 25th, 2010, 21:15
سلام من تو Nat/Firewall يه lan گذاشتم و ميخام
Inbound Filter و OutBound ّFilter براش تعريف كنم و چند تا پورت رو برا كاربرا ببندم

اما نميخوام visual كار كنم و ميخام با command از cmd يا هر چيزي بشه اون هارو اد كنم تو ليستش


راهي هست؟؟؟

Online24
November 25th, 2010, 22:57
netsh firewall delete portopening protocol = TCP|UDP|ALL port = portnumber

برای مثال بستن پورت شماره 445 با پروتکل TCP


netsh firewall delete portopening protocol = TCP port = 445

جزئیات و مثال های Command




Used to delete an existing port-based exception.

delete portopening
[ protocol = ] TCP|UDP|ALL
[ port = ] 1-65535
[ [ profile = ] CURRENT|DOMAIN|STANDARD|ALL
[ interface = ] name ]
Deletes firewall port configuration.
Parameters:
protocol - Port protocol.
TCP - Transmission Control Protocol (TCP).
UDP - User Datagram Protocol (UDP).
ALL - All protocols.
port - Port number.
profile - Configuration profile (optional).
CURRENT - Current profile (default).
DOMAIN - Domain profile.
STANDARD - Standard profile.
ALL - All profiles.
interface - Interface name (optional).
Remarks: 'profile' and 'interface' may not
be specified together


Examples:
delete portopening TCP 80
delete portopening UDP 500
delete portopening protocol = TCP port = 80
delete portopening protocol = UDP port = 500

mr.cback
November 25th, 2010, 23:29
از فایروال میشه این کارو کرد

اما متاسفانه رو سرور firewall stop هست تا کاربران بتونن به سرور وصل شن




بازم ممنون از راهنمایی :X