Community discussions

MikroTik App
 
smartel
just joined
Topic Author
Posts: 2
Joined: Mon Oct 04, 2010 2:31 am

Getting ovpn-client to work over a pppoe connection

Mon Oct 04, 2010 2:47 am

Hi,

I am trying to connect my routerOS device to my Linux OpenVPN server. The problem is that when I enable the ovpn-client interface, I lose Internet connectivity (pppoe-client configured on the same routerOS device). And the vpn doesn't work.

If I try to ping anything on Internet after enabling my ovpn-client, I get a "no route to host" error message. But, looking at my routes, the default route is still there...

My configuration on routerOS:
/interface ovpn-client add certificate=<certificate> connect-to=<OpenVPN server ip> mode=ip user=routeros password=<password> profile=default add-default-route=no
My OpenVPN server config on Linux: (always worked fine with the OpenBSD client I am trying to replace with routerOS)
port 1194
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 192.168.3.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
max-clients 1
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
verb 3
Any idea what my problem could be?
 
riaanmaree
Frequent Visitor
Frequent Visitor
Posts: 66
Joined: Thu Aug 31, 2006 10:42 pm
Location: Johannesburg, South Africa
Contact:

Re: Getting ovpn-client to work over a pppoe connection

Mon Oct 04, 2010 1:11 pm

You did not enable 'set default route' on the OVPN connection, which is fine.

After establishing the OVPN connection, check IP > Addresses to make sure you do not have the same IP range on different interfaces. All ranges/subnets need to be unique.
 
smartel
just joined
Topic Author
Posts: 2
Joined: Mon Oct 04, 2010 2:31 am

Re: Getting ovpn-client to work over a pppoe connection

Mon Oct 04, 2010 2:22 pm

Yes, all ranges/subnets need to be unique. And it's the case.

And, looking at the state of my ovpn-interface and looking at the logs of my server, the connection is never successfully established. So my routerOS device doesn't even get it's ip address from the VPN.
 
riaanmaree
Frequent Visitor
Frequent Visitor
Posts: 66
Joined: Thu Aug 31, 2006 10:42 pm
Location: Johannesburg, South Africa
Contact:

Re: Getting ovpn-client to work over a pppoe connection

Wed Oct 06, 2010 11:19 pm

We had the same problem with OVPN when using the wrong "Auth" and/or "Cipher". It connected, but could not ping at all.

Who is online

Users browsing this forum: girishg, GoogleOther [Bot], sas2k and 159 guests