i want to route all traffic from ether4 though a vpn to change my ip
i tried some solutions from here but the computer connect to ether4 never has internet access
Code: Select all
/interface bridge
add name=bridge
/interface wireguard
add listen-port=42192 mtu=1420 name=wgvpn # i want to route all traffic from ether4 through this
add listen-port=13231 mtu=1420 name=wireguard # for connecting to my network from outside
/interface list
add name=switch
/interface bridge port
add bridge=bridge interface=switch
/interface list member
add interface=ether1 list=switch
add interface=ether2 list=switch
add interface=ether3 list=switch
add interface=ether4 list=switch
add interface=ether5 list=switch
/interface wireguard peers
add allowed-address=192.168.0.2/32 interface=wireguard name=peer1 private-key="..." public-key="..."
add allowed-address=0.0.0.0/0,::/0 client-address=10.8.0.15/24 client-dns=1.1.1.1 endpoint-address=... \
endpoint-port=51820 interface=wgvpn name=wgvpn preshared-key="..." public-key="..."
/ip address
add address=192.168.0.1/24 interface=wireguard network=192.168.0.0
/ip dhcp-client
add interface=bridge
/ip firewall nat
add action=masquerade chain=srcnat out-interface=bridge src-address=192.168.0.0/24