-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfwd.man
72 lines (72 loc) · 1.61 KB
/
fwd.man
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
.\" fwd.man
.\" common text describing sratool, sratunnel, and radtunnel output specs
.\" use .ds CT to set that string to either "" or "Op Ar count"
.\"
.Bl -tag -width 4n
.It Xo
.Sm off
.Cm nmsg:
.Op Cm tcp: Ns | Ns Cm udp:
.Ar host,port
.Sm on \*(CT
.Xc
sends nmsg messages to the UDP or optional TCP
host name and port number
.Ar host,port .
UDP is the default.
IP packets are converted to NMSG messages.
.It Xo
.Sm off
.Cm nmsg:file:
.Ar path
.Sm on \*(CT
.Xc
sends binary nmsg messages to the file named
.Ar path .
IP packets are converted to nmsg messages.
.It Xo
.Sm off
.Cm nmsg:file_json:
.Ar path
.Sm on \*(CT
.Xc
sends nmsg newline-delimited json blobs to the file named
.Ar path .
Note that newline-delimited json outputs can incur a slight performance penalty versus binary nmsg outputs for
"high-velocity" outputs. This is because the underlying nmsg json output object is unbuffered and results a filesystem write
for every forwarded nmsg.
.It Xo
.Sm off
.Cm pcap
.Op Cm -fifo :
.Ar path
.Sm on \*(CT
.Xc
sends IP packets to a file or FIFO named
.Ar path
for examination with
.Xr tcpdump 1
or another packet tracing tool.
An ordinary file is the default.
Only IP packets but not nmsg messages are sent.
.It Xo
.Sm off
.Cm pcap-if:
.Op Ar dst /
.Ar ifname
.Sm on \*(CT
.Xc
transmits IP packets on the network interface named
.Ar ifname
for examination with
.Xr tcpdump 1
or another packet tracing tool.
.Ar dst
optionally specifies a destination 48-bit Ethernet address other
than all 0:0:0:0:0:0 default.
This output usually requires that
.Nm
be run by root.
Only IP packets but not nmsg messages are sent.
.El
.\" end of fwd.man