Port details |
- socketbind Library to bind applications on multihomed machines to specific IP address
- 1_1 net
=4 1_1Version of this port present on the latest quarterly branch. - Maintainer: nm@web.am
 - Port Added: 2003-04-01 00:50:21
- Last Update: 2023-10-05 13:16:51
- Commit Hash: 03a9755
- People watching this port, also watch:: openssl, macopix, aide, fluxbox, ntraceroute
- License: not specified in port
- Description:
- This library allows you to bind any application which is dynamically linked
with libc. It provides convient way to bind socket's source IP to one of the
multiple IP's available on computer.
To use it first of all point LD_PRELOAD to installed library and set BINDTO
variable to desired IP address to bind.
Here is the wrapper to run any command binded to some IP address:
env LD_PRELOAD=/usr/local/lib/libsocketbind.so.1 BINDTO=$MY_IP_ADDRESS $*
¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- socketbind>0:net/socketbind
- To install the port:
- cd /usr/ports/net/socketbind/ && make install clean
- To add the package, run one of these commands:
- pkg install net/socketbind
- pkg install socketbind
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: socketbind
- Flavors: there is no flavor information for this port.
- distinfo:
- There is no distinfo for this port.
Packages (timestamps in pop-ups are UTC):
- This port has no dependencies.
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- net_socketbind
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
- There is no master site for this port.
|
Number of commits found: 13
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
1_1 05 Oct 2023 13:16:51
    |
Eugene Grosbein (eugen)  |
net/socketbind: unbreak the library
The code has multiple issues making it unusable with modern FreeBSD:
* it uses long gone ascii2addr() function removed in 2007;
* it passes hardcoded "/usr/lib/libc.so" path to dlopen(),
but now it is plain text hint file;
* this IPv4-only code neglects to check passed domain for PF_INET
messing with sockets in other domains (like PF_INET6, PF_LOCAL).
Still, it is very useful while dealing with software like Nagios
that does not support binding to specific IPv4 address
for outgoing connections. The library solves the problem with single line
in /etc/rc.conf:
nagios_env="LD_PRELOAD=/usr/local/lib/libsocketbind.so.1 BINDTO=192.168.6.1"
This changes unbreaks the library making it usable again. |
1 20 Jul 2022 14:22:37
    |
Tobias C. Berner (tcberner)  |
net: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* <ports@c0decafe.net>
* Aaron Dalton <aaron@FreeBSD.org>
* Aaron Straup Cope <ascope@cpan.org>
* Aaron Zauner <az_mail@gmx.at>
* Adam Jette <jettea46@yahoo.com>
* Adam Weinberger <adamw@FreeBSD.org>
* Alan Eldridge <alane@geeksrus.net>
* Alex Bakhtin <Alex.Bakhtin@gmail.com>
* Alex Deiter <Alex.Deiter@Gmail.COM>
* Alex Dupre <ale@FreeBSD.org>
* Alex Dupre <sysadmin@alexdupre.com> (Only the first 15 lines of the commit message are shown above ) |
1 06 Apr 2021 14:31:13
    |
Mathieu Arnold (mat)  |
all: Remove all other $FreeBSD keywords. |
1 06 Apr 2021 14:31:07
    |
Mathieu Arnold (mat)  |
Remove # $FreeBSD$ from Makefiles. |
1 09 Jan 2018 19:06:34
  |
danfe  |
For the ports under `net' category: remove superfluous linefeeds. |
1 02 Mar 2015 23:42:00
  |
bapt  |
Remove Author from pkg-descr and white space fixes |
1 22 Nov 2014 14:43:24
  |
antoine  |
Cleanup plist |
1 24 Jun 2014 03:53:43
  |
vanilla  |
Stagify.
Approved by: portmgr (blanket approval) |
1 20 Sep 2013 22:10:25
  |
bapt  |
Add NO_STAGE all over the place in preparation for the staging support (cat:
net) |
1 24 Oct 2011 09:11:38
 |
dougb  |
The vast majority of pkg-descr files had the following format when they
had both lines:
Author: ...
WWW: ....
So standardize on that, and move them to the end of the file when necessary.
Also fix some more whitespace, and remove more "signature tags" of varying
forms, like -- name, etc.
s/AUTHOR/Author/
A few other various formatting issues |
1 19 Apr 2008 17:56:05
 |
miwi  |
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav) |
1 28 Jan 2006 11:49:53
 |
pav  |
- Fix typo in COMMENT |
1 01 Apr 2003 00:49:48
 |
edwin  |
socketbind - new port submission
This library allows you to bind any application which is
dynamically linked with libc to certain IP address. It
provides convient way to bind socket's source IP to one of
the multiple IP's available on computer.
PR: ports/50147
Submitted by: Gaspar Chilingarov <nm@web.am> |
Number of commits found: 13
|