LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-12-2006, 01:54 AM   #1
maxsthecat
LQ Newbie
 
Registered: Jul 2006
Posts: 4

Rep: Reputation: 0
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
 
Old 08-12-2006, 02:40 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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!
 
Old 08-12-2006, 08:45 AM   #3
maxsthecat
LQ Newbie
 
Registered: Jul 2006
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up router with IP based or TCP/UDP port rules raakjoer Linux - Networking 1 10-24-2005 08:51 AM
ftp to special port when iptable rules activated ! nuwanguy Linux - Security 7 09-27-2004 05:58 AM
DansGuardian, Squid, and Firewall rules jwgeurk Linux - Networking 7 06-18-2004 02:26 AM
Iptable-rules block port 80 goldenmag Linux - Security 3 09-05-2003 06:56 PM
Need basic routing rules + a little port forwarding. Pcghost Linux - Networking 1 03-08-2003 11:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration