[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Web openvpn.net

Re: [Openvpn-users] route single address through vpn

Willy Offermans wrote:
On Wed, Mar 28, 2007 at 01:34:34PM +0800, Max Waterman wrote:
Erich Titl wrote:
Max Waterman wrote:
Erich Titl wrote:
Max Waterman wrote:
Erich Titl wrote:

How do I enter a route to a subnet in the client configuration file?
You don't, you should push that route from the server.
So, you're saying there's no way to do that?
The easiest (and probably canonical) way to do this is to push it from 
the server.
OK, so it's harder (and probably not canonical). So how do I do it in a 
client configuration file?

I'm sure there are plenty of reasons why one would want to be able to do 
this....plucking one out of the air...I don't have access to the server 
configuration...oh, and another...the server works just fine, so better 
not mess with it else I risk upsetting other people. In my case, it's 
the latter. I want to make sure it works on the client before I mess 
with the server, if I even bother to.


Hello Max,

I use ``up /etc/openvpn/up.sh'' in my client.conf file. In the
/etc/openvpn/up.sh file you can put something like 
``/sbin/route add -net netmask''
Although this solution depends much on the OS you are using
Sounds like a workable solution, though I'd have to do a 'down.sh' too, I suppose.


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
Openvpn-users mailing list