[resolved] Force push "redirect-gateway" on ONE client only

Scripts with setup, destroy, and modify routing tables and firewall rulesets for client connections.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Locked
Daniel S
OpenVpn Newbie
Posts: 5
Joined: Mon Dec 05, 2011 6:00 pm

[resolved] Force push "redirect-gateway" on ONE client only

Post by Daniel S » Mon Dec 05, 2011 6:13 pm

I have a road warrior connected to VPN, and I'd like all traffic routed to the specific client to go through OpenVPN server. I'm aware that push "redirect-gateway def1" forces route on every client.

Is it possible to force route on client side config or be more specific with what client I'd like to force route to?

Maybe the only solution would be to push redirect-nopull on all other devices.


Cheers,


Daniel

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: Force push "redirect-gateway" on ONE client only

Post by Mimiko » Tue Dec 06, 2011 6:50 am

Use ccd files to push that option only to that client. Create a file with client's common name and put in that file only needed options.

Daniel S
OpenVpn Newbie
Posts: 5
Joined: Mon Dec 05, 2011 6:00 pm

Re: Force push "redirect-gateway" on ONE client only

Post by Daniel S » Tue Dec 06, 2011 6:30 pm

Works great. Thank you.

Locked