LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-24-2006, 11:19 PM   #16
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Original Poster
Rep: Reputation: 32

Quote:
Is it possible to block outbound traffic by port?
yes its possible and with firewalls we can do just that. for example i have a line in my firewall which blocks all traffic at port 1863 (thats used by msn-messenger service):
Code:
/sbin/iptables -A FORWARD -p tcp -s $MY_LAN -d $ENTIRE_GLOBE --dport 1863 -j REJECT
this line in iptables checks each incoming request from $MY_LAN addresses and checks whether the request is made for a distant 1863 port, if yes, it just rejects the packet.

you can do the similar thing from your squid also but i haven't used squid for that purpose and i really have to check that out myself before saying anything.

now the above thing(s) only work if your packet goes through your squid or firewall. what if they don't?
 
  


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
Raven Shield socks Linux - Games 3 05-10-2005 09:18 AM
Prelink and Exec Shield socks Slackware 1 05-02-2005 07:52 AM
define Exec Shield please firenze Fedora 2 07-03-2004 05:22 PM
What is Exec Shield in Fedora??? neosap Fedora 1 06-19-2004 11:34 PM
installer shield - text problem hamish Linux - Software 9 10-18-2003 05:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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