I am setting up a Raspberry Pi 4B with openWrt and adding Wireguard and Proton VPN. I have 2 ethernet adapters plugged in to the 3.x usb and I use them as LAN. They are bridged. The on board Ethernet is WAN. I get internet traffic but the VPN is not working since I get the Cox ip addr out. I have tinkered around in the Firewall setting but nothing seems to bring the Firewall into the VPN. I work from Luci but I'll include my /etc/config/network file with the keys 'x'ed out.
config interface 'loopback'
option device 'lo'
option proto 'static'
list ipaddr '127.0.0.1/8'
config globals 'globals'
option dhcp_default_duid '0004e0df6614390042fbaf7df9f3d0f701bc'
option ula_prefix 'fd83:8a72:cfc5::/48'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth1'
list ports 'eth2'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ip6assign '60'
list ipaddr '192.168.2.1/24'
list dns '192.168.1.5'
list dns '8.8.8.8'
config interface 'wan'
option proto 'dhcp'
option device 'eth0'
option peerdns '0'
list dns '10.2.0.1'
config device
option name 'eth0'
config device
option name 'eth1'
config device
option name 'eth2'
config interface 'proton'
option proto 'wireguard'
option private_key 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
list addresses '10.2.0.2/32'
list dns '10.2.0.1'
option defaultroute '0'
config wireguard_proton
option description 'wg-US-GA-523.conf'
option public_key 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
list allowed_ips '0.0.0.0/0'
list allowed_ips '::/0'
option persistent_keepalive '25'
option endpoint_host '89.222.103.2'
option endpoint_port '51820'
option route_allowed_ips '1'
Good, so that computer is certainly on the lan of this Pi4 router. That said, make sure it doesn't have any other network connections (such as wifi) that could be using your upstream network.
And please post the output of the other two commands I requested.
You have the wan network listed in two firewall zones-- that will give indeterminate results. It should be only in the wan zone. For the simple case of forwarding all Internet use to a commercial VPN service you can just add the wireguard interface to the wan zone instead of creating a separate zone.
Also way too many list dns. The only one you need is in one place (typically under the wireguard interface) to direct DNS to the Proton server.
Well, they say ignorance is bliss and I may have been ignorant but I was in bliss. Then I removed the other lines mentioned and it is so broke that doing a restore to the point where it worked doesn't fix it.
So I worked through your guide and found that it is hard to follow. I think I got everything relevant for my setup. Nothing. Dinked with the firewall settings. Nothing. I'm beginning to doubt whether this is doable by anything short of a network engineer or an openWrt expert.