[pptp-server] route rules in linux and Windows ??

Frank Cusack fcusack at fcusack.com
Thu Aug 8 21:35:20 CDT 2002


On Fri, Aug 09, 2002 at 04:53:03PM -0300, Carlos Arnt wrote:
> Man i mess all info this time ...

Actually, you did pretty well the first time!

> --
> Windows 2000 Server - Using Dial Up connection.
> He is a proxy then he use has the IP 192.168.1.1 (Mask 255.255.255.0)
> I have 3 machines below that are - 192.168.1.2  to 192.168.1.3.
> 
> ----
> Server
> --
> Linux usign pptpd server .
> He is using a Cable modem connection on his eth0 and has the IP
> 192.168.10.160 in his ETH1.
> Have 30 machines using it . ( 192.168.10.x) Mask 255.255.255.0
> I leave the range - 192.168.10.170-180 to VPN purposes.
> --------
> 
> I just need to know when the client connect (Win2000) how make the computers
> that are in the (192.168.1.x) network see the (192.168.10.x) computers
> connected in the server side over the tunnel.
> 
> Also i put to when the client connect always receive the IP 192.168.10.171.
> 
> I think it's simple .
> 
> If i'm wrong please someone tell-me !!
> 
> Under the Linux server i must put this :
> 
> /sbin/route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.10.171
> 
> (Think that with this i tell the server this route)
> 
> But what put under the WIndows 2000 client ?? To his inside networks
> computers see the inside networks computer of the vpn server ??
> 
> 
> I think i just need two rules one at each computer (server and client) but
> what rule ??

You shouldn't need any rule on the windows side.  It should send 192.168.10
packets over to your linux server.  If the other computers on the windows
side do not have a default route to the windows server, THEN they need
a route 192.168.10.0/255.255.255.0 to 192.168.1.1 (the windows proxy machine).

The other machines on the linux side need to either have a default route
pointing to the pptp server or a 192.168.1.x route.

route add -net 192.168.1.0/24 gw 192.168.10.160

/fc




More information about the pptp-server mailing list