An open API service indexing awesome lists of open source software.

https://github.com/chadsr/rpi-network-bridge

For bridging/forwarding from an internet interface to another (local) interface on the Raspberry Pi
https://github.com/chadsr/rpi-network-bridge

bridge networking raspberry-pi rpi-network-bridge

Last synced: 2 months ago
JSON representation

For bridging/forwarding from an internet interface to another (local) interface on the Raspberry Pi

Awesome Lists containing this project

README

          

# rpi-network-bridge

A script for bridging two network interfaces on a Raspberry Pi, since simple bridging methods seem to not be compatible with the RPI hardware design.

## 1. Requirements
```
# For RPI 2 or below:
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install dnsmasq -y

# If you are using a RPI 3:
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install rpi-update dnsmasq -y
sudo rpi-update
```

## 2. Examples
**Note:** This script does not cover setting up network interfaces. It already assumes the two interfaces you wish to bridge are already configured correctly.

For example interface configurations, look below, or do some Googling :)
### Example eth0
```
allow-hotplug eth0
iface eth0 inet static
address 172.24.1.1
network 172.24.1.0
netmask 255.255.255.0
broadcast 172.24.1.255
gateway 172.24.1.1
```

### Example wlan0
```
auto wlan0
iface wlan0 inet dhcp
wpa-driver madwifi #realtek driver (for realtek usb adapter)
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf # wpa config
```