From: Mikhail Efremov <sem@altlinux.ru>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] NetworkManager-openvpn
Date: Mon, 19 Oct 2009 16:43:03 +0400
Message-ID: <20091019164303.58bbf15d@sem.localdomain> (raw)
In-Reply-To: <20091019053249.GX19095@wrars-comp.wrarsdomain>
On Mon, 19 Oct 2009 11:32:49 +0600 Andrey Rahmatullin wrote:
> '/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.
> Попробую.
> Где придётся выставлять эту переменную?
Можно остановить NM и запускать руками как
OPENVPN_DEBUG=1 /usr/sbin/NetworkManager --no-daemon
> > Адреса должны приезжать от сервера
> Вот я и не понял, что для этого надо сделать. Конфиг сервера:
>
> 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'
Хм, я использовал просто server, оно разворачивается в tls-server,
ifconfig, etc. Такого warning не припомню. Т.е примерно так:
port 1194
proto udp
dev tun
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
server 10.8.0.0 255.255.255.0
user openvpn
group openvpn
ifconfig-pool-persist ipp.txt
keepalive 10 120
persist-key
persist-tun
client-to-client
status openvpn-status.log
verb 3
# Дополнительные маршруты
push "route 11.11.11.0 255.255.255.0"
> > Я без проблем подключался к тестовому openvpn серверу. Точно
> > правильно выставлены опции openvpn: LZO, UDP/TCP, TUN/TAP?
> Все галки в "дополнительно" сняты.
Там главное чтобы совпадало с настройками сервера. Например, если на
сервере выставлено comp-lzo, а на клиенте - нет, то работать ничего не
будет, причем вменяемой диагностики openvpn не выдает, насколько я
помню.
--
WBR, Mikhail Efremov
next prev parent reply other threads:[~2009-10-19 12:43 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
2009-10-19 12:43 ` Mikhail Efremov [this message]
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=20091019164303.58bbf15d@sem.localdomain \
--to=sem@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