LINUX.ORG.RU
ФорумAdmin

Debian 6 & Openvpn


0

1

Доброе время суток всем, настраиваю OpenVPN server и не получаются пару моментов: 1. не могу сделать так чтобы linux клиентам назначался nameserver 2. как можно сделать чтобы при подключении на клиенте не спрашиволо постоянно логин и пароль?

Настройки сервера http://paste.pocoo.org/show/490543/

Настройки клиента http://paste.pocoo.org/show/490544/

# cat /etc/openvpn/auth.txt 
user
passwd

И клиент ругается

Oct 10 21:34:40 linux-2x5t openvpn[14598]: OpenVPN 2.1.4 x86_64-unknown-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on Nov  4 2010
Oct 10 21:34:40 linux-2x5t openvpn[14598]: Sorry, 'Auth' password cannot be read from a file
Oct 10 21:34:40 linux-2x5t openvpn[14598]: Exiting

И как настроить чтобы linux машины получали DNS?

Ответ на: комментарий от adriano32

1. а ничего что у меня стоит уже

push "dhcp-option DNS 172.16.0.4"

Если верить то эта запись только для виндовых клиентов!

2. мне не нужен досту по ключам а нужен по логин/пасс

mrtmexx
() автор топика
Ответ на: комментарий от mrtmexx

1. http://openvpn.net/index.php/open-source/documentation/howto.html

Windows clients can accept pushed DHCP options natively, while non-Windows clients can accept them by using a client-side up script which parses the foreign_option_n environmental variable list. See the man page or openvpn-users mailing list archive for non-Windows foreign_option_n documentation and script examples.

2. http://openvpn.net/index.php/open-source/documentation/manuals/65-openvpn-20x...

       --auth-user-pass [up]
              Authenticate with server using username/password.  up is a file containing username/password on 2 lines (Note: Open‐
              VPN  will  only read passwords from a file if it has been built with the --enable-password-save configure option, or
              on Windows by defining ENABLE_PASSWORD_SAVE in config-win32.h).

adriano32 ★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.