[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: Marius Andreiana <mandreiana@xxxxxxxxxx>
  • Date: Sat, 31 Jul 2004 10:28:41 +0300

On Sat, 2004-07-31 at 08:59 +0200, Jon Bendtsen wrote:
> Den 31. jul 2004, kl. 7:35, skrev Marius Andreiana:
> 
> > 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 ?"
> 
> push "route 192.168.0.0 255.255.255.0 default"
Jul 31 10:22:07 marte openvpn[7033]: OpenVPN ROUTE: OpenVPN needs a
gateway parameter for a --route option and no default was specified by
either --route-gateway or --ifconfig options
Jul 31 10:22:07 marte openvpn[7033]: OpenVPN ROUTE: failed to parse/
resolve route for host/network: 192.168.0.0
 
> please look in the manual what default is translated to.
to what --route-gateway specifies, which I don't know what should be.

If I push "route 192.168.0.0 255.255.255.0 192.168.1.1", then:
Jul 31 08:45:33 marte openvpn[5409]: PUSH: Received control message:
'PUSH_REPLY,route 192.168.0.0 255.255.255.0 --route-gateway 192.168.1.1,
ping 10,ping-restart 60,ifconfig 192.168.1.4 255.255.255.0'
Jul 31 08:45:33 marte openvpn[5409]: OPTIONS IMPORT: timers and/or
timeouts modified
Jul 31 08:45:33 marte openvpn[5409]: OPTIONS IMPORT: --ifconfig/up
options modified
Jul 31 08:45:33 marte openvpn[5409]: OPTIONS IMPORT: route options
modified
Jul 31 08:45:33 marte openvpn[5409]: RESOLVE: Cannot resolve host
address: --route-gateway: [HOST_NOT_FOUND] The specified host is
unknown.
Jul 31 08:45:33 marte openvpn[5409]: OpenVPN ROUTE: failed to parse/
resolve route for host/network: 192.168.0.0

Another problem, from home I can see only the office server internal IP,
but no other IPs from internal net (workstations)

Thanks a lot for helping clarifying

-- 
Marius Andreiana
Galuna - Solutii Linux in Romania
http://www.galuna.ro


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