BSD Ports

net/socketbind 1_1 FreeBSD

Library to bind applications on multihomed machines to specific IP address

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Categories
net
Package size
3.0 KiB, 5.2 KiB installed

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 $*

In the other systems

SystemPortVersion
FreeBSDnet/socketbind1_1
DragonFlynet/socketbind1_1

Install

Binary package:

pkg install socketbind

From the ports tree:

cd /usr/ports/net/socketbind/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	socketbind>0:net/socketbind
LIB_DEPENDS=	libsocketbind.so:net/socketbind

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1_11_111_11_1
FreeBSD:14:quarterly1_11_1n/a1_11_1
FreeBSD:15:latest1_11_1n/a1_11_1
FreeBSD:15:quarterly1_11_1n/an/an/a
FreeBSD:16:latest1_11_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Files

pkg-plist 3
  • lib/libsocketbind.so.1
  • lib/libsocketbind.so
  • share/doc/socketbind/README

Commit history 0

No commits in the history this site was built from.