sarenos
February 24, 2005, 5:03pm
1
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
February 24, 2005, 11:42pm
2
ip firewall rule input> add protocol=icmp action=reject
sarenos
February 25, 2005, 8:20am
3
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
February 25, 2005, 10:49am
4
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
February 25, 2005, 12:29pm
5
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