From: Martijn Lievaart <m@rtij.nl>
To: Vishwas Manral <Vishwas@sinett.com>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: LAND check: 2.4.20
Date: Wed, 16 Mar 2005 09:44:00 +0100 [thread overview]
Message-ID: <4237F1D0.1020406@rtij.nl> (raw)
In-Reply-To: <BB6D74C75CC76A419B6D6FA7C38317B26A26DE@sinett-sbs.SiNett.LAN>
Vishwas Manral wrote:
>Hi Cedric/ Martin,
>
>Thanks for the reply. There are a few things you may be missing:-
>
>1. They cannot be in the rule set, unless we can put a rule which says for any Source-IP/ Port if destination will be the same value then drop. You cannot put the value of every possible IP/port in your rule set. Besides as you yourself mentioned the solution you state it may not work for all scenarios.
>
>
Yes they can. You don't need a rule that syas srcip==dstip. If eth0 is
connected to 1.2.3.0/24, put in a rule that drops traffic from any other
interface with source address 1.2.3.0/24. In practice this works in any
scenario where it matters imo.
>2. The source and destination address may be routed, though the same. So from a machine X I could send a packet with source and Destination IP of Y.
>
>
Yes, that is possible. However, do you want to catch LAND attacks on a
machine that has such weird routing functionality? If this really
bothers you, write a custom match, it should be trivial.
>3. I am not sure which routing code checks for Source IP Address? Can you point me to some code (destroy it as a packet with local IP as source must be received on loopback)?
>
>
See Patricks reply.
>The solution as done by most firewalls is to add a simple check in the check_tcp and check_udp. I think we need to add this to the iptables code.
>
>
If you really need this functionality, it is trivial to write a custom
match for it. If case 2 above is a reality for you, you need the
flexibility of a custom match anyhow, as you cannot solve the problem
generically in that case.
M4
next prev parent reply other threads:[~2005-03-16 8:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-16 3:29 LAND check: 2.4.20 Vishwas Manral
2005-03-16 6:29 ` Patrick Schaaf
2005-03-16 8:44 ` Martijn Lievaart [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-03-16 7:29 Vishwas Manral
2005-03-15 4:22 Vishwas Manral
2005-03-15 16:42 ` Martijn Lievaart
2005-03-15 16:52 ` Cedric Blancher
2005-03-14 11:41 Vishwas Manral
2005-03-14 14:51 ` Martijn Lievaart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4237F1D0.1020406@rtij.nl \
--to=m@rtij.nl \
--cc=Vishwas@sinett.com \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.