Linux Netfilter discussions
 help / color / mirror / Atom feed
* IP-Range and Subnetmask
@ 2003-11-05 21:20 Bewerbungsadresse@web.de
  2003-11-05 21:42 ` Thomas Themel
  0 siblings, 1 reply; 5+ messages in thread
From: Bewerbungsadresse@web.de @ 2003-11-05 21:20 UTC (permalink / raw)
  To: netfilter

hi

i´ve a simple question

is it possible to prevent spoofing attacks to 172.16.0.0-172.31.255.255 
on the external internet IP in one rule?

something like that

iptables -A INPUT -p tcp -s 172.16.0.0/255.31.0.0 -d $INET_IP -i ppp0 -j 
SPOOFED

???

but i think the rule above is wrong
so: is it possible at all?
or do i have to write a loop or all single ip-ranges manually?

thx
greez



^ permalink raw reply	[flat|nested] 5+ messages in thread
* IP-Range and Subnetmask
@ 2003-11-05 21:21 Bewerbungsadresse@web.de
  0 siblings, 0 replies; 5+ messages in thread
From: Bewerbungsadresse@web.de @ 2003-11-05 21:21 UTC (permalink / raw)
  To: netfilter

hi

i´ve a simple question

is it possible to prevent spoofing attacks to 172.16.0.0-172.31.255.255 
on the external internet IP in one rule?

something like that

iptables -A INPUT -p tcp -s 172.16.0.0/255.31.0.0 -d $INET_IP -i ppp0 -j 
SPOOFED

???

but i think the rule above is wrong
so: is it possible at all?
or do i have to write a loop or all single ip-ranges manually?

thx
greez



^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: IP-Range and Subnetmask
@ 2003-11-06 11:18 Martin Ferrari - Decidir IT
  0 siblings, 0 replies; 5+ messages in thread
From: Martin Ferrari - Decidir IT @ 2003-11-06 11:18 UTC (permalink / raw)
  To: 'netfilter@lists.netfilter.org'

Use the CIDR notation:

172.16.0.0/12

ex.: iptables -A INPUT -p tcp -s 172.16.0.0/12 -d $INET_IP -i ppp0 -j
SPOOFED

> From: Bewerbungsadresse@web.de [mailto:bewerbungsadresse@web.de]
> Sent: Wednesday, November 05, 2003 6:21 PM

> is it possible to prevent spoofing attacks to 
> 172.16.0.0-172.31.255.255 
> on the external internet IP in one rule?
> 
> something like that
> 
> iptables -A INPUT -p tcp -s 172.16.0.0/255.31.0.0 -d $INET_IP 
> -i ppp0 -j 
> SPOOFED

This was wrong, as the netmask should have been 255.240.0.0; the former
netmask was invalid.



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

end of thread, other threads:[~2003-11-07  5:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-05 21:20 IP-Range and Subnetmask Bewerbungsadresse@web.de
2003-11-05 21:42 ` Thomas Themel
2003-11-07  5:27   ` Mark E. Donaldson
  -- strict thread matches above, loose matches on Subject: below --
2003-11-05 21:21 Bewerbungsadresse@web.de
2003-11-06 11:18 Martin Ferrari - Decidir IT

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox