You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sudo ip link add name fc-88-br0 type bridge
sudo ip link set fc-88-br0 up
sudo ip addr add 10.10.10.1/24 dev fc-88-br0
Create tap interfaces and add to bridge
sudo ip tuntap add dev fc-88-tap0 mode tap
sudo ip link set fc-88-tap0 up
sudo ip link set fc-88-tap0 master fc-88-br0
sudo ip tuntap add dev fc-88-tap1 mode tap
sudo ip link set fc-88-tap1 up
sudo ip link set fc-88-tap1 master fc-88-br0
Enable IP forwarding
sudo sysctl -w net.ipv4.ip_forward=1
echo "net.ipv4.ip_forward=1" | sudo tee -a /etc/sysctl.conf
Add iptables rules
sudo iptables -A FORWARD -i fc-88-br0 -o enp1s0 -j ACCEPT
sudo iptables -A FORWARD -i enp1s0 -o fc-88-br0 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -t nat -A POSTROUTING -o enp1s0 -j MASQUERADE