|
REM To apply the voipswitch rules from script you need to delete the "GOTO skip" command from script file. PAUSE
GOTO skip
REM VoipSwitch
REM TCP,UDP 1719-1720 FOR /L %%I IN (1719,1,1720) DO netsh firewall add portopening TCP %%I "Port 1719-20"%%I FOR /L %%I IN (1719,1,1720) DO netsh firewall add portopening UDP %%I "Port 1719-20"%%I
REM TCP,UDP 5060 netsh firewall add portopening protocol = ALL port = 5060 name = 5060 mode = ENABLE
REM 1800-1804 TCP FOR /L %%I IN (1800,1,1804) DO netsh firewall add portopening TCP %%I "Port-"%%I
REM 1803,1805 UDP netsh firewall add portopening protocol = UDP port = 1803 name = Port-1803-UDP mode = ENABLE netsh firewall add portopening protocol = UDP port = 1805 name = Port-1805-UDP mode = ENABLE
REM 6000-20000 UDP FOR /L %%I IN (6000,1,20000) DO netsh firewall add portopening UDP %%I "Ports UDP-"%%I
:skip
REM WebDialer,RTP 3000-3029
FOR /L %%I IN (3000,1,3029) DO netsh firewall add portopening UDP %%I "WebDialer -"%%I
REM WebDialer UDP-SIP 5070-5099 FOR /L %%I IN (5070,1,5099) DO netsh firewall add portopening UDP %%I "WebDialer sip-"%%I
REM VoipswitchWebs TCP 1935,1936,1937,1938,1939,5222,5229,7070,7777,9090,9091
netsh firewall add portopening protocol = TCP port = 1935 name = Port-1935-TCP mode = ENABLE netsh firewall add portopening protocol = TCP port = 1936 name = Port-1936-TCP mode = ENABLE netsh firewall add portopening protocol = TCP port = 1937 name = Port-1937-TCP mode = ENABLE netsh firewall add portopening protocol = TCP port = 1938 name = Port-1938-TCP mode = ENABLE netsh firewall add portopening protocol = TCP port = 1939 name = Port-1939-TCP mode = ENABLE netsh firewall add portopening protocol = TCP port = 5222 name = Port-5222-TCP mode = ENABLE netsh firewall add portopening protocol = TCP port = 5229 name = Port-5229-TCP mode = ENABLE netsh firewall add portopening protocol = TCP port = 7070 name = Port-7070-TCP mode = ENABLE netsh firewall add portopening protocol = TCP port = 7777 name = Port-7777-TCP mode = ENABLE netsh firewall add portopening protocol = TCP port = 9090 name = Port-9090-TCP mode = ENABLE netsh firewall add portopening protocol = TCP port = 9091 name = Port-9091-TCp mode = ENABLE
|