Routing Specific IP over OpenVPN

Report wireless and/or network connectivity problems in this forum.

Moderator: Moderators

ispyisail
Moderator
Posts: 5180
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Routing Specific IP over OpenVPN

Post by ispyisail »

I've done more testing

This time router to router (no different to a windows client)

100% works as expected

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: Routing Specific IP over OpenVPN

Post by pbix »

Thanks a bunch for the picture you drew. In my case I am trying to route in the opposite direction. That is from the server through the client to the client's ISP.

Image

In my case I think only the OpenVPN server needs a route change since the connection initiates from there. Could you do this on your setup and take a note of the route tables on each using either "route" or "push route" in the server config?

I will add that the route table in my server looks correct. There is no change in the route table of my client. Traceroute just times out basically on the first hop.
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

ispyisail
Moderator
Posts: 5180
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Routing Specific IP over OpenVPN

Post by ispyisail »

ahh

your not making it easy for me.

I'll do some tests

ispyisail
Moderator
Posts: 5180
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Routing Specific IP over OpenVPN

Post by ispyisail »

I can confirm that it does not work in the other direction.

I think the problem is in the OpenVPN client

ispyisail
Moderator
Posts: 5180
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Routing Specific IP over OpenVPN

Post by ispyisail »

I've spent much time with this problem for my own interest.

conclusion is, special routing can only happen behind the "OpenVPN client". You can't go in the other direction.

My understanding of OpenVPN is now much improved

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: Routing Specific IP over OpenVPN

Post by pbix »

ispyisail wrote:conclusion is, special routing can only happen behind the "OpenVPN client". You can't go in the other direction.
Could you elaborate on this conclusion? What constitutes "special routing" and how does what I want to do violate what OpenVPN can do?
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

ispyisail
Moderator
Posts: 5180
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Routing Specific IP over OpenVPN

Post by ispyisail »

Could you elaborate on this conclusion? What constitutes "special routing" and how does what I want to do violate what OpenVPN can do?
It was just my conclusion from an observation of my tests........

Could be wrong

Post Reply