Community discussions

MikroTik App
 
sarenos
newbie
Topic Author
Posts: 42
Joined: Fri Feb 11, 2005 7:36 pm

Blocking icmp ping

Thu Feb 24, 2005 7:03 pm

I want to block ping between users that are in my wlan1 and the router I have to access Internet.
eth1: 192.168.0.2 gw 192.168.0.1
wlan1: 10.5.50.1

i.e. user with IP 10.5.50.154 can ping to 192.168.0.1

I want to block it. Anybody can help me how can I drop this pings?


Thank you.
 
msolis
newbie
Posts: 37
Joined: Thu Jul 08, 2004 1:16 am
Location: Costa Rica
Contact:

Fri Feb 25, 2005 1:42 am

ip firewall rule input> add protocol=icmp action=reject
 
sarenos
newbie
Topic Author
Posts: 42
Joined: Fri Feb 11, 2005 7:36 pm

Fri Feb 25, 2005 10:20 am

But I only want to block pings from de subnet 10.5.50.0 to the subnet 192.168.0.0
wlan1 has the subnet 10.5.50.0
ether1 has the subnet 192.168.0.0

I want that users can ping to internet addresses.
 
edzix
Member
Member
Posts: 333
Joined: Thu Jul 01, 2004 3:01 pm
Location: Latvia

Fri Feb 25, 2005 12:49 pm

add those address ranges to the rule msolis provided with.
src-address=10.5.50.0/24 dst-address=192.168.0.0/24

Edgars
 
sten
Forum Veteran
Forum Veteran
Posts: 923
Joined: Tue Jun 01, 2004 12:10 pm

Fri Feb 25, 2005 2:29 pm

But I only want to block pings from de subnet 10.5.50.0 to the subnet 192.168.0.0
wlan1 has the subnet 10.5.50.0
ether1 has the subnet 192.168.0.0

I want that users can ping to internet addresses.
You could use these as these rules block icmp-ping only (but allows other icmp packets to travel through (which in most cases is a good thing for error response))

add action=drop protocol=icmp icmp-options=0:0 src-address=10.5.50.0/24 dst-address=192.168.0.0/24.

add action=drop protocol=icmp icmp-options=0:0 src-address=192.168.0.0/24 dst-address=10.5.50.0/24

add action=drop protocol=icmp icmp-options=8:0 src-address=10.5.50.0/24 dst-address=192.168.0.0/24.

add action=drop protocol=icmp icmp-options=8:0 src-address=192.168.0.0/24 dst-address=10.5.50.0/24

Who is online

Users browsing this forum: arcc and 19 guests