Skip to content

Commit

Permalink
document new options
Browse files Browse the repository at this point in the history
  • Loading branch information
synfinatic committed Apr 1, 2004
1 parent b0469e1 commit 7016d37
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
9 changes: 9 additions & 0 deletions man/tcpprep.1
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ tcpprep \- create a tcpreplay cache file from a saved capture file
.I client
|
.I server
|
.I port
] [
.B \-N
.I client
Expand Down Expand Up @@ -127,6 +129,13 @@ default, change with -M) and works it's way down to the minimum mask len (-m).
If tcpprep is unable to determine one or more networks which only contains
servers and unknowns, tcpprep will abort.

Port mode looks at the source/destination port of the TCP or UDP packet.
Client traffic goes out the primary interface, and server traffic out the
secondary interface. Non-TCP and UDP traffic goes out the same interface
as non-IP traffic does. Note that this mode does not track IP addresses;
so an IP may appear to jump between interfaces depending on if it is the
client or server.

In all cases, servers are sent out the primary interface, and clients out the
secondary.
.TP
Expand Down
17 changes: 13 additions & 4 deletions man/tcpreplay.8
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.\" $Id: tcpreplay.8,v 1.22 2004/03/25 00:49:56 aturner Exp $
.\" $Id: tcpreplay.8,v 1.23 2004/04/01 06:07:53 aturner Exp $
.TH "TCPREPLAY" "8" "2.0.3" "Aaron Turner" "Replay Captured Network Traffic"
.SH "NAME"
.LP
Expand Down Expand Up @@ -102,13 +102,22 @@ Disable sending martian packets (source networks: 0/8, 127/8, 255/8)
Don't listen in promiscuous mode when sniffing with \-S
.TP
.B \-N or "nat"
Specify the nat transation table(s) where a table is a pair of CIDR's
seperated by a colon and teach table is sererated by a comma:
\fI<FROMCIDR1>:<TOCIDR1>,<FROMCIDR2>:<TOCIDR2>\fR
Specify the nat transation table(s) where a table is one or more pairs of
CIDR's seperated by a colon and each pair is sererated by a comma:
.br
<FROMCIDR1>:<TOCIDR1>,<FROMCIDR2>:<TOCIDR2>
.br
The first instance of this argument is used for the primary interface while
the second instance is used for the secondary interface. If no second
instance of this argument exists, then the NAT table is used for both.
.TP
.B \-o or "offset"
Jump to packet at the nearest specified byte offset and start replaying packets from there.
.TP
.B \-O or "one_output"
Processes packets internally for dual interfaces/files for purposes of NAT and MAC
rewriting, but only write packets to a single interface or file.
.TP
.B \-p or "packetrate"
Specify the replay rate in packets per second. Negates all other
speed options.
Expand Down

0 comments on commit 7016d37

Please sign in to comment.