Skip to contentSkip to conversation

DROP or REJECT

DISCUSSION Peter Marshall 4 participants 7 messages May 11, 2004

lore
Share & tools
lore
#0 lore raw

Which is better (to drop or reject packets)? I am asking more specifically for connections from the internet to my external firewall.

My second question is if I have a DNS in my DMZ (contains only ip's in my dmz. internal boxes use this as their DNS. This DNS falls back to my ISP), do I have to allow both TCP and UDP connections on port 53 ? Can I not just have UDP, or does it use both ?

Thank you.

Peter Marshall, BCS
Projects Division, CARIS
115 Waggoners Lane, Fredericton NB, E3B 2L4 CANADA
Phone: (506) 458-8533 (Reception)
</html>

#1 lore raw

* Peter Marshall <[email protected]> 11. May 04:

Quoted 3 lines

Which is better (to drop or reject packets)? I am asking more specifically for connections from the internet to my external firewall.

REJECT is something more polite and suits to common standards. However, if your box is flooded with SYNs and your connection is disturbed you maybe should start DROPing packets.

Quoted 4 lines

My second question is if I have a DNS in my DMZ (contains only ip's in my dmz. internal boxes use this as their DNS. This DNS falls back to my ISP), do I have to allow both TCP and UDP connections on port 53 ? Can I not just have UDP, or does it use both ?

Both. HTH,
regards, Frank.

Signature · 1 line
Sigmentation fault
#2 lore raw
In reply to Peter Marshall
Quoted 3 lines · Peter Marshall

Which is better (to drop or reject packets)? I am asking more specifically for connections from the internet to my external firewall.

Depends. I like rejecting with host-unreachables as it makes it look like you do not have a firewall. It also has the ability to shut down certain scanning tools before they can find exposed ports.

Some worry this could be a potential DoS situation. If you are worried about this you can combine it with rate limiting.

Quoted 4 lines

My second question is if I have a DNS in my DMZ (contains only ip's in my dmz. internal boxes use this as their DNS. This DNS falls back to my ISP), do I have to allow both TCP and UDP connections on port 53 ? Can I not just have UDP, or does it use both ?

Again, it depends. Queries use UDP/53 _unless_ the answer exceeds a 512 byte packet size. If it does, the connection can switch over to TCP/53.

So, outbound you need TCP and UDP. Inbound to your DNS server, it depends if you answers will exceed this maximum. If not, you only need to permit UDP/53 from the Internet in general, and TCP/53 only from servers (if any) that are acting as secondaries.

HTH,
Chris

#3 lore raw

* Chris Brenton <[email protected]> 11. May 04:

Quoted 2 lines

I like rejecting with host-unreachables as it makes it look like you do not have a firewall.

I hope you do this only in the FORWARD chain, don't you?

Just curious,
regards, Frank.

Signature · 1 line
Sigmentation fault
#4 lore raw
Quoted 6 lines · Frank Gruellich

* Chris Brenton <[email protected]> 11. May 04:

Quoted 2 lines

I like rejecting with host-unreachables as it makes it look like you do not have a firewall.

I hope you do this only in the FORWARD chain, don't you?

Yup. Host unreachables originating from the host that is suppose to be unreachable don't have quite the same effect. ;-)

C

#5 lore raw
In reply to Chris Brenton
Quoted 2 lines · Chris Brenton

Depends. I like rejecting with host-unreachables as it makes it look like you do not have a firewall.

NACK. If I weren't there, the host unreachable would have the source address of the upstream router, and not my own one. To be truly invisible, you'd need to fake the upstream router's IP address, which is (a) not easy to get hold of, (b) most probably not appreciated by your upstream, and (c) some hosts will completely cease communication with you which is not always the intended behavior.

Greetings
Marc

Signature · 4 lines
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Karlsruhe, Germany |  lose things."    Winona Ryder | Fon: *49 721 966 32 15
Nordisch by Nature |  How to make an American Quilt | Fax: *49 721 966 31 29
#6 lore raw
Quoted 7 lines · Marc Haber
Quoted 2 lines · Chris Brenton

Depends. I like rejecting with host-unreachables as it makes it look like you do not have a firewall.

NACK. If I weren't there, the host unreachable would have the source address of the upstream router, and not my own one.

I didn't say "not there", I said "look like there is no firewall". The type 3 code 1 mimics the response of a typical router.

Quoted 2 lines

To be truly
invisible, you'd need to fake the upstream router's IP address,

Not going to work. Firewalk will quickly identify there is a hop on the wire that is not accounted for. Thus I don't bother shooting for invisible, just a little bit of decoying and deception. ;-)

HTH,
Chris