Operating System - HP-UX
1820485 Members
2310 Online
109624 Solutions
New Discussion юеВ

Ping utility with option to specify source IP address??

 
SOLVED
Go to solution
Jason Dinsdale
Frequent Advisor

Ping utility with option to specify source IP address??

Hello,

I'm after a ping utility that will allow me to specify the *source* IP
address when pinging a remote host, a la Cisco's IOS extended ping.
Reason is the I have an HP-UX host that has an alias IP address on one
interface which is used for VPN connectivity, and to ping down the
tunnel the source IP has to be the alias IP assigned to this
interface, NOT the primary IP address on the interface. I'm looking
for either a pre-compiled binary for HP-UX v11.0 (wishful thinking) or
maybe a Perl script of some sort...

Ideas??

Thanks,

Jason
If a man talks in a forest and there is no woman to hear, is he still wrong?
2 REPLIES 2
Steven Sim Kok Leong
Honored Contributor

Re: Ping utility with option to specify source IP address??

Hi,

In this case, you will need to spoof the source IP address of your packets.

A number of utilities allow you to spoof source IP addresses in your packets. One good utility i.e. comes with a most intuitive GUI interface is IP-Sorcery.

http://www.legions.org/~phric/ipsorcery.html

It is a very powerful tool, not only does ICMP, but also IGMP as well as UDP and TCP allowing you to specify the various TCP options such as TCP flags, packet size, sequence number etc. Both hackers and security professionals love this.

Hope this helps. Regards.

Steven Sim Kok Leong
Steven Sim Kok Leong
Honored Contributor
Solution

Re: Ping utility with option to specify source IP address??

Hi,

Another infamous utility you can use is nmap and it doesn't need GTK like ip-sorcery does.

http://www.nmap.org

Check out the -S option in particular. You can also use the decoys -D option.

Hope this helps. Regards.

Steven Sim Kok Leong