LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   secure communication between web browser and Proxy Server in linux (https://www.linuxquestions.org/questions/programming-9/secure-communication-between-web-browser-and-proxy-server-in-linux-813984/)

humaira 06-14-2010 01:01 AM

secure communication between web browser and Proxy Server in linux
 
I am trying to design/implement a web browser and proxy server...and make secure communication between web browser and proxy server by using some crptographic technique in LINUX and I don't know how to start or how to design/implement it. Can somebody give me some tips on how to do it and also some codes? Can someone help out?

mazinoz 06-15-2010 08:38 AM

I'm not clear on what you are asking but here goes. If you have set up a proxy server using say squid /etc/squid.conf, all you have to do is setup users machines to have their web browser use a proxy server. These settings differ depending on what browser you use, so just poke around in the settings till you find anything relating to proxy server and enter the IP address of your proxy server, eg: 192.168.1.1 say. For example in Firefox it is Tools/Options/Advanced on top menu. You should also be able to set encryption etc on tabs listed there also. Hope this helps.

halvy 06-27-2010 05:06 AM

humaira, have you had any success?

Squid does not in itself have secure connections (although you can 'authenticate') each session.

It's sounds like you may be able to simply run a ssh server and connect using it.

Lettuce know :)

mazinoz 06-29-2010 07:44 PM

"make secure communication between web browser and proxy server by using some crptographic technique in LINUX"

Due to the ambiguity of your post, could you please clarify EXACTLY what you are trying to do?
Is it that you are attempting a remote connection to a proxy server using a web browser interface OR WHAT?

humaira 07-09-2010 08:56 AM

i have made a proxy server...
i set the port number and ip address in the WEB BROWSER (like IE or Mozilla Firefox) proxy setting for creating connection with the proxy server...and i also set the port number in proxy server which i have set in WEB BROWSER....both are connected and proxy server give response to the WEB BROWSER...i have a list of users/client on my Proxy Server,where i can delete and add new users(with ip address and name)...i can also block some sites,like if proxy server restrict some sites from the client like yahoo.com...my server add those sites in block list...then user/client can't access those sites which will be in my block list of proxy server...
But now the problem is that,i have to apply cryptographic techniques between client(web browser) and proxy server because proxy server can be on WAN...thats why when the request will be in encrypted form,no intruder can attack on sensitive data...but we have no control on web browser so where and how i will encrypt request that will be from Browser to proxy server...if it will be in encrypted form,when it will reach at proxy server,proxy server will decrypt and send to the internet...then request will back n fulfill the user request.

but how i implement this...give me some suggestions...

waiting for some solution...

Regards

mazinoz 07-10-2010 08:03 PM

"But now the problem is that,i have to apply cryptographic techniques between client(web browser) and proxy server because proxy server can be on WAN.."

You are worried that a request for a html webpage will be intercepted between the browser and proxy server? I'm afraid, given the restrictions you already have done on your (presumably squid) proxy server, I don't understand why you would need to do this. If only authorised users can connect to the proxy server, why can't you tell them for security reasons to set their browser the way that you want? Why does it being a WAN as opposed to a LAN matter? I'm sorry but this is beyond me, maybe other readers can help?


All times are GMT -5. The time now is 04:32 AM.