This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in designing Http Proxy server

 
RaghuKumar Kasa
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
David Harkness
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic