Write as follows and execute with sudo
require_relative "lib/simple_bridge"
br = SimpleBridge::Bridge.new("eth0", "eth1")
br.run
Forwarding packets between two network interfaces
MAC address learning
https://gist.github.com/k-sone/8036832
https://gist.github.com/boxofrad/4511ba4357401a0ea7a04e4d394b9609#file-bind_socket-rb