|
|
|
@ -421,23 +421,27 @@ riverctl float-filter-add title 'Firefox — Sharing Indicator' |
|
|
|
|
(assuming that your internet-connected interface is eth0, |
|
|
|
|
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 modprobe dummy |
|
|
|
|
doas brctl addbr br0 |
|
|
|
|
doas brctl setfd br0 0 |
|
|
|
|
doas brctl addif br0 dummy0 |
|
|
|
|
doas ifconfig br0 10.157.1.1 netmask 255.255.255.0 up |
|
|
|
|
echo dummy | doas tee -a /etc/modules |
|
|
|
|
echo 1 | doas tee -a /proc/sys/net/ipv4/ip_forward |
|
|
|
|
doas apk add iptables |
|
|
|
|
doas rc-update add iptables |
|
|
|
|
doas iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE |
|
|
|
|
doas iptables --append FORWARD --in-interface br0 -j ACCEPT |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
to persist: |
|
|
|
|
``` |
|
|
|
|
echo dummy | doas tee -a /etc/modules |
|
|
|
|
doas /etc/init.d/iptables save |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|