ping port

D.A.Glynos glynos at ath.forthnet.gr
Wed Jul 4 22:08:01 EEST 2001


Den "paizei" se kapoia "porta".
Anoigei raw socket kai stelnei ena ICMP packet-aki tupou Echo Request
ston apenanti host. An o host apantisei me ena Echo Response, to ping
tha sou epistrepsei ton round-trip xrono (pigainela).

Sunepws an thes o host sou na min apantaei se pings,
kaneis (ws root) to ekshs:

iptables -D INPUT -d x.x.x.x -p icmp --icmp-type echo-request -j DROP

...opou x.x.x.x h IP tou mixanimatos sou.

kai gia tou logou to alithes:

root at koko:~ > /usr/local/sbin/iptables -D INPUT -d 212.251.95.196 -p icmp \ 
--icmp-type echo-request -j DROP
root at koko:~ > ping 212.251.95.196
PING 212.251.95.196 (212.251.95.196): 56 data bytes
--- 212.251.95.196 ping statistics ---
10 packets transmitted, 0 packets received, 100% packet loss

auta.
dimitris

On Wed, 4 Jul 2001, Nikos Stylianidis wrote:
> 
> Paidia gias sas,
> exo mia aporia poly apli kai mallon ilithia.
> To ping se pia porta paizei?
> 
> Sas eyxaristo ek ton protero
> 
> Kalo apogeyma




More information about the Linux-greek-users mailing list