samplicator(8)
π samplicator(8) β like, the whole manual, bestie
okay so before we even start: this is the samplicator page from section 8 of the manual, and it's genuinely one of the most useful little gremlins in networking. sit down, grab a boba, we're learning packet stuff π§β¨
πΈ NAME πΈ
samplicator β a UDP packets forwarder and duplicator. yes. both. it forwards AND duplicates, it's an overachiever and we love that for it π«Ά
β¨ SYNOPSIS β¨
samplicator [-p port] [-s address] [-d level] [-b size] [-n] [-S] [-x delay] [-c config] [-f] [-h] A.B.C.D[/port[/freq][,ttl]]
that's the whole shape of it. flags, then one destination spec at the end. the destination spec is doing a lot of work tbh, we'll get to it π
π¦ DESCRIPTION π¦
okay so picture this: samplicator is a simple program. it listens for UDP datagrams β think NetFlow, sFlow, SNMP Trap, Syslog, the whole lil friend group β on a network port, and then it sends copies of those datagrams on to a set of destinations. iconic behaviour, no notes π
and then it gets extra, because optionally it can do sampling, meaning: instead of forwarding every single packet, it forwards only 1 in N. so you're not drowning your poor downstream collector, you're giving it a tasteful curated feed. slay.
another option, and this one is main character energy fr: it can "spoof" the IP source address, so that the copies appear to come from the original source rather than from the relay. so downstream thinks it's talking directly to the origin. sneaky. effective. π
π OPTIONS π
these are the command-line options the server accepts. one bullet per flag, no skips, we don't do that here:
-pport β UDP port to accept flows on. default is2000. π-saddress β interface address to accept flows on. default is any (so, like, all of them, she's flexible).-dlevel β debug level. more level, more lore.-bsize β set socket buffer size. default is65536.-nβ don't compute the UDP checksum (leave it at0). living dangerously, honestly π-Sβ maintain (spoof) source addresses. this is the shapeshifter one β¨-xdelay β transmit delay in microseconds. yes, *micro*seconds. she's precise.-cconfig β specify a config file to read. (there's a whole CONFIG section below, don't worry, we'll get there π«Ά)-fβ fork program into background. bye bestie, she's going to live in the bg now.-hβ print this usage message and exit. the classic cry-for-help flag.
and then the positional bits, which are also extremely important so don't scroll past them:
A.B.C.Dβ is the receiver's IP address.- port β is the UDP port to send to. default is
2000. - freq β is the sampling rate. default is
1. - ttl β is the sending packets TTL value. default is
64.
ngl the destination argument is a little nest of slashes and commas: A.B.C.D[/port[/freq][,ttl]]. read it slowly, it's fine, i promise π
π CONFIG π
the config file has its own lil grammar, and it's this:
A.B.C.D[/E.F.G.H]: receiver
let's break down the players:
A.B.C.Dβ is the senders IP address. (yes, it says "senders". we're quoting the vibe here.)E.F.G.Hβ is a mask to apply to the sender. default is255.255.255.255.- receiver β is the IP address of receiver. the final destination, the end of the journey, the chosen one β
π₯ NOTES π₯
samplicatorcurrently only supports IPv4. so if you came here looking for IPv6, she is not ready for that conversation yet π- receivers specified on the command line will get all packets.
- receivers specified in the config will get only packets with a matching source.
that distinction is lowkey the whole personality of the program, so, like, remember it π
πΈ FILES πΈ
/usr/sbin/samplicate
(yes, spelled like that, exactly like that, we do not correct it, we respect it π)
π AUTHOR π
samplicator was originally written by Simon Leinen <simon.einen@gmail.com>.
this manual page was written by Vladimir Pavljuchenkov <spiderx@spiderx.dp.ua> for Gentoo Linux (and may be used by others).
both of them? legends. absolute icons. we stan ππ
π the lil sign-off π
that's the whole page, bestie β this was samplicator(8) from the samplicator source, dated February 25, 2013. old but gold, fr fr. now go forward some packets π
β¨π¦
π¦ where this page comes from
- opensuse-leap 16.0: samplicator 1.3.8rc1+git.20171112-bp160.1.6 Β· GPL-2.0-only
- opensuse-leap 16.0: samplicator 1.3.8rc1+git.20171112-bp160.1.6 Β· GPL-2.0-only
- opensuse-leap 16.0: samplicator 1.3.8rc1+git.20171112-bp160.1.6 Β· GPL-2.0-only
- opensuse-leap 16.0: samplicator 1.3.8rc1+git.20171112-bp160.1.6 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms