Skip to contentSkip to conversation

REJECT target

DISCUSSION Ian Latter 1 participant 1 message Jun 26, 2003 netfilter

lore
Share & tools
lore

Ian Latter

author
#0 lore raw

Hello DarKRaveR,

I agree with trying to filter on the prerouting chain .. and I think that
comes from using netfilter as a standalone firewall rather than using it as a host-based firewall. I prefer to see packets stopped at the first point capable of making the decision, and that's at the prerouting chain. I believe I stand alone on that, though.

However, I use drops in all of my rules, so I've not come across the
reject problem. I don't know why reject couldn't be applied to any chain .. isn't this just an "or" option in the target module? Is there any other reason (list)?

----- Original Message -----

Quoted 30 lines

From: "DarKRaveR" <[email protected]>
To: <[email protected]>
Subject: Re[2]: REJECT target
Date: Wed, 25 Jun 2003 16:13:43 +0200

Hello Jozsef,

I understood that, the question is why ? I got a scenarion, where I would need it in the PREROUTING chain of the nat table, instead of just dropping the packets ... Is there any reason, why it is only available in the filter table. I mean, it's for filtering okay, but maybe I want to reject connections properly at other places (like nat table, prerouting) instead of plain stupid
dropping them and waiting at the client software to time out.

Wednesday, June 25, 2003, 9:17:56 AM, you wrote:

Quoted 6 lines · DarKRaveR
Quoted 6 lines

I know this is not really a developers question, but maybe the developers are the right people at hand, to explain this. From what I read, the REJECT target is only valid in INPUT/OUPUT/FORWARD. Is there any particular reason why ? I read in one of the tutorials, that you wouldn't need it at any other place, but I think this is not perfectly true.

JK> The REJECT target is for filtering. The filter table has got the JK> INPUT/OUPUT/FORWARD chains, therfore the REJECT target can be used in JK> those chains (and sub-chains, naturally).

Quoted 17 lines

JK> Best regards,
JK> Jozsef
JK> -
JK> E-mail : [email protected], [email protected] JK> PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
JK> Address : KFKI Research Institute for Particle and Nuclear Physics
JK> H-1525 Budapest 114, POB. 49, Hungary

Signature · 2 lines
Best regards,
 DarKRaveR                            mailto:[email protected]

--
Ian Latter
Internet and Networking Security Officer
Macquarie University