您好,登錄后才能下訂單哦!
位于注冊(cè)表:
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\SharedAccess\Parameters\FirewallPolicy\FirewallRules]
rem 恢復(fù)防火墻到默認(rèn)值
netsh advfirewall reset
rem 設(shè)置變量offices_***與internal_servers
set offices_***=203.208.46.200/32,119.75.217.56/32,131.253.13.32/32
set internal_servers=192.168.0.0/24
rem 開放端口3389到offices_***
rem netsh advfirewall firewall add rule name="自定義規(guī)則_port3389_from_offices_***" dir=in protocol=tcp localport=3389 remoteip=%offices_***% action=allow
rem 建立對(duì)internal_servers之間的相互信任
netsh advfirewall firewall add rule name="自定義規(guī)則_trust_all_internal_servers" dir=in remoteip=%internal_servers% action=allow
rem 開放端口80到所有地址
netsh advfirewall firewall add rule name="自定義規(guī)則_port80_from_anywhere" dir=in protocol=tcp localport=80 action=allow
rem 開放端口60000到所有地址
netsh advfirewall firewall add rule name="自定義規(guī)則_port60000_from_anywhere" dir=in protocol=tcp localport=60000 action=allow
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。