Re: block ssh and ping

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



iptables -t filter -I INPUT -i eth0 -p icmp --icmp-type 8 -j DROP
iptables -t filter -I INPUT -i eth0 -p tcp --dport ssh -j DROP


varun_saa@xxxxxxxx writes:

Hello,
My server is Mandrake 10.1
eth0 is WAN with static IP connected to 512k DSL
eth1 is LAN.


1. I would like to block ping to my external static IP

2. I would like to block ssh to my external static IP

Howto to do that ?

Thanks

Varun





Samuel Díaz Garcí­a
Director Gerente
ArcosCom Wireless, S.L.L.


mailto:samueldg@xxxxxxxxxxxx
http://www.arcoscom.com
móvil: 651 93 72 48
tlfn.: 956 70 13 15
fax: 956 70 34 83






[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux