Hi all.
First i want direct point out i'm green with OpenWRT, so i directly say sorry to everyone that came here to get a easy solution...
I'm trying to create my VPN router based on GL-mt300n v2 on OpenWrt 19.07.0-rc2 r10775-db8345d8e4. I got Cyberghost vpn. I want to have 2-3 diferent wifi networks, where 1st is standard internet and 2nd and 3rd is for 2 OpenVPN clients from 2 diferent countries.
GL-mt300n v2 has 2 Lan ports, so
WAN port - that will be just WAN... DHCP client to main internet provider network
LAN port - because this is only port that can be used it will needed to be worked with taged VLANs
vlan2 - is current WAN vlan
vlan1 - standard Lan router
vlan10 - VPN first country
This way i can connect from my PC to 3 networks on 1 cable, just by seting proper VLAN on nic
WiFi
1st - Standard Wifi
2nd - VPN
I managed to set up vpn and normal network but getting strange thing.
When VPN is enabled than on VPNWifi i get vpn but nothing on StandardWifi.
When VPN is disabled (stoped) of course nothing on VPNWifi and internet on StandardWifi
So it is something with my vpn setup as i do not change nothing more
in logs found this
PUSH: Received control message: 'PUSH_REPLY,sndbuf 393216,rcvbuf 393216,comp-lzo no,redirect-gateway def1,dhcp-option DNS 185.93.180.131,dhcp-option DNS 194.187.251.67,dhcp-option DNS 38.132.106.139,route 10.252.200.1,topology net30,ifconfig 10.252.202.238 10.252.202.237,peer-id 19,cipher AES-256-GCM'
So i added
pull-filter ignore redirect-gateway
to my ovpn config file.
Now i get internet on standardwifi but not on VPNWifi
Can anyone help me to configure it