View Full Version : Create A Custom Windows Firewall
SyntaXmasteR
09-13-2006, 07:07 PM
I read an article in this months issue of Windows IT Pro (http://www.windowsitpro.com/Article/ArticleID/*2767/*2767.html?Ad=*) about using netsh and IPSec to control packets.
I then went on to create a "build your own firewall" program for the average windows user. The script allows you to control the flow of packets (incoming and outgoing). The current firewall that is built into windows only blocks incoming packets. In Vista you will be able to control both but why wait... Like I said the program is very easy to use:
*. Create A Policy (automatic)
2. Create firewall rules
Even if you totally screw things up... you have the option to "Delete Policy". This will delete all traces of everything you created.
Because I will be submitting the script to Windows IT Pro for publication I would like to ask for you help to find a .bat to .exe converter.... Nooo not the freeware that leaves a message at the top of the file when you run it. A clean, .bat to .exe converter. I will post the script after my submission gets either laughed at or published...
~SyntaX
Ezekiel
09-14-2006, 07:26 AM
I read an article in this months issue of Windows IT Pro (http://www.windowsitpro.com/Article/ArticleID/*2767/*2767.html?Ad=*) about using netsh and IPSec to control packets.
I then went on to create a "build your own firewall" program for the average windows user. The script allows you to control the flow of packets (incoming and outgoing). The current firewall that is built into windows only blocks incoming packets. In Vista you will be able to control both but why wait... Like I said the program is very easy to use:
*. Create A Policy (automatic)
2. Create firewall rules
Even if you totally screw things up... you have the option to "Delete Policy". This will delete all traces of everything you created.
Because I will be submitting the script to Windows IT Pro for publication I would like to ask for you help to find a .bat to .exe converter.... Nooo not the freeware that leaves a message at the top of the file when you run it. A clean, .bat to .exe converter. I will post the script after my submission gets either laughed at or published...
~SyntaX
This thread seems to offer a batch file to exe converter:
http://www.rohitab.com/discuss/lofiversion/index.php/t*062*.html
Also if you wanted an executable, you could simply make a c++ program with each batch command entered into the system() function.
SyntaXmasteR
09-14-2006, 03:02 PM
The link on that forum is 404 but here is the program compiled with a shareware version.
Please take a look and let me know any recommendations before I submit it.
Custom FireWall (http://www.boninroad.com/syntax******/firewall.exe)
The options may be confusing:
*. IP = An actual IP address
2. me = The actual words me must be entered
*. any= The actual words any must be entered
4. Port# = Enter 0 for all ports, otherwise enter the port#
NOTE: * file and * directory are created on your computer once you start creating firewall rules. This is only to keep ***** of the current rules so you can easily manipulate your firewall. The directory and file will be located here- %userprofile%\my documents\firewall\rules.txt The file and directory are both deleted once you delete the policy.
SyntaXmasteR
09-15-2006, 02:14 PM
*2*456 - All your threads are now deleted. Stay on topic. The file is clean. If you need someone to preach to join a church. I would like opinions on the program. If anyone is worried about it containing a virus/trojan/spyware please scan the file using a reputable virus scanner.
SyntaXmasteR
09-15-2006, 04:38 PM
Updated program to prevent user error. You can also type "MENU" at any time to return to menu screen.
toast
09-15-2006, 04:55 PM
Well, I tried it.
And...
.
.
.
.
.
I like it.
More opinions to come...
SyntaXmasteR
09-15-2006, 06:38 PM
What options did you have in mind?
toast
09-15-2006, 09:36 PM
Well, is there some way to make a er... like a list of what has been entered? To see what I've done so far. Kinda like output...
But I like it, its easy to use.
Toast
SyntaXmasteR
09-16-2006, 05:25 PM
Are you s***esting a "View Current Firewall Rules" option? That would be nice lol... thats why i always ask for s***estions, sometimes little IMPORTANT things slip by.
toast
09-16-2006, 09:01 PM
No problemo.
:)
SyntaXmasteR
09-18-2006, 01:55 PM
Ok, you can view your current firewall rules now :cool: - Custom FireWall (boninroad.com/syntax******/firewall.exe)
any more s***estions...
toast
09-18-2006, 06:07 PM
Everytime I create a new rule, it just exits. Wtf?!
I have tried it three times...
But number 5, is a good option. But I cant go any farther till it stops closing.
Ill figure it out. Maybe the problem is between the key***rd and the c****...
Toast
SyntaXmasteR
09-18-2006, 10:23 PM
what is your input? The only reason it should exit is if you input a NON inputtable (new word) value.
I figured I should also mention this... yet another OOps
This program will only run on:
Windows Server 200*
Windows XP 64-bit
toast
09-19-2006, 05:08 PM
I create a new firewall rule, and the program just quits.
Im using XP. So its not the os
Why isnt anyone else trying your program out?!
~T
SyntaXmasteR
09-19-2006, 05:59 PM
Make sure you have the latest download of program. There is nothing in the code that would make it exit after you enter the data.
Powered by vBulletin® Version 4.1.8 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.