net/socketbind 1_1 DragonFly
Library to bind applications on multihomed machines to specific IP address
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- Categories
- net
- Package size
- 2.6 KiB, 5.0 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
| System | Port | Version |
|---|---|---|
| DragonFly | net/socketbind | 1_1 |
| FreeBSD | net/socketbind | 1_1 |
| HardenedBSD | net/socketbind | 1_1 |
| GhostBSD | net/socketbind | 1_1 |
Install
Binary package:
pkg install socketbind
From DPorts:
cd /usr/dports/net/socketbind && make install clean
Dependencies
No port depends on this one.