OpenSecurity/bin/firewall-install.bat
author Bartha Mihai <mihai.bartha@ait.ac.at>
Tue, 13 Jan 2015 18:26:41 +0100
changeset 252 824ae4324f57
parent 242 e3ae01d2898a
permissions -rw-r--r--
changed settings restore functionality for the browser.
Needs addition of rsync on VM and setup
     1 @echo off
     2 echo 'adding firewall rules for OpenSecurity...'
     3 netsh advfirewall firewall add rule name="Osec Communication Rule" dir=in action=allow profile=any localip=192.168.56.1 remoteip=192.168.56.0/24 localport=8090 remoteport=any protocol=tcp
     4 netsh advfirewall firewall add rule name="Osec python" program="%CD%\python27\python.exe" dir=in action=allow profile=any localip=any remoteip=any localport=any remoteport=any protocol=tcp
     5 netsh advfirewall firewall add rule name="Osec python" program="%CD%\python27\python.exe" dir=in action=allow profile=any localip=any remoteip=any localport=any remoteport=any protocol=udp
     6 netsh advfirewall firewall add rule name="Osec python" program="%CD%\python27\python.exe" dir=out action=allow profile=any localip=any remoteip=any localport=any remoteport=any protocol=tcp
     7 netsh advfirewall firewall add rule name="Osec python" program="%CD%\python27\python.exe" dir=out action=allow profile=any localip=any remoteip=any localport=any remoteport=any protocol=udp
     8 netsh advfirewall firewall add rule name="Osec pythonw" program="%CD%\python27\pythonw.exe" dir=in action=allow profile=any localip=any remoteip=any localport=any remoteport=any protocol=tcp
     9 netsh advfirewall firewall add rule name="Osec pythonw" program="%CD%\python27\pythonw.exe" dir=in action=allow profile=any localip=any remoteip=any localport=any remoteport=any protocol=udp
    10 netsh advfirewall firewall add rule name="Osec pythonw" program="%CD%\python27\pythonw.exe" dir=out action=allow profile=any localip=any remoteip=any localport=any remoteport=any protocol=tcp
    11 netsh advfirewall firewall add rule name="Osec pythonw" program="%CD%\python27\pythonw.exe" dir=out action=allow profile=any localip=any remoteip=any localport=any remoteport=any protocol=udp
    12 netsh advfirewall firewall add rule name="Osec xwin" program="%CD%\cygwin64\bin\XWin.exe" dir=in action=allow profile=any localip=any remoteip=any localport=any remoteport=any protocol=tcp
    13 netsh advfirewall firewall add rule name="Osec xwin" program="%CD%\cygwin64\bin\XWin.exe" dir=in action=allow profile=any localip=any remoteip=any localport=any remoteport=any protocol=udp
    14 netsh advfirewall firewall add rule name="Osec xwin" program="%CD%\cygwin64\bin\XWin.exe" dir=out action=allow profile=any localip=any remoteip=any localport=any remoteport=any protocol=tcp
    15 netsh advfirewall firewall add rule name="Osec xwin" program="%CD%\cygwin64\bin\XWin.exe" dir=out action=allow profile=any localip=any remoteip=any localport=any remoteport=any protocol=udp
    16