Updated information on bridges (for them to persist between restarts)

main
Inga 🏳‍🌈 2 years ago
parent 7156c6d0f0
commit 589a411fb6
  1. 22
      README.md

@ -421,23 +421,27 @@ riverctl float-filter-add title 'Firefox — Sharing Indicator'
(assuming that your internet-connected interface is eth0, (assuming that your internet-connected interface is eth0,
and that you want to use 10.157.1.0/24 subnet for the container) and that you want to use 10.157.1.0/24 subnet for the container)
Add the following to ``:
```
auto br0
iface br0 inet static
bridge-ports dummy0
bridge-stp 0
address 10.157.1.1
netmask 255.255.255.0
```
and do
``` ```
doas apk add bridge doas apk add bridge
doas modprobe dummy doas modprobe dummy
doas brctl addbr br0 echo dummy | doas tee -a /etc/modules
doas brctl setfd br0 0
doas brctl addif br0 dummy0
doas ifconfig br0 10.157.1.1 netmask 255.255.255.0 up
echo 1 | doas tee -a /proc/sys/net/ipv4/ip_forward echo 1 | doas tee -a /proc/sys/net/ipv4/ip_forward
doas apk add iptables doas apk add iptables
doas rc-update add iptables doas rc-update add iptables
doas iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE doas iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
doas iptables --append FORWARD --in-interface br0 -j ACCEPT doas iptables --append FORWARD --in-interface br0 -j ACCEPT
```
to persist:
```
echo dummy | doas tee -a /etc/modules
doas /etc/init.d/iptables save doas /etc/init.d/iptables save
``` ```

Loading…
Cancel
Save