From: Serg Tselishev <rotkart@gmail.com>
To: "ALT Linux sysadmins' discussion" <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Нужна консультация по настройке openvpn в etcnet
Date: Thu, 20 Dec 2012 19:34:14 +0300
Message-ID: <CAHMX-rbGqbxDHqY5u31S6MyougPmX5UmYwXufQeJX30YSD-RhA@mail.gmail.com> (raw)
In-Reply-To: <20121220120711.GA26411@mw.mithraen.ru>
20 декабря 2012 г., 16:07 пользователь Денис Смирнов
<mithraen@freesource.info> написал:
> On Thu, Dec 20, 2012 at 01:47:24PM +0300, Serg Tselishev wrote:
>
>>> Или вообще руки у меня кривые (хотя все конфигурации писал по
>>> документации из пакетов дистрибутива)?
> ST> Руки!!!
>
> Раз уж так, рецепт-то как решили проблему сразу опубликуйте :)
>
> --
> С уважением, Денис
>
> http://mithraen.ru/
> ----------------------------------------------------------------------------
>
> _______________________________________________
> Sysadmins mailing list
> Sysadmins@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/sysadmins
>
Так я, вроде, на письмо Михаила отвечал, писал в чем дело.
Повторю:
Параметр DHCP_TIMEOUT в man etcnet_options отсутствует,
зато в man dhcpcd я нашёл решение проблемы:
Итоговая конфигурация:
[root@sterver ~]# cat /etc/net/ifaces/tap0/options
DISABLED=no
ONBOOT=yes
TYPE=ovpn
TUNTAP_USER=openvpn
BOOTPROTO=dhcp
DHCP_CLIENT=/sbin/dhcpcd
DHCP_ARGS="--background --timeout 60 -C resolv.conf"
REQUIRES="eth1"
[root@sterver ~]# cat /etc/net/ifaces/tap0/ovpnoptions
remote 81.ххх.ххх.60
dev tap
lladdr ee:05:99:1b:10:36
secret /etc/openvpn/keys/static.key
proto udp
comp-lzo
script-security 2
То есть всего-то надо указать dhcpcd просить аренду в фоновом режиме -
и, пока там идёт тайм-аут, успевает установиться openvpn-соединение!!!
Завтра перезапущу машину, чтобы посмотреть так это или нет, но service
network reload отрабатывает уже сейчас.
Еще раз спасибо!!!
--
С уважением,
Целищев Сергей
prev parent reply other threads:[~2012-12-20 16:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-17 17:52 Serg Tselishev
2012-12-17 18:33 ` Alexandr Kobets
2012-12-17 18:49 ` Serg Tselishev
2012-12-17 19:04 ` Alexandr Kobets
2012-12-17 19:51 ` Serg Tselishev
2012-12-18 5:44 ` Serg Tselishev
2012-12-19 7:52 ` Mikhail Efremov
2012-12-20 7:40 ` Serg Tselishev
2012-12-20 10:47 ` Serg Tselishev
2012-12-20 12:07 ` Денис Смирнов
2012-12-20 16:34 ` Serg Tselishev [this message]
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=CAHMX-rbGqbxDHqY5u31S6MyougPmX5UmYwXufQeJX30YSD-RhA@mail.gmail.com \
--to=rotkart@gmail.com \
--cc=sysadmins@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 sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git