All of lore.kernel.org
 help / color / mirror / Atom feed
* Iptables seens doesn't understand network address not in class A, B or C
@ 2002-07-09  5:03 caricand.jean-michel
  2002-07-09  7:17 ` Antony Stone
  0 siblings, 1 reply; 2+ messages in thread
From: caricand.jean-michel @ 2002-07-09  5:03 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 623 bytes --]

I have a local network with 10.0.2.0 address and 255.255.254.0 netmask. 

My firewall have IP 10.0.2.130 on eth0. 
My station have IP 10.0.2.2.

I configure my firewall for drop the ping from the station with 1 rules :

# iptables -A INPUT -i eth0 -s 10.0.2.2 -p icmp -j DROP 

When I ping the firewall from my station (ping 10.0.2.130) , I receive an response from the serveur 

Why ?

What is the problem ? My netmask ?

If i modify my netmask to 255.0.0.0 on firewall and my station, the ping doesn't work. Normal !

Iptables don't understand network address not in class A, B or C 

HELP ME !!!



[-- Attachment #2: Type: text/html, Size: 1418 bytes --]

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

* Re: Iptables seens doesn't understand network address not in class A, B or C
  2002-07-09  5:03 Iptables seens doesn't understand network address not in class A, B or C caricand.jean-michel
@ 2002-07-09  7:17 ` Antony Stone
  0 siblings, 0 replies; 2+ messages in thread
From: Antony Stone @ 2002-07-09  7:17 UTC (permalink / raw)
  To: netfilter

On Tuesday 09 July 2002 6:03 am, caricand.jean-michel wrote:

> I have a local network with 10.0.2.0 address and 255.255.254.0 netmask.
>
> My firewall have IP 10.0.2.130 on eth0.
> My station have IP 10.0.2.2.
>
> I configure my firewall for drop the ping from the station with 1 rules :
>
> # iptables -A INPUT -i eth0 -s 10.0.2.2 -p icmp -j DROP
>
> When I ping the firewall from my station (ping 10.0.2.130) , I receive an
> response from the serveur
>
> Why ?
>
> What is the problem ? My netmask ?

No; netfilter can handle any netmask you like - even very strange ones.

What is the routing table on:
a) your firewall
b) machine 10.0.2.2

 

Antony


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

end of thread, other threads:[~2002-07-09  7:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-09  5:03 Iptables seens doesn't understand network address not in class A, B or C caricand.jean-michel
2002-07-09  7:17 ` Antony Stone

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.