netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] address type match limited to incoming interface
@ 2007-10-12 14:03 Laszlo Attila Toth
  2007-10-12 14:07 ` [PATCH 1/2] Find address type on a specific or on any interface Laszlo Attila Toth
  0 siblings, 1 reply; 8+ messages in thread
From: Laszlo Attila Toth @ 2007-10-12 14:03 UTC (permalink / raw)
  To: netfilter-devel

Hello,

Current version of address type match lets incoming packets filter by
address type such as LOCAL (local address of any interface). With this
the following patches this type check can be limited to the interface
the packet coming in. For instance the lets SSH in on every interface
and nothing else:

iptables -P INPUT DROP
(some additional checks may be here such as -m state --state INVALID -j
DROP)
iptables -A INPUT -p tcp -m tcp --dport 22 -m addrtype --dst-type LOCAL
--limit-iface -j ACCEPT

If a packet arrives on eth0 with the IP address of the eth0 it is
accepted but if it is an address of eth1 it is dropped.

Also it can be used for checking IP spoofing.

Regards,
	Attila


^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH 0/2] Addrtype match limit to a specific interface. Patches
@ 2007-10-05 15:20 Tóth László Attila
  2007-10-05 15:20 ` [PATCH 1/2] Find address type on a specific or on any interface Tóth László Attila
  0 siblings, 1 reply; 8+ messages in thread
From: Tóth László Attila @ 2007-10-05 15:20 UTC (permalink / raw)


The address type check can be limited to the interface the packets belongs to
and it matches only if the incoming interface (of the packet) has the same
IP address as the packet's source or destination address depending on the
source or destionation type settings.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-10-20 14:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-12 14:03 [PATCH 0/2] address type match limited to incoming interface Laszlo Attila Toth
2007-10-12 14:07 ` [PATCH 1/2] Find address type on a specific or on any interface Laszlo Attila Toth
2007-10-12 14:07   ` [PATCH 2/2] Addrtype match extension: limit addrtype check on the packet's interface Laszlo Attila Toth
2007-10-18  9:16     ` Patrick McHardy
2007-10-18 11:34       ` Laszlo Attila Toth
2007-10-20 14:50       ` Laszlo Attila Toth
2007-10-18  9:13   ` [PATCH 1/2] Find address type on a specific or on any interface Patrick McHardy
  -- strict thread matches above, loose matches on Subject: below --
2007-10-05 15:20 [PATCH 0/2] Addrtype match limit to a specific interface. Patches Tóth László Attila
2007-10-05 15:20 ` [PATCH 1/2] Find address type on a specific or on any interface Tóth László Attila

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).