LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Squid and Port Rules (https://www.linuxquestions.org/questions/linux-networking-3/squid-and-port-rules-473171/)

maxsthecat 08-12-2006 01:54 AM

Squid and Port Rules
 
Hi All!

After spending some time googling and reading through the config file, I see that it's possible to change the default port squid listens on. (I'm a Squid noob, btw). However, is is possible to have squid listen on separate ports, and handle those ports in different manners?

For instance, say port 3128 would forward port 80 traffic, and port 22222 (made up number) would forward to port 33333 (made up number). I have an application that works over TCP/IP, but connects on a non-port 80 port, and I'd like to have squid be able to forward to both port 80, and my special port, depending on which port I initally connect to squid.

Is this even possible?

thanks for your time!!

-Maxsthecat

acid_kewpie 08-12-2006 02:40 AM

i'm not sure what you're actually after, do you even want squid for this? you can just use iptables to do a port forward, not something i'd use squid for. you certainly can listen on multiple interfaces: http://www.visolve.com/squid/squid24s1/network.php but quite how you want your end result to work, i don't follow...

and 22222 and 33333 are not made up numbers, 6x75[donkey]sd68f79g is a made up number!

maxsthecat 08-12-2006 08:45 AM

Chris,

I'm using SSH and Squid in conjuntion with Putty as a work around for the restriction at work. Simply put, I have an C/C++ app I made which resides on my linux machine (and makes things a lot nicer), running on a particular port... So I use Putty on the windows machine at work to SSH into the linux box, and squid to forward the port 80 traffic to the internet. What I'm trying to do is set up the linux box so that it can listen, either on the same port or a different one, and have the application traffic run on port "33333" (our made up, not so made up port ;)

Did that make sense, or am I still clear as mud? ;)

-Max


All times are GMT -5. The time now is 01:50 AM.