FreeBSD 8.2 — ipfw — icmp

0 like 0 dislike
9 views
Привет2all.
How to spend icmp (specifically ping) through a specific interface?
Thank you.
by | 9 views

2 Answers

0 like 0 dislike
hping2 try.
Here's the help on it
There is the following:
\r
-I --interface interface name By default on linux and BSD systems hping2 uses default routing interface. 

... and so on. I think that will help.
by
0 like 0 dislike
and for FreeBSD
\r
ping classical ICMP
trace — UDP + ICMP (unix style)
\r
S — Sender Device
I — Intermediate Device (Router)
D — Destination IP
\r
\rPING
S->D Send ICMP-8 packets to network hosts
S<-D Receive from destination ICMP-0
\r
\rTRACEROUTE
S: -> Sends a UDP datagram to dest port>=33434, src port random, TTL=1 (next packet — UDP destination port is incremented)
I: <-> Receive from any router ICMP-11 with TTL=1
D: < Destination reached — Receive ICMP-3, code 3 ("destination unreachable," "port unreachable") (ICMP "udp port 33435 unreachable")
OR A "host unreachable," "net unreachable," "maximum TTL exceeded," or a "timeout" type of message, which means that the probe is resent.
by

Related questions

0 like 0 dislike
1 answer
asked Jun 13, 2019 by SimpleQ
0 like 0 dislike
4 answers
asked Mar 25, 2019 by capt_Rimmer
0 like 0 dislike
3 answers
asked Mar 20, 2019 by hardex
0 like 0 dislike
3 answers
110,608 questions
257,186 answers
0 comments
28,741 users