Page 1 of 1

How to make your own simple fiirewall!(VB.NET)

Posted: Thu Dec 23, 2010 3:20 am
by Proprogrammer
Hello coden'stuff this my tutorial i figured out how to make your own firewall without the extensive lines of code of making a real one. This code is even smaller than the one for adding controls for the windows firewall! Yes this is real and really easy, so easy infact that i am making this tutorial about this.

First before putting up the code for this, you will need to add a object. do the following-
Go to Project >Add Reference > Click COM > Press 'F' > Click FirewallCPL LUA 1.0 Type Library

Ok that is the firewall. there you made a firewall, lol!

after that import this -
Imports FwCplLua
after that you will need to add some code.

Automaticly when the program/form starts it will start the firewall, if you want to have programs allowed to get past the firewall put this.

firewall.AddProgram("Title", Path, 7, 0, PORTTCP, PORTUDP)

That is how you make a simple firewall, but of course you can add to it. Just figure it out yourself.

YEAH ANOTHER AWESOME TUTORIAL! lmao; lmao; lmao; lmao; lmao; lmao; lmao;

Re: How to make your own simple fiirewall!(VB.NET)

Posted: Thu Dec 23, 2010 8:07 pm
by mandai
I can't find that COM reference in my XP install. Though I can use NetCon 1.0 Type Library and NetFwTypeLib.

Re: How to make your own simple fiirewall!(VB.NET)

Posted: Thu Dec 23, 2010 10:15 pm
by Agust1337
Hello Proprogrammer,
Thats nice! But, the weird thing is i found exact same codes in my old files(im not judging im just sayin, but with different statements :P) Nice tho!

Re: How to make your own simple fiirewall!(VB.NET)

Posted: Thu Dec 23, 2010 10:25 pm
by zachman61
this is a good tutorial but not awesome because for one thing its unorganized

Re: How to make your own simple fiirewall!(VB.NET)

Posted: Thu Dec 23, 2010 11:22 pm
by Proprogrammer
thanks and i think this only works on vista and 7.