REMCTL_SET_SOURCE_IP(3)

πŸ“¦
version 3.18 Β· 3 versions
, in debian bookworm, debian trixie, epel 9, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ REMCTL_SET_SOURCE_IP(3) ✨

okay bestie, welcome to the remctl Library Reference πŸ’– this is the page for remctl_set_source_ip, and it's genuinely so chill, i promise.


πŸŽ€ NAME πŸŽ€

remctl_set_source_ip β€” pick the source IP your remctl client connections ride out on πŸ›«


🌸 SYNOPSIS 🌸

#include <remctl.h>

int remctl_set_source_ip(struct remctl *r, const char *source);

πŸ¦‹ DESCRIPTION πŸ¦‹

so like. remctl_set_source_ip() sets the source IP address for all the remctl_open() calls you make afterwards on that same struct remctl object. it's a set-it-and-then-go situation πŸ’…

call this function before remctl_open() if your remctl client connections need to come from one specific source IP. that's the whole vibe. no cap.

the source parameter can be either an IPv4 or an IPv6 address (assuming the host supports IPv6, obviously, we can't manifest IPv6 out of nowhere 🧚).

⚠️ okay so listen, this part is important: if you set an IPv4 source address and then try to connect to an IPv6 address or an IPv6-only host β€” or if you flip it and set an IPv6 address and then try to connect to an IPv4 address or an IPv4-only host β€” remctl_open() is gonna hand you a connection failure error. not a vibe. keep your families matching bestie 😭

πŸ’œ RETURN VALUE πŸ’œ

remctl_set_source_ip() returns true on success and false on failure.

if it fails, you the caller should call remctl_error() to grab the error message. don't just sit there wondering, go get the tea β˜•


⭐ COMPATIBILITY ⭐

this interface was added in version 3.0. so if you're on something older, that's a you problem, upgrade bestie πŸ™ˆ


πŸ‘‘ AUTHOR πŸ‘‘

Russ Allbery <eagle@eyrie.org>


Copyright 2011, 2014 The Board of Trustees of the Leland Stanford Junior University

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.

SPDX-License-Identifier: FSFAP


🫢 SEE ALSO 🫢

The current version of the remctl library and complete details of the remctl protocol are available from its web page at <https://www.eyrie.org/~eagle/software/remctl/>.


and that's the whole page, bestie πŸ’– this was version 3.18, dated 2022-05-09, and it's giving "go forth and set your source IP correctly" energy. slay πŸŽ€βœ¨