OpenSecurity/bin/firewall-install.bat
author Oliver Maurhart <oliver.maurhart@ait.ac.at>
Thu, 30 Oct 2014 12:58:37 +0100
changeset 242 e3ae01d2898a
parent 241 6f73753677aa
child 243 5e4303a2a3be
permissions -rw-r--r--
extended firewall ruleset
oliver@241
     1
@echo off
oliver@241
     2
echo 'adding firewall rules for OpenSecurity...'
oliver@241
     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
oliver@242
     4
netsh advfirewall firewall add rule name="Osec python" program="%CD%\python27\python.exe" dir=in action=allow profile=private localip=any remoteip=any localport=any remoteport=any protocol=tcp
oliver@242
     5
netsh advfirewall firewall add rule name="Osec python" program="%CD%\python27\python.exe" dir=in action=allow profile=private localip=any remoteip=any localport=any remoteport=any protocol=udp
oliver@242
     6
netsh advfirewall firewall add rule name="Osec python" program="%CD%\python27\python.exe" dir=out action=allow profile=private localip=any remoteip=any localport=any remoteport=any protocol=tcp
oliver@242
     7
netsh advfirewall firewall add rule name="Osec python" program="%CD%\python27\python.exe" dir=out action=allow profile=private localip=any remoteip=any localport=any remoteport=any protocol=udp
oliver@242
     8
netsh advfirewall firewall add rule name="Osec pythonw" program="%CD%\python27\pythonw.exe" dir=in action=allow profile=private localip=any remoteip=any localport=any remoteport=any protocol=tcp
oliver@242
     9
netsh advfirewall firewall add rule name="Osec pythonw" program="%CD%\python27\pythonw.exe" dir=in action=allow profile=private localip=any remoteip=any localport=any remoteport=any protocol=udp
oliver@242
    10
netsh advfirewall firewall add rule name="Osec pythonw" program="%CD%\python27\pythonw.exe" dir=out action=allow profile=private localip=any remoteip=any localport=any remoteport=any protocol=tcp
oliver@242
    11
netsh advfirewall firewall add rule name="Osec pythonw" program="%CD%\python27\pythonw.exe" dir=out action=allow profile=private localip=any remoteip=any localport=any remoteport=any protocol=udp
oliver@242
    12
netsh advfirewall firewall add rule name="Osec xwin" program="%CD%\cygwin64\bin\XWin.exe" dir=in action=allow profile=private localip=any remoteip=any localport=any remoteport=any protocol=tcp
oliver@242
    13
netsh advfirewall firewall add rule name="Osec xwin" program="%CD%\cygwin64\bin\XWin.exe" dir=in action=allow profile=private localip=any remoteip=any localport=any remoteport=any protocol=udp
oliver@242
    14
netsh advfirewall firewall add rule name="Osec xwin" program="%CD%\cygwin64\bin\XWin.exe" dir=out action=allow profile=private localip=any remoteip=any localport=any remoteport=any protocol=tcp
oliver@242
    15
netsh advfirewall firewall add rule name="Osec xwin" program="%CD%\cygwin64\bin\XWin.exe" dir=out action=allow profile=private localip=any remoteip=any localport=any remoteport=any protocol=udp
oliver@241
    16