LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 03: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, 05: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, 06: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, 06: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-26-2005, 12:03 AM   #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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09: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 09:44 AM
How to open ports 25 and port 110 on proxy server SQUID? fdavid Linux - Newbie 1 03-17-2005 12:31 AM
squid conf: squid failed when I type insert redirect_program /usr/bin/squidguard Niceman2005 Linux - Software 1 11-24-2004 03:29 PM
squid.conf... need help! paeng16 Linux - General 0 05-25-2004 11:39 PM


All times are GMT -5. The time now is 12:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration