How would I block any type of connections to all Ip's but a certain few that i specify? How would I listen in and close connections?
Printable View
How would I block any type of connections to all Ip's but a certain few that i specify? How would I listen in and close connections?
Anyone? How would I close connections? Can I do it in cmd?
Set up your firewall to block everything, then use specify certain IP's not to block with the port number...if you dont know how to do that dont waste your time asking because it is very basic stuff here...and this has nothing to do with visual basic.
I'm asking how to create my own firewall in visual basic.. not how to use one....
Good luck
So in other words... it's pretty much not possible?
So is it possible in vb or not?
It's possible but it will take a lot of research...start googling things.
And it would be like transporting a pin from your front yard to your back yard using an ocean liner. The wrong tool for the job for more than one reason.
Take a look at this:
http://www.planetsourcecode.com/vb/s...38673&lngWId=1
I too am looking into this very sort of thing,
As you like to tell us noobs - ELABORATE -
WHY is it a pin transporting Ocean liner?
WHY is it the "wrong tool for the job?
It is possible, but would take much reaserch????
SO WHAT does one REASERCH???
Sorry guys, but your answers here have been as much help as "HELP" on the subject line
Oh, thanks Rob123, for the only REAL help on the page so far......
It's fruitless, but you can start buy opening all the available ports with your program then no one else can use the port. Your "Firewall" would just ignore the data that comes through the ports. When you want to allow data to pass thru the port you would then close the port.
But with VB, once you allow access to the port you can't disallow access. You would have to be able to take the redirected OS calls then ignore them. Like I said fruitless and not worth the time or the effort.
So i reality here, I have been wasting my time learning VB, and should in fact be studying a REAL programing language?
[Quote]
So i reality here, I have been wasting my time learning VB, and should in fact be studying a REAL programing language?
[Quote]
Dude, that is so below the belt it isn't funny...Learn C#.
OR
get a DLL or some freeware that'll help u do it.
"Ignorance is no replacement for patience"
No, what you have been wasting your time in is not researching what you needed to do and what it needed to be done with...
It's not VB's fault you did not do the research...
via randem
"But with VB, once you allow access to the port you can't disallow access. You would have to be able to take the redirected OS calls then ignore them."
cant you just close(kill) the port in use via some API? ive seen it done on psc i believe.
anyways, the case is not always "is it best", sometimes you code for the concept of "is it possible".
No, this would be a system function to intercept all port calls. You can't kill a port. You would have to ignore the traffic on it or hold it open so that no other program could use it.
No, you don't code for is it possible. It is always possible in one form or another. That is like asking someone to dig a trench using a spoon. Of course it is possible but a tremendous waste of time and effort.
if noone coded for possibility, im sure we wouldnt have multitasking availiable for us to use today..
and im sorry but you cannot compare a vb firewall with a spoon'd trench. thats immoral!
Sorry if my comment was "below the belt", but i have seen this question asked repeatedly through this forum, and none of the "askers" ever get an answer beyond "use aomeone elses app", or "reaserch it", well, I WOULD LOVE TO REASERCH IT, but as per my (and others) oridgional question, WHAT DO I REASERCH, WHERE DO I START, WHAT DO I NEED to KNOW ? ? & ? and more ???
(Quoting types)
"
Dude, that is so below the belt it isn't funny...Learn C#.
OR
get a DLL or some freeware that'll help u do it.
"
COOL, a start, but WHAT DLL, (there happen to be millions of .dll's out there) Im not asking for a specific name, but a pointer in the right direction would be nice, as far as i can tell (from what i have read through this forum concerning this topic) nobody out there has ANY CLUE, as to how one would go about doing this, and no one out there has the cahoonas to just say "we dont know, we havent been able to find out either",
Now dont get me wrong, I DO LIKE VB - It has servred me well (and ASM is such a "headfull")
but come on guys, instead of "use someone elses app", or "reaserch it" how about some honest help or pointers, or at the very least an honest "we dont know"
(though i know someone out there knows something about it, cause it's been hinted at... just no-ones giving any "soilid info" or "facts"
Ok, but it would take about as much effort...
Yes, possibility is one thing but feasable is quite another story.
Hey, I told you how to do it. It would be mostly intercepted system calls.
if you learn from example just goto
http://www.planet-source-code.com/vb...t.asp?lngWId=1
you'll find (mostly impartial) applications that range for about anything you wanna learn to make in vb
cool, THANKS randem, for a good starting point (at last). So i shall have to find out how to intercept system calls:)Quote:
Originally Posted by randem
@ Billy Conner - Thank you for the link, :thumb:
in general, just to clarify - I dont want to make a full firewall (i dont think), i simply want to be told "a connection has been requested" and have the chance to allow or deny the connection. Thats it. hhhmmmm.... intercept system calls, COOL thanx again randem