论坛: UNIX系统 标题: The-question-about-Hping 复制本贴地址    
作者: TecZm [teczm]    版主   登录
I use hping in a gateway: LAN is 192.168.5.0/24,access Internet with PPPoE
I can do it :
代码:
hping 192.168.5.2


but when do it
代码:
hping www.163.com[/CODE]   

show:
 
引用:

HPING  www.163.com   (tun0 220.181.28.42): NO FLAGS are set, 40 headers + 0 data bytes
[send_ip] sendto: Operation not permitted



then I look again the INSTALL of Hping
 
引用:

NOTE: You should take care about your net/bpf.h file installing on
BSD systems (specially with OpenBSD). If your original bpf.h was
overwritten with the libpcap one probably hping will not work
with over some interface.

For example if you use the libpcap bpf.h on OpenBSD hping will
not work over PPP interfaces.



then I do those:
first, cp /usr/src/sys/net/bpf.h /usr/include/net/bpf.h
second, configure && gmake install

but it's same




[此贴被 TecZm(teczm) 在 06月26日12时08分 编辑过]

地主 发表时间: 06-06-26 12:07

回复: CCIE [lion1985]   论坛用户   登录
能不能用中文描述????

B1层 发表时间: 06-06-27 15:08

回复: SHESAIDSORRY [agg230]   论坛用户   登录
pls check:http://groups.google.com/group/comp.os.linux.networking/browse_thread/thread/e78dcec56b41fbf9/e592a9bc2441c430?lnk=st&q=NO+FLAGS+are+set%2C40+headers+%2B+0+data+bytes&rnum=6#e592a9bc2441c430

# hping2 -c 1 -y -d 1500 -m 10000 megahard
eth0 default routing interface selected (according to /proc)
HPING megahard (eth0 192.168.1.1): NO FLAGS are set, 40 headers + 1500 data bytes
[send_ip] sendto: Message too long

This packet required a MTU of 1540 bytes, DF (don't fragment) was set
and the packet could not be sent.


Let's try again:

# hping2 -c 1 -y -d 1460 -m 10000 megahard
eth0 default routing interface selected (according to /proc)
HPING megahard (eth0 192.168.1.1): NO FLAGS are set, 40 headers + 1460 data bytes
46 bytes from 192.168.1.1: flags=RA seq=0 ttl=255 id=8562 win=0 rtt=2.8 ms

--- megahard hping statistic ---
1 packets tramitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 2.8/2.8/2.8 ms

This time it worked, proving that a MTU of 1500 does not require
fragmentation.

Repeat above with your ISP's gateway and vary the ``-d nnnn'' until
you discover the optimum MTU. [b]Sample Text

B2层 发表时间: 07-01-30 12:41

回复: SHESAIDSORRY [agg230]   论坛用户   登录
http://groups.google.com/

good luck

B3层 发表时间: 07-01-30 12:42

回复: 零下一度 [xiaoshi]   论坛用户   登录
diff

B4层 发表时间: 07-01-31 00:07

回复: SHESAIDSORRY [agg230]   论坛用户   登录


B5层 发表时间: 07-01-31 12:28

回复: TecZm [teczm]   版主   登录
I get it.thanks

B6层 发表时间: 07-02-02 16:23

论坛: UNIX系统

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号