Hi,
Looking for some guidance with setting up Proton VPN for use by only 1 VLAN
All other VLANs should continue to use the ISPs gateway (I already have several other VLANs set up and working)
Can this be done without PBR/mwan3? i.e. using routes/rules?
If I have interfaces ProtonVPN and ProtonLAN, how do I force clients of ProtonLAN (192.168.30.1/24) to use the ProtonVPN gateway while all other clients use the ISP gateway?
It would seem that just setting IPv4 gateway on ProtonLAN to 10.2.0.2, should be enough, but this doesn't work.
Thanks and Seasons Greetings
config partials
/etc/config/network
config bridge-vlan
option device 'br-lan'
option vlan '5'
list ports 'lan1:t'
list ports 'lan2:t'
config interface ProtonVPN
option proto 'wireguard'
option private_key '0987654321mnbvcxzlkjhgdfdsapoiuytrewq'
list addresses '10.2.0.2/32'
list dns '10.2.0.1'
option list_port '51815'
config wireguard_ProtonVPN
option description 'Imported peer configuration'
option public_key'qwertyuiopasdfghjklzxcvbnm1234567890'
list allowed_ips '0.0.0.0/0'
option endpoint_host '149.xx.xx.xxx'
option endpoint_port '51820'
option persistent_keepalive '25'
config interface 'ProtonLAN'
option proto 'static'
option device 'br-lan.5'
option ipaddr '192.168.30.1'
option netmask '255.255.255.0'
list dns '10.2.0.1'
option default route '0'
/etc/config/firewall
option rule 'Allow-Wireguard-51815'
list proto 'udp'
option src 'wan'
option dest_port '51815'
option target 'ACCEPT'
config zone
option name 'protonvpn'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
list network 'ProtonVPN'
config zone
option name 'protonlan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
list network 'ProtonLAN'
config forwarding
option src 'protonlan'
option dest 'protonvpn'