/README (70d1482667fbea25d33d3bbed803bb508cf0dd53) (855 bytes) (mode 100644) (type blob)
Name: force_bind
Author: Catali(ux) M. BOIE - catab at embedromix dot ro
Start date: 2010-10-26
Description: Force binding on a specific IP and/or port.
Works with both IPv4 and IPv6.
It is useful if you have a binary application without sources
and without the possibility to configure address or port to
bind to.
License: GPLv3
How it works: force_bind is a shared object that is loaded with LD_PRELOAD and hooks 'bind' function.
Forcing an IP/port to bind to is done with environments variables.
Examples:
1. FORCE_BIND_ADDRESS=127.0.0.1 FORCE_BIND_PORT=33 LD_PRELOAD=${LD_PRELOAD}:/usr/lib/force_bind.so your_program # force binding to 127.0.0.1/33.
2. FORCE_BIND_ADDRESS=127.0.0.2 LD_PRELOAD=${LD_PRELOAD}:/usr/lib/force_bind.so your_program # force binding to 127.0.0.2
Installation:
- ./configure
- make
- make install
Mode |
Type |
Size |
Ref |
File |
100644 |
blob |
43 |
9108d94cb8e6f127c99b7099975be00532899907 |
.gitignore |
100644 |
blob |
30 |
d987fa5df957830331139935d517009e2911b0cf |
INSTALL |
100644 |
blob |
35147 |
94a9ed024d3859793618152ea559a168bbcbb5e2 |
LICENSE |
100644 |
blob |
541 |
b035b10712cea5a98c1d9e50887c363226307608 |
Makefile.in |
100644 |
blob |
855 |
70d1482667fbea25d33d3bbed803bb508cf0dd53 |
README |
100644 |
blob |
174 |
a0af61e812bd62970aa1e3dc33c883c756520f42 |
TODO |
100755 |
blob |
23 |
d33bb6c4ecdce1390ce1db3c79ea3b93e22ea755 |
configure |
100755 |
blob |
12723 |
62411b6de6bc9d88b550b7c96e140e8ce9015086 |
duilder |
100644 |
blob |
261 |
11bcae688fe61c68a0e1ac8e6694459208cbc2e3 |
duilder.conf |
100644 |
blob |
3807 |
a5207a60db67a4c778de9ee0e238069c6c978978 |
force_bind.c |
100644 |
blob |
804 |
b7ef7798c25d781fc2c7790aa80f8f431703e781 |
force_bind.spec.in |
100755 |
blob |
165 |
83d21d25e27dc624569788a2467ff66002d3b4a3 |
test1.sh |
100644 |
blob |
1135 |
ef564034e516db96e7e9346000e4a7917da3b82d |
test_bind.c |
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/force_bind
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/force_bind
Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/force_bind
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main