Coder Social home page Coder Social logo

aibooster0 / fixsrcip-orig Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rantocaudgb/fixsrcip-orig

0.0 0.0 0.0 41 KB

fixsrcip [github clone of original, as at 2016-03-03]

Home Page: http://0pointer.de/lennart/projects/fixsrcip/

License: Other

Shell 11.20% C 72.36% Makefile 16.44%

fixsrcip-orig's Introduction

github clone of (original, as at 2016-03-03) fixsrcip - http://0pointer.de/lennart/projects/fixsrcip/

From fixsrcip-0.1/README
-------------------------

fixsrcip is a tool for binding outgoing TCP and UDP client sockets
(IPv4) to specific source IP addresses on multi-homed hosts. It
requires a current Linux system. It uses LD_PRELOAD for preloading a
small shared object to executables. The shared object overwrites the
connnect() (for TCP) and sendto()/sendmsg() (for UDP) functions.

If you don't understand the short description above, fixsrcip is
probably not what you're looking for.

For compiling and installing just run "make" and copy the newly
created shared object "fixsrcip.so" and the shell script "fixsrcip" to
some suitable places. (i.e. /usr/local/lib resp. /usr/local/bin) Edit
fixsrcip and adjust the path to the shared object in the variable
FIXSRCIP. (For building fixsrcip you have to install gcc, make and the
glibc header files.)

After that you may use fixsrcip like this:

      fixsrcip 47.11.8.15 telnet heise.de 80

(This will start telnet for a connction to heise.de on port 80 using
the source address 47.11.8.15.)

You may use fixsrcp.so without using the supplied shell script. The
shared object relies on $LD_PRELOAD set to the path of the shared
object and $FIXSRCIP set to the source IP address to use. This is
especially useful for assigning different IP adresses for different
users: just put 

       export LD_PRELOAD=/path/to/fixsrcip.so FIXSRCIP=47.11.8.15 

into the respective ~/.bashrc file. Whenever the user logs in he'll
make his connections from 47.11.8.15.

No, there's no protection that the user disables fixsrcip at his own
will.

No, fixsrcip doesn't work on SETUID programs. This is a limitation of
LD_PRELOAD.

No, fixsrcip doesn't work for ICMP. This is a limitation of BSD
sockets. Yes, that means that ping doesn't care about $FIXSRCIP.

-- 
November 2004, Lennart Poettering, mzsvkfepvc (at) 0pointer (dot) de

$Id: README 43 2004-11-22 20:57:29Z lennart $

fixsrcip-orig's People

Contributors

rantocaudgb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.