Andy
Well-Known Member
Второй вариант VPN подключения (Gentoo рулит)
В командной строке пишем:
/usr/sbin/pptp-command setup
Появится меню:
[root@ut1ab andy]# /usr/sbin/pptp-command setup
И дальше начинается:
Tunnel Name: <имя туннеля>
Server IP: <82.137.137.30>
Образец выглядит так:
route: add default gw <ваш внешний ip>
route: add -host 82.137.137.30/32 gw 192.168.224.1
route: add -host 0.0.0.0/0 gw <ваш внешний ip>
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 (\\).
Второй вариант VPN подключения
В командной строке пишем:
/usr/sbin/pptp-command setup
Появится меню:
[root@ut1ab andy]# /usr/sbin/pptp-command setup
жмем "1"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
Жмем "2"1.) List CHAP secrets
2.) Add a New CHAP secret
3.) Delete a CHAP secret
4.) Quit
Add a NEW CHAP secret.
NOTE: Any backslashes (\) must be doubled (\\).
Local Name:
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: <сюда вводим логин>
Remote Name:
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: <Вводим пароль один раз и все>
This is the password or CHAP secret for the account specified. The
password will not be echoed.
Password:
Adding secret ut1ab PPTP password *
41.) List CHAP secrets
2.) Add a New CHAP secret
3.) Delete a CHAP secret
4.) Quit
41.) 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"Add a NEW PPTP Tunnel.
1.) Other
Which configuration would you like to use?:
И дальше начинается:
Tunnel Name: <имя туннеля>
Server IP: <82.137.137.30>
А вот и самое интересное: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(8) command.
Enter a blank line to stop.
Образец выглядит так:
route: add default gw <ваш внешний ip>
route: add -host 82.137.137.30/32 gw 192.168.224.1
route: add -host 0.0.0.0/0 gw <ваш внешний ip>
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: ut1ab
Remote Name [PPTP]:
Adding vpn - gw.vpn.telesweet.net - ut1ab - PPTP
Added tunnel vpn
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
?: 7
The current default is /etc/ppp/peers/vpn
1.) vpn
2.) cancel
Which tunnel do you want to be the default?: 1
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