LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-24-2005, 02:34 AM   #1
efm
Member
 
Registered: Apr 2005
Location: indonesia
Distribution: suse 10
Posts: 101

Rep: Reputation: 15
open port in squid conf


hello,
i have a computer running squid. i need to connect other computer to the outside
computer through port 8888. how can i setup squid to allow this?
thank you
 
Old 10-24-2005, 04:41 AM   #2
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
You simply point your other computer to the IP address and the port number squid is running on when defining a proxy server. If you need to change the port squid actually runs on, within your squid.conf file right at the top, a line will define the squid port number. Change this value, then tell squid to re-read it's config file with
Code:
/usr/local/squid/sbin/squid -k reconfigure
adjusted to wherever your squid executable is.
 
Old 10-24-2005, 05:04 AM   #3
efm
Member
 
Registered: Apr 2005
Location: indonesia
Distribution: suse 10
Posts: 101

Original Poster
Rep: Reputation: 15
hi, thanks for the answer
i'm actually a newbie, so i don't quite understand
mmm...the computer A is running a program that needs to connect to port 8888 of other computer in
the internet, but there is a proxy server computer running squid that manages the connection between
that computer A and the internet.....so I wonder how to set the squid proxy.
should i use the acl method connect? or there is other way? and the port of my squid is 8080,
thank you
 
Old 10-24-2005, 05:50 AM   #4
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
Okay, think I understand now.

Is the machine running Squid the one connected directly to the Internet, or do you have a separate router? If you have a separate router, your program should just point straight to the IP address of the router and it will be handled automatically. If you Internet connection is direct from the Squid machine, you should just be able to set up NAT + masquerading using a couple of simple iptable rules to forward Internet traffic. Squid shouldn't have much to do with the connection to be honest, as whatever the application is should be able to go straight to the Internet without Squid interfering.
 
Old 10-25-2005, 11:03 PM   #5
efm
Member
 
Registered: Apr 2005
Location: indonesia
Distribution: suse 10
Posts: 101

Original Poster
Rep: Reputation: 15
Hi,
The machine running squid is the one connected to the Internet,
I don't really know how to set the NAT and the masquerading things...could you help me?
Thank you,
 
  


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
SQUID for blocking yahoo and msn [inc squid.conf] chrisfirestar Linux - Security 10 03-03-2008 08:33 AM
cannot SFTP to SUSE 9.2 box, port 22 open, can putty in though using same port. jgrady Linux - Networking 6 03-29-2005 08:44 AM
How to open ports 25 and port 110 on proxy server SQUID? fdavid Linux - Newbie 1 03-16-2005 11:31 PM
squid conf: squid failed when I type insert redirect_program /usr/bin/squidguard Niceman2005 Linux - Software 1 11-24-2004 02:29 PM
squid.conf... need help! paeng16 Linux - General 0 05-25-2004 10:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:08 PM.

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