Kaelin Posted January 6, 2010 Share Posted January 6, 2010 Hello! I've been thinking and trying to make a simple firewall app for my server but I couldn't guess where to start. If this is even possible. I would like to make a small application that will simply listen to the port 26000. And every time data comes in through this port it would log the IP into a field in the same window. Is this part possible? I worry that if AutoIt is listening it will take the packet and dump it before it reaches its destination. Also, is it possible for AutoIt to check the data for a specific packet and would only allow it if it contained the correct array of bytes. Kind of like a firewall. I will keep looking into the commands and try to work out a solution, but it would be nice for some opinions from others who have possibly done this before Any help is much appreciated! Hope you all had a great new year Link to comment Share on other sites More sharing options...
Richard Robertson Posted January 6, 2010 Share Posted January 6, 2010 Only one socket can listen on a given port and IP address at a time. Your application would fail to begin listening if the other application were already running. Link to comment Share on other sites More sharing options...
Kaelin Posted January 6, 2010 Author Share Posted January 6, 2010 Ah I see... Understandable. This might sound odd but, would it be possible for my application to listen to port 27000 and then send that connection to port 26000 if conditions are met? Probably not I suppose. Link to comment Share on other sites More sharing options...
Richard Robertson Posted January 6, 2010 Share Posted January 6, 2010 (edited) Yes. You would need one socket to listen, and for every "valid" connection, you make a new outgoing socket to the other application. You would need to read all incoming data and copy it to the outgoing socket. Edited January 6, 2010 by Richard Robertson Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now