Tweets from pichat

PichatFollow my new user account @markseu
About 2 months, 3 weeks ago from Pichat (Pichat Software)

Tweets from 600infos

600infosI HAVE NYANED FOR 888.4 SECONDS! http://t.co/JQYOZebv via @nyannyancat
About 3 months, 3 weeks ago from 600infos (Wolf)

firewall.cmd for windows 7 and XP

firewall.cmd
@echo off
REM ##############################################
REM 
REM script firewall.cmd
REM  create rules for ms firewall
REM
REM
REM created by Mark Wolfgruber 14.12.2011
REM have a look to start.600infos.de
REM
REM ##############################################
 
:check_admin
  cls
  cacls "%SYSTEMROOT%\system32\config\system" || (
    echo need Adminrights!
    goto end
  )
  cls
 
 
echo.%date% %time% *** Start script %~nx0% ***
echo.creating Firewall rules ...
 
:define_APP
  set _appName=pichat
  set _appPort=9009
 
:call_functions
 
  rem         action       direction  protocol  localport     remoteport
  rem addrule [allow/deny] [in/out]   [udp/tcp] [1-65535/any] [1-65535/any]
  rem 
 
  call :addrule allow out tcp any %_appPort% 
  call :addrule allow out udp any %_appPort% 
  call :addrule allow in tcp %_appPort% any
  call :addrule allow in udp %_appPort% any 
 
 
goto end
 
::functions
:addrule
 
  echo.|set /p x=erase rule if exist ... 
  netsh advfirewall firewall delete rule name=all dir=%~2 protocol=%~3 localport=%~4 remoteport=%~5 >nul 2>&1 && echo erased || echo ok
 
  echo.|set /p x=create rule for "%_appName%" %~1 %~2 %~3 local:%~4 destination:%~5 ...
  netsh advfirewall firewall add rule name="%_appName% %~3" dir=%~2 protocol=%~3 localport=%~4 remoteport=%~5 action=%~1
 
  exit /b
 
:end
 
echo.%date% %time% *** End script %~nx0% *** 
pause
 
echo.%date% %time% *** End script %~nx0% ***

Translate
Advertisment
  • more about Pichat on http://www.pichat.net
  • C4 - Tiny chat software
  • http://600infos.de
  •    Counter:  11683  Online:  5  Your IP:  38.107.179.237  DNS:  unknown  Page generated in    0.18 sec.