Code: Select all
/interface ethernet
set [ find default-name=ether1 ] disable-running-check=no name=WAN
/interface eoip
add local-address=10.66.66.1 mac-address=02::BA name=EOIP1 \
remote-address=10.66.66.2 tunnel-id=0
add local-address=10.66.67.1 mac-address=02::BA name=EOIP2 \
remote-address=10.66.67.2 tunnel-id=1
add local-address=10.66.68.1 mac-address=02::BA name=EOIP3 \
remote-address=10.66.68.2 tunnel-id=2
add local-address=10.66.69.1 mac-address=02::9C name=EOIP4 \
remote-address=10.66.69.2 tunnel-id=3
/interface wireguard
add listen-port=51820 mtu=1420 name=WG1
add listen-port=51821 mtu=1420 name=WG2
add listen-port=51822 mtu=1420 name=WG3
add listen-port=51823 mtu=1420 name=WG4
/interface bonding
add name=BOND slaves=EOIP2,EOIP1,EOIP3,EOIP4
/interface wireguard peers
add allowed-address=10.66.66.2/32 interface=WG1 persistent-keepalive=5s \
public-key="Cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxc="
add allowed-address=10.66.67.2/32 interface=WG2 persistent-keepalive=5s \
public-key="Cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxc="
add allowed-address=10.66.68.2/32 interface=WG3 persistent-keepalive=5s \
public-key="Cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxc="
add allowed-address=10.66.69.2/32 interface=WG4 persistent-keepalive=5s \
public-key="Cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxc="
/ip address
add address=10.66.66.1/24 interface=WG1 network=10.66.66.0
add address=10.66.67.1/24 interface=WG2 network=10.66.67.0
add address=10.66.68.1/24 interface=WG3 network=10.66.68.0
add address=10.66.69.1/24 interface=WG4 network=10.66.69.0
add address=10.100.100.1/24 interface=BOND network=10.100.100.0
/ip dhcp-client
add interface=WAN
/ip firewall filter
add action=accept chain=input dst-port=51820 protocol=udp
add action=accept chain=input dst-port=51823 protocol=udp
add action=accept chain=input dst-port=51822 protocol=udp
add action=accept chain=input dst-port=51821 protocol=udp
/ip firewall nat
add action=masquerade chain=srcnat out-interface=WG1
add action=masquerade chain=srcnat out-interface=WG2
add action=masquerade chain=srcnat out-interface=WG3
add action=masquerade chain=srcnat out-interface=WG4
add action=masquerade chain=srcnat out-interface=BOND
However, I can't ping the internet from BOND interface. Shouldn't it use the default gateway which is the WAN DHCP?
I want to be able to get internet (WAN interface) from BOND.