Labonte-LucPaul / ifbind

Bind two network interfaces to simulate a loop back.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ifbind

Bind two network interfaces to simulate a loop back.

This program was created as an alternative to bind two L2TP network interfaces. Using brctl didn't work.

Build

sudo make apt-deps
make build
sudo make install

Usage

Help

To print the help for the arguments: ./ifbind --help

Simple bind

sudo ./ifbind --bind tunnel1:tunnel2 --bind tunnel3:tunnel4

or

sudo ./ifbind --bind tunnel1:tunnel2,tunnel3:tunnel4

Debug

To activate the debug level and view each time a packets is being forwarded: use the --debug (or -d) argument.

sudo ./ifbind --debug --bind tunnel1:tunnel2

Interactive Mode

To use the interactive mode use the argument --interactive (or -i).

The interactive mode allow you to connect/disconnect binded interfaces by providing a CLI.
Note that the logs are outputed in the fine ifbind.log located in pwd.

To view a list of commands, in the CLI type help.

About

Bind two network interfaces to simulate a loop back.

License:GNU Affero General Public License v3.0


Languages

Language:C++ 98.3%Language:Makefile 0.7%Language:CMake 0.5%Language:Dockerfile 0.3%Language:Shell 0.2%