LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-03-2005, 12:38 AM   #1
coolguy_iiit
Member
 
Registered: Aug 2004
Posts: 51

Rep: Reputation: 15
Problem with configuring squid....


Hi all,
I need some help configuring squid.we have a server and made a proxy server by installing squid.I gave http access to some clients and clients are able to access web but the problem is if i want to connect to quake servers online from clients..its not working.

first i created a acl list and allowed http_access for that list.

how do i enable access to other ports also from clients...?

btw there is no firewall installed at server and i am able to connect to quake from server...

waiting for ur reply...

bye
 
Old 09-03-2005, 08:44 AM   #2
n3tw0rk
Member
 
Registered: Sep 2003
Location: Rawalpindi, Pakistan
Distribution: Slackware
Posts: 86

Rep: Reputation: 15
Access to the Quake servers doesn't require HTTP access. I don't think Quake uses HTTP for communicating with the servers during a multplayer game session. Anyways you first need to find out the ports for Quake servers i.e. the port(s) on which the servers run. You can use a packet sniffer such as tcpdump/ethereal to find that out. After that you need to enable routing on your box by doing

echo '1' > /proc/sys/net/ipv4/ip_forward

This would enable IP forwarding on your box. You should then use iptables to define which packets should be routed. Once you have found out the ports for Quake servers, lets say,for example it is 6867 then you should something like the following

iptables -I FORWARD -p tcp -j DROP
iptables -I FORWARD -p tcp --dport 6867 -j ACCEPT

This shall do it.

I hope it helps!
 
Old 09-05-2005, 06:55 AM   #3
gurusmaran
Member
 
Registered: Apr 2001
Location: India
Distribution: CentOS 4.1
Posts: 35

Rep: Reputation: 15
Find out the ports for Quake server. Once you do so, add a few lines in the squid.conf file to allow/deny ports. Given below is the portion of my squid.conf file that blocks ports:

=====
acl Safe_ports port 80 443 1025-65535
http_access allow Safe_ports
http_access deny !Safe_ports
=====

Add this somewhere at the beginning of your ACLs. Add the reqd. ports in the first line.

This will also help if you want to block specific ports.

Hope this helps.

--
Guru
 
  


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
Configuring squid as a cache only usmanmehmood Linux - Networking 1 10-03-2005 03:58 PM
configuring squid Faizan Linux - Networking 1 05-05-2005 12:12 PM
Configuring Squid phatboyz Linux - Software 2 02-18-2004 07:39 AM
configuring squid santosh Linux - Networking 5 07-31-2002 10:22 AM
Help me in Configuring Squid ACL tina_gora Linux - Networking 0 05-22-2001 02:31 AM

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

All times are GMT -5. The time now is 03:56 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