I have tried every guide which did i found in internet and nothing help me. I have created my own vpn via openvpn. These profiles work great when i'm starting them on windows/mac/iphone through app. But when i start it on router via openwrt it saying that it starteed but i have no internet when do it. I have created the interface, uploaded the profile and i was trying to fix it with firewall, but nothing helps
With VPN enabled, please run the following commands (copy-paste the whole block) and paste the output here, using the "Preformatted text
</> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have
ubus call system board; \ uci export network; uci export dhcp; uci export firewall; \ ip -4 addr ; ip -4 ro li tab all ; ip -4 ru; \ ls -l /etc/resolv.* /tmp/resolv.* /tmp/resolv.*/* ; head -n -0 /etc/resolv.* /tmp/resolv.* /tmp/resolv.*/*
Do you control the OpenVPN server as well? If so, does the OpenVPN server push any routes to the clients?
yes i control it. how to check if it does route clients?
Check the server's .ovpn configuration file. Is there a
push route directive in there?
in .ovpn file there is no something with "push"
OpenWrt is fine. Check on the server side that you allow forwarding and that you masquerade the packets going out of the upstream interface.
but when i use absolutely same .ovpn profile on mac/ios/windows everything works fine. What should i do?
Yes, @degencia, most probably you just started the connection using the configuration file, it created the (unconfigured) interface and installed the routes, but OpenWrt doesn't know which zone it is assigned to.
You need to:
- Create OpenVPN interface with proto=none (the interface name is tun0 by default)
- Assign zone WAN for this interface
I'm pretty sure all of these are described in details on the wiki. Go check it out.
- I have setted up the wan zone in interface.
- tun0 is settled too
Let's have a look at the logs first. From both server and client.
Where i can find them?
i should start this on vpn server?
"logread -e openvpn; netstat -l -n -p | grep -e openvpn"
There is a line above this one.
And this concerns OpenWrt. If the server is running a different OS, you'd need to find the logfile.
Your lan and wan address spaces overlap.
You need to change the IP address of the
How to do this?
uci set network.lan.ipaddr='192.168.2.1' uci commit network /etc/init.d/network restart /etc/init.d/dnsmasq restart /etc/init.d/openvpn restart
OH MY GOD IT HELPED!!!
Now everything is working great!
Thank you very much <3
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.