nemesis-ospf1
Ospf protocol (the nemesis project)
Usage
nemesis-ospf [-vZ]
[optlist]
Overview
The Nemesis Project is designed to be a command line-based, portable human IP stack for UNIX-like and Windows systems. The suite is broken down by protocol, and should allow for useful scripting of injected packets from simple shell scripts.
OSPF Packet Types
-pOSPF Protocol (-pH, -pL, -pR)-
Hello (-pH), Database Description (-pD), Link State Request (-pL), Link State Update (-pU), Router Links Advertisement (-pR), Network Links Advertisement (-pN), IP Summary Links Advertisement (-pM), AS External Link Advertisement (-pA),
OSPF HELLO options
|
Neighbor Router Address. |
|---|---|
|
Dead Router Interval. |
|
OSPF Interval. |
OSPF Database Description (DBD) options
|
OSPF Maximum Datagram Length |
|---|---|
|
OSPF DBD Exchange Type |
OSPF Link State Update (LSU) options
-xNum LSAs to bcast-
Number of Link State Advertisements to broadcast
OSPF Link State Advertisement (LSA) related options
-L Router ID Router ID for Link State Advertisement packets.
-GLSA Age-
Link State Advertisement Age.
OSPF Router Links Advertisement (LSA_RTR) options
-u LSA_RTR Number Router Links Advertisement Number
|
Router Links Advertisement Router Type |
|---|---|
|
Router Links Advertisement Router Data |
OSPF Autonomous System External Link Advertisement (LSA_AS_EXT) options
-f LSA_AS_EXT Forward Address Autonomous System Forward Address
-gLSA_AS_EXT Tag-
Autonomous System Tag
OSPF options
-m OSPF Metric OSPF Metric
-sOSPF Sequence Number-
OSPF Sequence Number
-rOSPF Advertising Router Address-
OSPF Advertising Router Address
-nOSPF Netmask-
OSPF Netmask Address
-OOSPF Options-
OSPF Options
-ROSPF Router ID-
OSPF Router Identifier
-AOSPF Area ID-
OSPF Area Identifier
-PPayload File-
Filename to read for packet payload.
- Display the injected packet in human readable form. Use twice to see a hexdump
-
-v verbose-mode -
of the injected package with printable ASCII characters on the right. Use three times for a hexdump without decoded ASCII.
Options
-
-D destination-IP-address -
Specify the destination-IP-address within the IP header.
- -F fragmentation-options (-F[D],[M],[R],[offset])
-
Specify the fragmentation options:
-FD (don't fragment) -FM (more fragments) -FR (reserved flag) -F <offset>
within the IP header. IP fragmentation options can be specified individually or combined into a single argument to the -F command line switch by separating the options with commas (eg. '-FD,M') or spaces (eg. '-FM 223'). The IP fragmentation offset is a 13-bit field with valid values from 0 to 8189. Don't fragment (DF), more fragments (MF) and the reserved flag (RESERVED or RB) are 1-bit fields.
NOTE: Under normal conditions, the reserved flag is unset.
-
-I IP-ID -
Specify the IP-ID within the IP header.
-
-O IP-options-file -
This will cause nemesis-ospf to use the specified IP-options-file as the options when building the IP header for the injected packet. IP options can be up to 40 bytes in length. The IP options file must be created manually based upon the desired options. IP options can also be read from stdin by specifying '-O -' instead of an IP-options-file.
-
-S source-IP-address -
Specify the source-IP-address within the IP header. IP-type-of-service (TOS) within the IP header. Valid type of service values:
2 (Minimize monetary cost) 4 (Maximize reliability) 8 (Maximize throughput) 24 (Minimize delay)
NOTE: Under normal conditions, only one type of service is set within a packet. To specify multiple types, specify the sum of the desired values as the type of service.
-
-T IP-TTL -
Specify the IP-time-to-live (TTL) within the IP header.
Options
-
-d Ethernet-device -
Specify the name (for UNIX-like systems) or the number (for Windows systems) of the Ethernet-device to use (eg. fxp0, eth0, hme0, 1).
-
-H source-MAC-address -
Specify the source-MAC-address (XX:XX:XX:XX:XX:XX).
-
-M destination-MAC-address -
Specify the destintion-MAC-address (XX:XX:XX:XX:XX:XX).
-
-Z list-network-interfaces -
Lists the available network interfaces by number for use in link-layer injection.
NOTE: This feature is only relevant to Windows systems.
Diagnostics
Nemesis-ospf returns 0 on a successful exit, 1 if it exits on an error.
Releases
4 releases since Debian 3.0 (Woody); the text changed 2 times.
-D since Debian 3.1 (Sarge);
-H since Debian 3.1 (Sarge);
-I since Debian 3.1 (Sarge);
-M since Debian 3.1 (Sarge);
-O since Debian 3.1 (Sarge);
-S since Debian 3.1 (Sarge);
-T since Debian 3.1 (Sarge);
-Z since Debian 3.1 (Sarge);
-d since Debian 3.1 (Sarge);
-v since Debian 5.0 (Lenny).