Registered Member
|
Hello,
I have a router as server and I have an account hostname with dynamic DNS. I created from kde network manager the VPN connection. At gateway I added my hostname. At optional settings , gateway port ,I added the port I have on the router for openvpn.I also configured router for the hostname account. I can connect to vpn but I don't have internet access. The route -n after connecting to vpn:
Where 79.... is my correct external ip. Any ideas please? Thank you! |
Administrator
|
The OpenVPN connection as shown there, in that routing table, has been configured to not route all traffic over the VPN. It will only route traffic local to that network over the VPN, in this case - all systems in 192.168.1.0/24. All access to other networks is still being performed via the system default route, which is using your wireless connection.
On the "IPv4 Address" tab of the settings for this VPN connection, select "Routes" from the dropdown, and ensure that "Use only for resources on this connection" is not ticked.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Ok, I managed to make it work (I don't remember what I did) .
But the problem is that the IP doesn't change,it remains the same as for the network I am using to connect. Any ideas about that? PS: If I don't tick the "Use only for resources on this connection" , I have no internet access.It shows connected to vpn though. Thanks! |
Administrator
|
Please post the output of "ip addr" when connected to the VPN.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
-----_EDIT------------------------ I noticed 2 things. 1) My internet connection (while connected to vpn) goes off after 30-60seconds! 2) The IP is changing only if I don't check the "Use only this connection.." as you said (but still internet goes off after few seconds) From routers log:
Why is that? (the signal is ok) Thanks EDIT I don't know what I did but now i am connected to VPN but have no internet access. If I check the "Use only this connection.." ,then I have access but vpn doesn't seem to work because I saw traceroute and it doesn't have any difference before vpn and after. Τhe routers address is 192.168.1.1 route -n (before VPN):
route -n (after VPN):
My router is at 192.168.1.1. /etc/config/openvpn
/etc/config/firewall
|
Administrator
|
The change you have made in this case has been to put OpenVPN in a different subnet, in this case 10.10.10.0/24. Previously your primary network and OpenVPN were operating in the same subnet, 192.168.1.0/24 - which was causing routing conflicts I suspect.
From what I can tell, this might actually be a OpenWRT configuration issue now - can you try some traceroute's to local network and internet based systems both with and without the VPN connection being active?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Connected to my friends wifi (before vpn):
traceroute 192.168.1.151
1.151 is my other pc traceroute google.com
Connected to VPN: traceroute 192.168.1.151
traceroute google.com
Connected to VPN (if I check "Use only resources on this connection") : It is exactly the same as before VPN except the last digits.(of course google.com is different). traceroute google.com
In my /etc/config/network :
|
Registered Member
|
I remind you that it still shows:
Also, while i am connected to vpn ,i can ping 192.168.1.1 (router) 10.10.10.2 (tap0 interface) I can't ping 10.10.10.1 |
Administrator
|
Okay, that indicates that while the VPN is connecting successfully, it is unable to route any traffic. This means you have a configuration fault on the OpenWRT / OpenVPN Daemon side - as 10.10.10.1 should be pingable, regardless of how that option is checked.
I would suggest asking on the OpenWRT forums for more assistance, as they're more likely to be familiar with how to set it up properly.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]