How i make openvpn vpn connection go through ethernet interface ?
outgoing or incoming connection ?
i wanna connect the ethernet to any any device that accepts and ethernet and the vpn will automaticly connect sorry i am a noob
are the networks of "any device" considered trusted?
if not, you should really connect using the wan port ...
https://openwrt.org/docs/guide-user/services/vpn/openvpn/client-luci
yeah its trusted
can you help with the ethernet port ?
pretty sure the link given should work for you.
thanks bro
bro thats do not work have in your mind that i am using a raspberry pi 4b
sis, what "do not work" ?
when i turn on the vpn the internet automaticly cut off and when i close the vpn the internet comes back ?
have you considered https://openwrt.org/docs/guide-user/services/vpn/openvpn/client#commercial_provider ?
https://github.com/egc112/OpenWRT-egc-add-on/tree/main/openvpn-pbr-vpn could also be relevant.
Start by configuring OpenWrt on the Pi for regular lan->wan routing. Since there is only one Ethernet port you will need to use wifi for the wan side. Add a network interface named wan
of protocol DHCP client and connect a wifi client configured to connect to your wifi network. At this point anything connected to the Ethernet port should have regular non-VPN Internet access through the Pi. Then follow the standard guides to install a "whole house" VPN client.
If you configure the firewall with a separate zone for the VPN and then intentionally break non VPN lan->wan forwarding, the lan clients will have no Internet unless the VPN is working-- the so called "kill switch."