Skip to contentSkip to conversation

ever block *outgoing* packets on your firewall?

DISCUSSION [email protected] 7 participants 8 messages Jan 14, 2005 – Feb 8, 2005 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

I'm wondering if it is ever necessary to block *outgoing* packets at your firewall.

As long as you block /incoming/ carefully no hacker on the Internet can send spam through a node on your network or anything nasty like that right?

(I'm wondering for a wifi hotspot if any nastiness will happen if I don't block outgoing. I block virtually all incoming except ssh.)

CS

#1 lore raw
Quoted 11 lines · On Fri, Jan 14, 2005 at 12:02:28PM -0800, [email protected] wrote:

I'm wondering if it is ever necessary to block *outgoing* packets at your firewall.

As long as you block /incoming/ carefully no hacker on the Internet can send spam through a node on your network or anything nasty like that right?

(I'm wondering for a wifi hotspot if any nastiness will happen if I don't block outgoing. I block virtually all incoming except ssh.)

i run a default DROP policy on the OUTPUT chain of my firewalls and only allow out necessary traffic (DNS, HTTP/FTP to update servers, NTP, etc). but i'm pretty odd when it comes to these things--i don't know how necessary it is. the one nice side-effect is that is keeps me from doing something stupid when i'm ssh-ed into a firewall.

-j

#5 lore raw
In reply to [email protected]

Hello

Blocking outgoing can be useful in several situations :

- corporate network where you do not want people to send confidential information outside

- public networks you do not want to be used
for abuse / spam / hacking

- simply control what is going out of your network

- talking of hacking, some trojans / exploits can create outbound connections and defeat the firewall security if it doesn't care about outbound connections.
See
http://www.thc.org/papers/fw-backd.htm

Another example, JPEG of Death reverse connect will connect outside just by viewing a jpeg file you downloaded (if you do not have patches ;] )
http://www.hackernews.com.br/arquivos/JpegOfDeathAll.c

So I usually set up some control of outbound connections ;)

Have a nice day

Maxime Ducharme
Programmeur / Spécialiste en sécurité réseau

----- Original Message -----
From: <[email protected]>
To: <[email protected]>
Sent: Friday, January 14, 2005 3:02 PM
Subject: ever block *outgoing* packets on your firewall?

Quoted 14 lines

I'm wondering if it is ever necessary to block *outgoing* packets at your firewall.

As long as you block /incoming/ carefully no hacker on the Internet can send spam through a node on your network or anything nasty like that right?

(I'm wondering for a wifi hotspot if any nastiness will happen if I don't block outgoing. I block virtually all incoming except ssh.)

CS

#6 lore raw
In reply to [email protected]

it could be necessary if say ... you want to block programs from calling home, you can block outgoing to that ip address.

you could also block any outgoing trojan horses, etc.

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of [email protected]
Sent: Friday, January 14, 2005 3:02 PM
To: [email protected]
Subject: ever block *outgoing* packets on your firewall?

I'm wondering if it is ever necessary to block
*outgoing* packets at your firewall.

As long as you block /incoming/ carefully no hacker on the Internet can send spam through a node on your network or anything nasty like that right?

(I'm wondering for a wifi hotspot if any nastiness will happen if I don't block outgoing. I block virtually all incoming except ssh.)

CS

#7 lore raw
In reply to [email protected]

Yes, this is often refered to as egress filtering one might impliment it to;

stop inside lamers from scanning or DDOSing other networks/servers

keep inside lamers from spoofing packets for other atack vectors on servers/networks on the outside

reduce the ricks of more direct attacks from your insiders if they are infected with wiruses and trojans that seek to spread themselves inside and outside the net

to protect specific resouces on the inside from others on the inside.

to block protocols and ports from exiting your net that should never be pushed outside your domain anyways, like the common windows realted ones on ports 135-139 tcp/udp 445 tcp, and the pnp gunk they have now.

Just to name a few reasons for such filtering. And it's a shame that it has not become a common place filtering innitiative at more sites then it is nowdays.

Thanks,

Ron DuFresne

Quoted 14 lines · On Fri, 14 Jan 2005 [email protected] wrote:

I'm wondering if it is ever necessary to block *outgoing* packets at your firewall.

As long as you block /incoming/ carefully no hacker on the Internet can send spam through a node on your network or anything nasty like that right?

(I'm wondering for a wifi hotspot if any nastiness will happen if I don't block outgoing. I block virtually all incoming except ssh.)

CS

Signature · 11 lines
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        admin & senior security consultant:  sysinfo.com
                        http://sysinfo.com

...Love is the ultimate outlaw.  It just won't adhere to rules.
The most any of us can do is sign on as it's accomplice.  Instead
of vowing to honor and obey, maybe we should swear to aid and abet.
That would mean that security is out of the question.  The words
"make" and "stay" become inappropriate.  My love for you has no
strings attached.  I love you for free...
                        -Tom Robins <Still Life With Woodpecker>
#8 lore raw
In reply to [email protected]
Quoted 7 lines · El vie, 14 de 01 de 2005 a las 21:02, [email protected] escribió:

I'm wondering if it is ever necessary to block *outgoing* packets at your firewall.

As long as you block /incoming/ carefully no hacker on the Internet can send spam through a node on your network or anything nasty like that right?

Quoted 5 lines

(I'm wondering for a wifi hotspot if any nastiness will happen if I don't block outgoing. I block virtually all incoming except ssh.)

CS

You *really* need to block outgoing traffic at your firewall. Think about spyware, malware and the like. They can be sending your company data to their owners. And users can use firewall-piercing and proxies to bypass your network rules if you let them do whatever they want.

Signature · 12 lines
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
[email protected]
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
                -- Jack Kerouac, "On the Road"
#2 lore raw
In reply to Jason Opperisano
Quoted 4 lines · Jason Opperisano
Quoted 2 lines · On Fri, Jan 14, 2005 at 12:02:28PM -0800, [email protected] wrote:

I'm wondering if it is ever necessary to block
*outgoing* packets at your firewall.

Yes, but others have answered this in a far more timely fashion than myself.

Quoted 5 lines

i run a default DROP policy on the OUTPUT chain of my firewalls and only allow out necessary traffic (DNS, HTTP/FTP to update servers, NTP, etc). but i'm pretty odd when it comes to these things--i don't know how necessary it is. the one nice side-effect is that is keeps me from doing something stupid when i'm ssh-ed into a firewall.

Out of interest why "DROP" rather than "REJECT"? With reject users, hosts or programs on the inside tend to fail straight away rather than taking a while to time out annoyingly.

Signature · 1 line
Where are we going and what's with the hand basket?
#4 lore raw
In reply to a message not in the archive
Quoted 7 lines · On Mon, Feb 07, 2005 at 10:28:46AM -0800, [email protected] wrote:
Quoted 7 lines
Quoted 6 lines

i run a default DROP policy on the OUTPUT chain of my firewalls and only allow out necessary traffic (DNS, HTTP/FTP to update servers, NTP, etc). but i'm pretty odd when it comes to these things--i don't know how necessary it is. the one nice side-effect is that is keeps me from doing something stupid when i'm ssh-ed into a firewall.

Quoted 7 lines
Quoted 3 lines

Out of interest why "DROP" rather than "REJECT"? With reject users, hosts or programs on the inside tend to fail straight away rather than taking a while to time out annoyingly.

please remind me of difference between REJECT and DROP.

Perhaps I should use REJECT then!

From the "man iptables" pages ;)

DROP means to drop the packet on the floor.

REJECT
This is used to send back an error packet in response to the matched packet.

Really that's it, a DROP rule with just eat the packet and not do anything else or tell anyone or anything, hence the remote end of the connection will presume the packet or its reply got lost along the way and try again. A REJECT rule will send something back saying "I don't talk that protocol".

Signature · 1 line
Where are we going and what's with the hand basket?