SC_REMOTED(1)
π sc_remoted β the remote-control bestie for your scamper squad π
okay so hi bestie!! welcome to sc_remoted, a page from the General Commands Manual, and honestly? she's giving main character energy. what she does is let you connect to a scamper(1) instance running somewhere else on the network, talk to it, and get results back in warts format. like a group chat but for packet measurement. iconic. β¨
β¨ SYNOPSIS β¨
sc_remoted [-?46D] [-O options] [-P [ip:]port] [-U directory]
[-c tls-certificate] [-p tls-privatekey] [-e pidfile]
[-Z zombie-time]
πΈ DESCRIPTION πΈ
sc_remoted is the utility that gives you the power to connect to a scamper(1) instance running remotely, interact with it by issuing commands, and receive the results in warts format. it's giving long-distance relationship but make it networking. π¦
the options are as follows, bestie β read them all, don't skip, i will know:
-?β prints a list of command line options and a synopsis of each. she's helpful like that. π-Dβ causessc_remotedto operate as a daemon. she's going to background mode, no cap.-4β causessc_remotedto only listen for IPv4-based connections.-6β causessc_remotedto only listen for IPv6-based connections.-Ooptions β allows the behavior ofsc_remotedto be further tailored. the current choices for this option are, and i quote, lowkey:allowgroup: allow members of the unix domain socket's group to access to the unix domain sockets created bysc_remotedallowother: allow anyone on the system access to the unix domain sockets created bysc_remoteddebug: print debugging messagesselect: useselect(2)with all sockets, rather thanepoll(2)orkqueue(2)
-P[ip:]port β specifies the IP address and port on the local host wheresc_remotedshould listen for incoming connections. if an IP address is not specified,sc_remotedwill listen on all available IP addresses for incoming connections. versatile queen.-Udirectory β specifies the directory on the local host where unix domain sockets corresponding to remote hosts should be placed.-ctls-certificate β specifies the server certificate file in PEM format to advertise to remotescamper(1)instances.-ptls-privatekey β specifies the private key file in PEM format that corresponds to the certificate file. this key should have a passphrase, andsc_remotedwill prompt for the passphrase when starting up. keep it secret, keep it safe, bestie. π-epidfile β specifies the name of a file to write the process ID to.-Zzombie-time β specifies the length of timesc_remotedwill retain state for a disconnectedscamper(1)instance, allowing it to resume. by defaultsc_remotedretains state for 15 minutes. she waits for you to come back. π
π EXAMPLES π
okay so the intended use of the remote control socket built into scamper(1) is as follows. a central server with IP addresses 192.0.2.1 and 2001:db8::1 runs a sc_remoted process listening on a port for remote scamper process, placing control sockets in a specified directory:
sc_remoted -P 31337 -U scamper-remote-sockets
then, a remote host with IP address 198.51.100.55 runs scamper and connects to the remote controller:
scamper -R 192.0.2.1:31337
the sc_remoted process places a unix domain socket in the directory corresponding to the remote process. the name corresponds to the source IP address and port the remote scamper process connected to controller with. if the scamper process used source port 1025, then the unix domain socket's name will be:
scamper-remote-sockets/198.51.100.55:1025
if a second remote host with IP address 2001:db8:1234::1 runs scamper and connects to the remote controller:
scamper -R [2001:db8::1]:31337
the same sc_remoted process will place another unix domain socket in the directory corresponding to the remote process. if the scamper process used source port 1026, then the unix domain socket's name will be:
scamper-remote-sockets/2001:db8:1234::1.1026
π USING TRANSPORT LAYER SECURITY π
sc_remoted and scamper support the use of transport layer security (TLS) using OpenSSL to authenticate and encrypt communications between sc_remoted and scamper. to use this support requires a public certificate signed by a certificate authority. Scamper will verify the certificate presented by sc_remoted and disconnect if the certificate presented by sc_remoted cannot be validated. no fake certs allowed, periodt. π
generating a certificate that will be accepted by scamper requires you to create a certificate request and pass it for signing to a certificate authority. to generate a private key in file remotepriv.pem, and a request to sign the key in remotereq.pem:
openssl req -new -keyout remotepriv.pem -out remotereq.pem
and then send the remotereq.pem file to the certificate authority for signing.
do not send remotepriv.pem; that key must remain private to you. fr fr. π«Ά
when openssl prompts for a passphrase, choose a passphrase that is unique and keep the passphrase secret. when your chosen certificate authority signs your private key, it will return a file which we will call remotecert.pem. both remotecert.pem and remotepriv.pem are required parameters to sc_remoted to enable TLS support:
sc_remoted -P 31337 -U scamper-remote-sockets -c remotecert.pem -p
remotepriv.pem
and then passing the -O tls option to scamper:
scamper -R example.com:31337 -O tls
π SIGNAL HANDLERS π
sc_remoted installs handlers for two signals: SIGINT and SIGHUP.
SIGINTcausessc_remotedto exit gracefully. she's leaving the party politely.SIGHUPcausessc_remotedto reload the TLS certificate and private key, without interrupting existing TLS connections. glow-up mid-conversation, obsessed. β¨
π SEE ALSO π
scamper(1), sc_attach(1), sc_wartsdump(1), warts(5), openssl(1)
π AUTHORS π
sc_remoted was written by Matthew Luckie <mjl@luckie.org.nz>.
and that's the whole page, bestie!! this lil beauty comes to you from Debian, dated March 28, 2020 β go forth and remote-control some scamper instances, you absolute icon. πβ¨π¦π
π¦ where this page comes from
- debian bookworm: scamper 20211212-1.1 Β· GPL-2.0-or-later
- debian trixie: scamper 20211212-1.2+b1 Β· GPL-2.0-or-later
- ubuntu noble: scamper 20211212-1.2build1 Β· GPL-2.0-or-later
- ubuntu questing: scamper 20211212-1.2build1
- ubuntu resolute: scamper 20211212-1.2build2 Β· GPL-2.0-or-later
- ubuntu stonking: scamper 20211212-1.2build2 Β· GPL-2.0-or-later
- Copyright (c) 2014-2020 Matthew Luckie
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms