On 9/16/06, Pardeep Sharma <[EMAIL PROTECTED]> wrote: > Hi Friends How r u > Can anybody tell me about my one more problem about SQUID > As we know that Squid(proxy) server listen on Port# 3128. So let us suppose > it accept a request from a client on port 3128 for any URL.But Firstly it > will check own Cache if that URL related link does not exist in cache then it > will forward the request to web server over internet > Now my problem is that when Proxy further forward the request of client then > proxy from which port using for request to webserver port 80 over internet.
It would use any free port above 1024. Randomly. > For Example:- > # iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT > --to-port 3128 This is the concept of transaparent proxy. All requests that come to your squid server from your internal clients are checked. If their destination port is 80, then the the request is redirected to port 3128, which is nothing but squid. > How web server send back response on Port 80.(-dport 80) Webserver doesn't send back response to port 80. Webserver listens on port 80. It sends back request using any port above 1024. Randomly. > Or if server request further to another server for any purpose then do it use > same port as listening port for client This is the concept of cache hierarchy. It uses ICP port. > But in case of client it first open unpriviliged port greater than 1024 then > request from that port to server. > So in case of server what would happen,Actually i m confusing over it For a server: Listen on popular port (eg port 80 for webserver) For a client: Open an unused port above 1024 (eg 5555) and communicate with the server on server's popular port (eg port 80). > Please reply me as soon as possible Why? > Regards: > Pardeep Regards, NMK. ***Archives: http://groups.yahoo.com/group/linuxvadapav/messages ***Group Usage Guidelines (Please Read): http://groups.yahoo.com/group/linuxvadapav/files/mailing_rules Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/linuxvadapav/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/linuxvadapav/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
