With my not working bonded /etc/rc.local iptables configuration identical, except I have switched the LAN interface (enp3s0f1) for the bond interface (pigeon-lan): #!/bin/bash Using the netplan example for a bonded router as a starting point, my not working bonded netplan yaml looks like: network: Iptables -t nat -A POSTROUTING -o enp3s0f0 -j MASQUERADE # NAT traffic going out the WAN interface. Iptables -A FORWARD -i enp3s0f0 -o enp3s0f1 -m conntrack \ # Forward WAN packets to the LAN if the LAN initiated the connection.
Iptables -A FORWARD -i enp3s0f1 -o enp3s0f0 -j ACCEPT Iptables -A INPUT -i enp3s0f0 -m conntrack \ # Accept incoming packets from the WAN if the router initiated the connection. # Accept incoming packets from localhost and the LAN interface. # Default policy to drop all incoming packets. Here is the working netplan yaml for the two port version: network:Īnd the working /etc/rc.local iptables configuration: #!/bin/bash I can't seem to get this to work.either as a bond or adding static/dhcp interfaces to my netplan yaml use 1 port for WAN, 3 other for LAN aggregated link to the switch) plus its a learning exercise right.?! I thought I could create a bond in netplan and increase the bandwidth (e.g. as I have some storage in the box as well and both switch/net card support link aggregation. interface 2 then connects to a new Cisco SG220-26 switch and hey presto I'm up with all my LAN devices! interface 2 (LAN): static 10.1.0.1 with DHCP server setup over subnet 10.1.0.0/24 interface 1 (WAN): DHCP conn to BT HomeHub router (192.168.1.?/24) old lenovo desktop with an old 4 port HP Gigabit Adaptor NC364T Which works great using only two ports of the four ports available on my hardware which is:
HOW TO BUILD A LAG SWITCH HOW TO
How to build a simple router Ubuntu Server 18.04 I followed this fab tutorial below to make my own Ubuntu based router: I'm spinning out on this one.! Someone please help!