I am designing an application Firewall.For that i have to develop a Htpp Proxy Server.How can i capture all the network traffic with the proxy server and block the packets from going to the server.Is there any java package to do this.Please help me.
posted 11 years ago
Assuming this your firewall setup is to have the firewall machine between the two networks, you need to set up a ServerSocket facing the outside world (the side making HTTP requests) on port 80 and listen for connections.
When you get a connection, you open a socket to the real web server on the other network niterface (unless you wish to block it). If the firewall doesn't physically separate the two networks, then HTTP clients must be configured to use your proxy server, or they'll just bypass it.