Page 1 of 1

Add host route (/32 route) into kernel on client up

Posted: Sun Nov 12, 2017 3:04 am
by cbabs
Hi,

I'm trying to add /32 routes when a client comes up and remove them when they disconnect. Cisco might call it reverse route injection. Unfortunately it seems a bug is in my way. https://community.openvpn.net/openvpn/ticket/180

I use RADIUS for auth and this causes the -client-connect script to not work. Any ideas I can get the client IP into the route table? I mean please and thank you!

CB

Re: Add host route (/32 route) into kernel on client up

Posted: Mon Nov 13, 2017 2:21 am
by TinCanTech
Your problem may or may not have anything what-so-ever to do with #180

Please see:
HOWTO: Request Help ! {2}

Re: Add host route (/32 route) into kernel on client up

Posted: Tue Nov 14, 2017 4:06 am
by cbabs
That's why I said 'seems' not 'is'. Based off the error I was getting it seemed the same as 180. If I was sure I would have said 'is'. Sorry to insult anyone, I'm new to this forum.

Re: Add host route (/32 route) into kernel on client up

Posted: Tue Nov 14, 2017 12:13 pm
by TinCanTech
We cannot see your --client-connect script nor the openvpn log file ..

Please see:
HOWTO: Request Help ! {2}

Note: #180 is a very specific bug to do with the order of execution, if you are really hitting that barrier then you will probably have to change what you are doing because I don't think that bug is going to get fixed any time soon ..

Re: Add host route (/32 route) into kernel on client up

Posted: Tue Nov 14, 2017 3:26 pm
by cbabs
I read the guide. I will repost with more useful info shortly. Thank you.