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
- Host: GitHub
- URL: https://github.com/chadsr/rpi-network-bridge
- Owner: chadsr
- License: gpl-3.0
- Created: 2016-11-22T13:10:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-09T13:38:03.000Z (over 9 years ago)
- Last Synced: 2025-02-06T11:56:13.808Z (over 1 year ago)
- Topics: bridge, networking, raspberry-pi, rpi-network-bridge
- Language: Shell
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```