Skip to content

nategraf/l2bridge-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

l2bridge Driver

Docker libnetwork remote driver for layer two aware networks, for when bridge is too smart for its own good.

The majority of the code in this code is appropriated from the libnetwork bridge driver itself, and the modifications are largely reductive.

Features, compared to the standard bridge driver:

  • Overlapping ip subnets are permitted.
  • Bridge interface is assigned no IP addresses, keeping it at layer 2 and increasing security.
  • External interfaces may be attached without trouble.

This driver is written in support of my larger project Naumachia. Check it out!

Installation as a service with SysV (Debian/Ubuntu)

# Download the service script and install it to init.d
sudo curl -L https://raw.githubusercontent.com/nategraf/l2bridge-driver/master/sysv.sh -o /etc/init.d/l2bridge
sudo chmod +x /etc/init.d/l2bridge

# Download the driver to usr/local/bin
sudo curl -L https://github.com/nategraf/l2bridge-driver/releases/latest/download/l2bridge-driver.linux.amd64 -o /usr/local/bin/l2bridge
sudo chmod +x /usr/local/bin/l2bridge

# Activate the service
sudo update-rc.d l2bridge defaults
sudo service l2bridge start

# Verify that it is running
sudo stat /run/docker/plugins/l2bridge.sock
#  File: /run/docker/plugins/l2bridge.sock
#  Size: 0               Blocks: 0          IO Block: 4096   socket
#  ...

About

Docker libnetwork remote driver for layer two aware networks, for when bridge is too smart for its own good

Resources

License

Stars

Watchers

Forks

Packages

No packages published