Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Security > Securing Open relays in squid

Forgot Password?
 Linux Security   Discussion about keeping your machines secure, and the crackers out.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 08-15-2005   #1 (permalink)
Just Joined!
 
Join Date: Jul 2005
Posts: 7
Securing Open relays in squid

Hey guys. I just got an email from my bandwidth priovider saying we have an open relay on our proxy that's being used by spammers. I'm a total newb and don't know how to lock it down. Can someone please help me create the proper acl to close this relay?

Many thx in advance.
Lt.Stink is offline  



Reply With Quote
Old 08-16-2005   #2 (permalink)
Just Joined!
 
Join Date: Jul 2005
Posts: 7
anyone?

Pretty please with sugar on top...
Lt.Stink is offline   Reply With Quote
Old 08-17-2005   #3 (permalink)
Just Joined!
 
Join Date: Aug 2005
Posts: 4
Send a message via ICQ to Mandeep
For closing open relay in squid you need to declare your interface and ip range example: i have 2 interfaces (192.168.0.1(mask 255.255.255.0), xxx.xxx.xxx.xxx) where xxx.... is external ip which provider gives me.
i will add there lines in squid.conf
------------------
http_port 127.0.0.1:3128
http_port 192.168.0.1:3128

....

acl our_networks src 192.168.0.0/24
http_access allow our_networks

--------------------------
i tink this will solve most of your problems.
Mandeep is offline   Reply With Quote
Old 08-17-2005   #4 (permalink)
Linux Guru
 
kkubasik's Avatar
 
Join Date: Mar 2004
Location: Lat: 39:03:51N Lon: 77:14:37W
Posts: 2,397
Send a message via AIM to kkubasik
But if they are spammers, its more likely you have an smtp that is open.

Download the nmap tool and run

nmap localhost

OR

netstat -tup

both should turn up the active ports on your computer.

if 25 is open, you have a smtp relay open. Locking this down while keeping mail services active is not easy, more likely you'll just want to shut the mailserver down until you can be sure of how to fix it.

I doubt you are using a squid proxy unless you installed it on your own, in which case, you should disable it until you can install some authetication methods, but that doesn't appear to be the case.

99% chance, you just have a boatload of services running you don't need, try typing

ps aux

and look through the running processes, the kill command, combined with /etc/init.d/<servername> stop
should handle most of your problems.
__________________
Avoid the Gates of Hell. Use Linux
A Penny for your Thoughts

Formerly Known as qub333
kkubasik is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 12:07 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1