ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Nikolay A. Fetisov" <naf@naf.net.ru>
To: sysadmins@lists.altlinux.org
Cc: ALT Linux Community <community@lists.altlinux.org>
Subject: [Comm] Re: [Sysadmins] OpenVpn и роутинг
Date: Thu, 26 Jan 2006 18:45:39 +0300
Message-ID: <200601261845.42418.naf@naf.net.ru> (raw)
In-Reply-To: <43D89904.4050309@aston.ru>

On Thursday 26 January 2006 12:40, Roman V. Tutov wrote:
> Есть несколько филиалов компании ,нужно их между собой
> соединить с помощью openvpn .Причем так - ,что-бы адрес
> выдавался клиенту автоматом .

[ Если количество филиалов счётно - то может быть удобнее 
выдавать им фиксированные адреса. Для этого достаточно на 
сервере создать файлы настроек для конкретных клиентов См. 
параметр 'client-config-dir' в настройках сервера. ]

> ...
> на сервере интерфейс выглядит так
> tun0      Link encap:Point-to-Point Protocol
>            inet addr:192.168.100.1  P-t-P:192.168.100.2 
> Mask:255.255.255.255
>
> а вот на клиенте другой конец тоннеля выглядит так
> tun0      Link encap:Point-to-Point Protocol
>            inet addr:192.168.100.58  P-t-P:192.168.100.57 
> Mask:255.255.255.255
>
> Почему разные адреса ? 

Так и должно быть. Клиентам назначаются подсети /30.
Со стороны сервера клиент доступен как 192.168.100.58, со 
стороны клиента сервер - как 192.168.100.1.

> ...
> #конфиг сервера
> ...
Опцию 'client-to-client' случайно не забыли или она 
действительно не нужна? Без неё клиенты друг друга видеть не 
будут.

> ...
> #конфиг клиента
> ...
А вот без опции 'pull' клиент не будет забирать маршруты и 
прочее, что ему выдаёт  (push) сервер. Похоже, проблема именно 
в её отсутствии.

-- 
С уважением,
Николай Фетисов


      reply	other threads:[~2006-01-26 15:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-26  9:40 [Comm] " Roman V. Tutov
2006-01-26 15:45 ` Nikolay A. Fetisov [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=200601261845.42418.naf@naf.net.ru \
    --to=naf@naf.net.ru \
    --cc=community@lists.altlinux.org \
    --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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git