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

Re: [Openvpn-users] 2.0: setting route


  • Subject: Re: [Openvpn-users] 2.0: setting route
  • From: James Yonan <jim@xxxxxxxxx>
  • Date: Sat, 31 Jul 2004 15:28:11 -0500

On Saturday 31 July 2004 00:35, Marius Andreiana wrote:
> Hi
>
> I setup 2.0 version using tap between linux-linux.
> The 'office' is using 192.168.0.x for internal net, and server conf has:
>
> # The server's virtual subnet
> ifconfig 192.168.1.1 255.255.255.0
> ifconfig-pool 192.168.1.4 192.168.1.250
>
> The client works fine if I manually add the route to office internal
> net:
> route add -net 192.168.0.0 netmask 255.255.255.0 dev tap0
>
> How could I do this in openvpn directly, so it would work right away,
> for linux&windows clients?
> I don't what to put instead of ? below:
> #push "route 192.168.0.0 255.255.255.0 --route-gateway ?"

The push command above won't work.

You want something like

  push "route 192.168.0.0 255.255.255.0"
  push "route-gateway x.x.x.x"

James

____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users