473,387 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Firewall

would like to make firewall that checks all outgoing
traffic from my computer. This firewall should ask me to
allow or deny all outgoing traffic. Is it possible to make
such firewall using C# ?
If yes, can you give me some starting point where should I
go in .NET Framework (namespaces, or MSDN resources, ...)
to get started.
Thank you.
Nov 15 '05 #1
3 6745
Yes, that is possible. You'll have to get very comfortable with async
sockets.

This is no small undertaking you're talking about, but it's certainly
doable in any language. It would be a good academic excercise to do in
C# or Java.

Both have strong sockets support.

"Bohus" <Bo****@centrum.sk> wrote in message news:<02****************************@phx.gbl>...
would like to make firewall that checks all outgoing
traffic from my computer. This firewall should ask me to
allow or deny all outgoing traffic. Is it possible to make
such firewall using C# ?
If yes, can you give me some starting point where should I
go in .NET Framework (namespaces, or MSDN resources, ...)
to get started.
Thank you.

Nov 15 '05 #2
Is this really possible to be done on one machine without using an NDIS
driver? Sorry to ask but I was interested in writing something liek this a
while ago and it seemed to be impossible to me. Eventually i ended up using
a whole pc as a firewall with two network cards that I bridged using my own
NAT which checked traffic as it did it.

Am i missing something really stupid lol? :)

Kieran

"Chris Hornberger" <ch***@chornbe.com> wrote in message
news:53**************************@posting.google.c om...
Yes, that is possible. You'll have to get very comfortable with async
sockets.

This is no small undertaking you're talking about, but it's certainly
doable in any language. It would be a good academic excercise to do in
C# or Java.

Both have strong sockets support.

"Bohus" <Bo****@centrum.sk> wrote in message

news:<02****************************@phx.gbl>...
would like to make firewall that checks all outgoing
traffic from my computer. This firewall should ask me to
allow or deny all outgoing traffic. Is it possible to make
such firewall using C# ?
If yes, can you give me some starting point where should I
go in .NET Framework (namespaces, or MSDN resources, ...)
to get started.
Thank you.

Nov 15 '05 #3
Just for fun?-)

Maybe it's easier to go to www.kerio.com and get one ready firewall for free
for private use.

http://www.kerio.com/kpf_home.html
http://www.kerio.com/kpf_download.html

It will take care of all your dreams that you described.

As for C# idea... All good firewalls should be loaded BEFORE all stuff from
your computer, eat as less memory as possible, catch everything at the
lowest level. Can you do that using C#? I'm not sure. You should load .NET
at least to start this elephant. And it will eat your pc's memory - full
ahead!

And the last - when I tried to download one well-known firewall, I don't
want to write from what company, 'cause everybody knows this company as well
as me - it was over 30 Mbytes (installation package), over 100 or maybe 200
COM+ objects inside, that have been included into system registry, etc. The
firewall from Kerio takes in 10 times less, and... no heavy metal. If you
want to use all your RAM for your firewall... you're welcome.

Dmitri.

"Bohus" <Bo****@centrum.sk> wrote in message
news:02****************************@phx.gbl...
would like to make firewall that checks all outgoing
traffic from my computer. This firewall should ask me to
allow or deny all outgoing traffic. Is it possible to make
such firewall using C# ?
If yes, can you give me some starting point where should I
go in .NET Framework (namespaces, or MSDN resources, ...)
to get started.
Thank you.

Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dean J. Garrett | last post by:
I have a site which offers documents (.doc, .pdf, etc.) for download. The user clicks on the link and is able to download the file or open it. What if the source location of the document is behind...
0
by: Ryan Smith | last post by:
Hi All I have an app and in that app i have a registration program that i wrote that will send the users registration data to the server and then receive a response code back from the server and...
2
by: Rajesh Kapur | last post by:
Hello, We use Informix and MySQL on linux/unix to drive our web application. SQL*Server is used only for backend enterprise applications within the firewall. I am trying to get the management to...
6
by: dstewart | last post by:
I have 2 Suse 9.1 boxes with similar configurations. I'm in the process of moving some PHP code from one server (192.168.0.100) to another (192.168.0.102). MySQL is running on each server, and...
1
by: Information | last post by:
Hi, I am doing a course project now for practive xml. I heard from somewhere that xml request can go through firewall. currently in our school there is a firewall which only can log on by vpn when...
2
by: Mahesh Devjibhai Dhola | last post by:
Can you please help me in my problem? I have a socket prog. application like http://www.codeproject.com/dotnet/csharpwhiteboard.asp My application is chat application like above architecture....
7
by: Randy Yates | last post by:
Is opening up port 5432 (R/W both directions) all that is required of a firewall in order to access a postgres database outside the firewall? -- % Randy Yates % "My Shangri-la...
1
by: Schalley Ben | last post by:
Hi First of all, this is my first post on a newsgroup so don't shoot me if I ask this in the wrong place. Here is the situation. I'm developing an asp.net application with access to a SQL...
1
by: rada.lambretha | last post by:
Configuring Linux as a Firewall * Making installation choices * Introducing iptables * Using iptables commands * Simplifying things with firewall GUIs * Adding proxy functionality As...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.