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

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
5 posts Page 1 of 1
Contributors
User avatar
Proprogrammer
VIP - Donator
VIP - Donator
Posts: 415
Joined: Sun Oct 03, 2010 11:14 pm

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;
------------------------------------------------------------------------------
Proprogrammer, not just a Programmer.
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

I can't find that COM reference in my XP install. Though I can use NetCon 1.0 Type Library and NetFwTypeLib.
User avatar
Agust1337
Coding God
Coding God
Posts: 2456
Joined: Fri Feb 19, 2010 8:18 pm

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!
Top-notch casual Dating
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

this is a good tutorial but not awesome because for one thing its unorganized
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
Proprogrammer
VIP - Donator
VIP - Donator
Posts: 415
Joined: Sun Oct 03, 2010 11:14 pm

thanks and i think this only works on vista and 7.
------------------------------------------------------------------------------
Proprogrammer, not just a Programmer.
5 posts Page 1 of 1
Return to “Tutorials”