Помогите пожалуйста. Cкажите, в каком месте я делаю неправильно:
Дано: Логин = USER_LOGIN Пароль = USER_PASSWD Адрес пользователя = user_address маска сети = 255.255.255.0 шлюз = нет адрес сервера pptp = pptp_address внешний адрес = my_ip + есть еще DNS-сервера
Попытка ( где-то 20-я ):
[root@localhost]# /usr/sbin/pptp-command setup ls: /etc/pptp.d: No such file or directory 1.) Manage CHAP secrets 2.) Manage PAP secrets 3.) List PPTP Tunnels 4.) Add a NEW PPTP Tunnel 5.) Delete a PPTP Tunnel 6.) Configure resolv.conf 7.) Select a default tunnel 8.) Quit ?: 1 1.) List CHAP secrets 2.) Add a New CHAP secret 3.) Delete a CHAP secret 4.) Quit ?: 2 Add a NEW CHAP secret.
NOTE: Any backslashes (\) must be doubled (\\).
Local Name:USER_LOGIN
This is the 'local' identifier for CHAP authentication.
NOTE: If the server is a Windows NT machine, the local name should be your Windows NT username including domain. For example:
domain\\username
Local Name: USER_LOGIN
Remote Name:USER_LOGIN
This is the 'remote' identifier for CHAP authentication. In most cases, this can be left as the default. It must be set if you have multiple CHAP secrets with the same local name and different passwords. Just press ENTER to keep the default.
Remote Name [PPTP]:
Password:USER_PASSWD
This is the password or CHAP secret for the account specified. The password will not be echoed.
1.) List CHAP secrets 2.) Add a New CHAP secret 3.) Delete a CHAP secret 4.) Quit ?: 4 1.) Manage CHAP secrets 2.) Manage PAP secrets 3.) List PPTP Tunnels 4.) Add a NEW PPTP Tunnel 5.) Delete a PPTP Tunnel 6.) Configure resolv.conf 7.) Select a default tunnel 8.) Quit ?: 4
Add a NEW PPTP Tunnel.
1.) Other Which configuration would you like to use?: 1 Tunnel Name: ARTX
Server IP: pptp_address
What route(s) would you like to add when the tunnel comes up? This is usually a route to your internal network behind the PPTP server. You can use substitution keywords as in /etc/pptp.d/ config file - TUNNEL_DEV is the tunnel interface. - DEF_GW is the existing default gateway. - IPLOCAL is the local IP address. - IPREMOTE is the remote IP address. The syntax to use is the same as the route( command. Enter a blank line to stop.
route: add default gw my_ip
route: add -host 0.0.0.0/0 gw user_address
route:
Local Name and Remote Name should match a configured CHAP or PAP secret. Local Name is probably your NT domain\username. NOTE: Any backslashes (\) must be doubled (\\).
Local Name: USER_LOGIN Remote Name [PPTP]: Adding ARTX - pptp_address - USER_LOGIN - PPTP Added tunnel ARTX 1.) Manage CHAP secrets 2.) Manage PAP secrets 3.) List PPTP Tunnels 4.) Add a NEW PPTP Tunnel 5.) Delete a PPTP Tunnel 6.) Configure resolv.conf 7.) Select a default tunnel 8.) Quit ?: 8