From: Andrey Rahmatullin <wrar@altlinux.ru>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] NetworkManager-openvpn
Date: Mon, 19 Oct 2009 11:32:49 +0600
Message-ID: <20091019053249.GX19095@wrars-comp.wrarsdomain> (raw)
In-Reply-To: <20091019011316.7041de43@sem.localdomain>
[-- Attachment #1: Type: text/plain, Size: 2414 bytes --]
On Mon, Oct 19, 2009 at 01:13:16AM +0400, Mikhail Efremov wrote:
> В /var/log/messages должно быть полно информации и от NM, и от openvpn.
Если брать вариант с TLS, то так:
nm-openvpn[12716]: OpenVPN 2.0.8 i586-alt-linux-gnu [SSL] [LZO] [EPOLL] built on Jun 5 2009
NetworkManager: <info> VPN connection '<вырезано>' (Connect) reply received.
nm-openvpn[12716]: WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
nm-openvpn[12716]: WARNING: file '/usr/share/doc/openvpn-docs-2.0.9/sample-keys/client.key' is group or others accessible
nm-openvpn[12716]: UDPv4 link local: [undef]
nm-openvpn[12716]: UDPv4 link remote: <вырезано>:1194
nm-openvpn[12716]: WARNING: 'ifconfig' is present in remote config but missing in local config, remote='ifconfig 10.8.0.2 10.8.0.1'
nm-openvpn[12716]: [Test-Server] Peer Connection Initiated with <вырезано>:1194
nm-openvpn[12716]: TUN/TAP device tun0 opened
nm-openvpn[12716]: /usr/lib/nm-openvpn-service-openvpn-helper tun0 1500 1541 init
NetworkManager: <info> VPN plugin failed: 2
nm-openvpn[12716]: script failed: shell command exited with error status: 1
nm-openvpn[12716]: Exiting
> Если мало - можно выставить переменную окружения OPENVPN_DEBUG, тогда
> NM запускает openvpn с --verb 10.
Попробую.
Где придётся выставлять эту переменную?
> Адреса должны приезжать от сервера
Вот я и не понял, что для этого надо сделать. Конфиг сервера:
dev tun
ifconfig 10.8.0.1 10.8.0.2
tls-server
ca /usr/share/doc/openvpn/examples/sample-keys/ca.crt
cert /usr/share/doc/openvpn/examples/sample-keys/server.crt
key /usr/share/doc/openvpn/examples/sample-keys/server.key
dh /usr/share/doc/openvpn/examples/sample-keys/dh1024.pem
> я не понял о каком warning речь.
WARNING: 'ifconfig' is present in local config but missing in remote
config, local='ifconfig 10.8.0.1 10.8.0.2'
> Я без проблем подключался к тестовому openvpn серверу. Точно правильно
> выставлены опции openvpn: LZO, UDP/TCP, TUN/TAP?
Все галки в "дополнительно" сняты.
--
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(6):
Изменение базовых /etc/{passed,group} не поможет для многочисленных
систем, где пакет setup будет обновлен, а не установлен заново.
К сожалению, по этой причине мы не можем свободно манипулировать базовыми
/etc/{passed,group}.
-- ldv in devel@
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
next prev parent reply other threads:[~2009-10-19 5:32 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-17 14:09 Andrey Rahmatullin
2009-10-18 21:13 ` Mikhail Efremov
2009-10-19 5:32 ` Andrey Rahmatullin [this message]
2009-10-19 12:43 ` Mikhail Efremov
2009-10-19 13:11 ` Andrey Rahmatullin
2009-10-19 13:27 ` Alexander Volkov
2009-10-19 17:43 ` Mikhail Efremov
2009-10-19 4:24 ` Ildar Mulyukov
2009-10-19 12:44 ` Mikhail Efremov
2009-10-19 13:17 ` Ildar Mulyukov
2009-10-19 17:56 ` Mikhail Efremov
2009-10-20 3:47 ` Ildar Mulyukov
2009-10-20 22:32 ` Mikhail Efremov
2009-10-21 8:07 ` Ildar Mulyukov
2009-10-21 11:37 ` Mykola S. Grechukh
2009-10-21 12:37 ` Ildar Mulyukov
2009-10-21 12:39 ` Mykola S. Grechukh
2009-10-21 13:07 ` Mikhail Efremov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091019053249.GX19095@wrars-comp.wrarsdomain \
--to=wrar@altlinux.ru \
--cc=sisyphus@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git