[pptp-server] Routing
Robert Dale
rdale at digital-mission.com
Thu Sep 30 18:40:18 CDT 1999
On Thu, 30 Sep 1999, Nhan NGO DINH wrote:
> I give an example: if the server has the "virtual" IP address 192.168.0.1,
> and the client has the "virtual" IP address 192.168.0.200, on the client
> side It's simple: in the ip-up script I must set up:
>
> route add -host 192.168.0.1 gw $REMOTE_ADDR
>
> Where $REMOTE_ADDR is the PPTP interface IP address of the server that
> Linux give to me as a parameter.
>
> In the server how can I set up this?
>
> route add -host $CLIENT_VIRTUAL_IP gw $REMOTE_ADDR
>
> How can I know the $CLIENT_VIRTUAL_IP?
ip-up is called with these parameters:
interface-name tty-device speed local-IP-address remote-IP-address ipparam
They go from $1 to $6. That probably should be in the PPP-HOWTO.
--
Robert Dale
Digital Mission
http://www.digital-mission.com
More information about the pptp-server
mailing list