2.3. Utility

2.3.1. geoip

Display GeoIP information.

Description

Display status of GeoIP database and perform manual lookups.

Usage

geoip 
Display statistics.
geoip -filters [-num=<n>] 
Display filter information.
geoip -status 
Display statistics.
geoip -query <IPAddress> 
Lookup IP address to GeoIP location.

Options

-filters
Display current active Geolocation Filters.
-num=<n>
List <n> entries. (Default: 20)
-query
Resolve domain name.
-status
Display status for GeoIP database.
<IPAddress>
IP address to resolve.

2.3.2. ping

Ping host.

Description

Sends one or more ICMP ECHO, TCP SYN or UDP datagrams to the specified IP address of a host. All datagrams are sent preloaded-style (all at once).

The data size -length given is the ICMP or UDP data size. 1472 bytes of ICMP data results in a 1500-byte IP datagram (1514 bytes ethernet).

Usage

ping [<String>] [-srcif=<interface>] [-srcip=<ip address>]
     [-pbr=<table>] [-count=<1...10>] [-length=<2...8192>]
     [-port=<0...65535>] [-srcport=<0...65535>] [-udp] [-tcp]
     [-tos=<0...255>] [-verbose] [-6] 

Options

-6
Force IPv6.
-count=<1...10>
Number of packets to send. (Default: 1)
-length=<2...8192>
Packet size. (Default: 4)
-pbr=<table>
Route using PBR Table.
-port=<0...65535>
Destination port of UDP or TCP ping.
-srcif=<interface>
Pass packet through the rule set, simulating that the packet was received by <srcif>.
-srcip=<ip address>
Use this source IP.
-srcport=<0...65535>
Source port of UDP or TCP ping.
-tcp
Send TCP ping.
-tos=<0...255>
Type of service.
-udp
Send UDP ping.
-verbose
Verbose (more information).
<String>
IP address or URL of host to ping.

2.3.3. traceroute

Trace route.

Description

Print the route packets take to a network host.

Usage

traceroute <host> [-starthop=<1...255>] [-maxhops=<1...255>]
           [-timeout=<1...60000>] [-count=<1...10>]
           [-size=<0...32768>] [-pbr=<table>] [-srcip=<ip address>]
           [-noresolve] [-nodelay] [-6] 
Trace using ICMP.
traceroute -tcp <host> [-port=<1...65535>] [-starthop=<1...255>]
           [-maxhops=<1...255>] [-timeout=<1...60000>]
           [-count=<1...10>] [-pbr=<table>] [-srcip=<ip address>]
           [-noresolve] [-nodelay] [-6] 
Trace using TCP.
traceroute -udp <host> [-port=<1...65535>] [-starthop=<1...255>]
           [-maxhops=<1...255>] [-timeout=<1...60000>]
           [-count=<1...10>] [-size=<0...32768>] [-pbr=<table>]
           [-srcip=<ip address>] [-noresolve] [-nodelay] [-6] 
Trace using UDP.
traceroute -stop 
Stop trace.

Options

-6
Force IPv6 if target is a FQDN.
-count=<1...10>
Number of queries to send for each hop. (Default: 3)
-maxhops=<1...255>
Maximum number of hosts to traverse in search of target. (Default: 30)
-nodelay
Send queries as fast as possible (may look like Denial of Service attack).
-noresolve
Disable reverse DNS lookup of hosts.
-pbr=<table>
Route using PBR Table.
-port=<1...65535>
Destination port.
-size=<0...32768>
Packet data size. (Default: 32)
-srcip=<ip address>
Use this source IP.
-starthop=<1...255>
Initial TTL value. (Default: 1)
-stop
Stop trace in progress.
-tcp
Use TCP instead of ICMP.
-timeout=<1...60000>
How many milliseconds to wait for each reply. (Default: 1000)
-udp
Use UDP instead of ICMP.
<host>
IP address or FQDN of host to trace.