ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Roman V. Tutov" <tutov@aston.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>,
	ALT Linux Community <community@lists.altlinux.org>
Subject: [Comm] OpenVpn и роутинг 
Date: Thu, 26 Jan 2006 12:40:20 +0300
Message-ID: <43D89904.4050309@aston.ru> (raw)

Добрый день

Есть несколько филиалов компании ,нужно их между собой
соединить с помощью openvpn .Причем так - ,что-бы адрес
выдавался клиенту автоматом .

офис 1 - сеть 192.168.10.0 в ней сервер openvpn
офис 2 - сеть 192.168.60.0 в ней клиент openvpn

клиент к серверу цепляеться ...все шифруеться красота ..
стали настраиватьт роутинг между подсетями и оказалось что
на сервере интерфейс выглядит так
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

Почему разные адреса ? как тогда мне прописать роутинг
в подсеть 60.0 ?

#########################################
#конфиг сервера
proto udp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh2048.pem
crl-verify /etc/openvpn/keys/crl.pem
server 192.168.100.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.10.0 255.255.255.0"
push "dhcp-option DNS 192.168.10.21"
keepalive 10 120
comp-lzo
user openvpn
group openvpn
persist-key
persist-tun
status openvpn-status.log
verb 3

########################################
#конфиг клиента
client
dev tun
proto udp
remote X.X.X.X 1195
resolv-retry infinite
nobind
persist-key
persist-tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/konstantinovsk.crt
key /etc/openvpn/keys/konstantinovsk.key
comp-lzo
verb 3
ns-cert-type server

-- 
Тутов Роман Викторович
ст.Системный администратор
ASTON Agro Industrial Company Group
Россия,344002, г.Ростов-на-Дону,Промзона "Заречная"
ул.1-я Луговая,3 тел.: (863 2) 999049
JID:tutov@jabber.aston.ru
mailto:tutov@aston.ru


             reply	other threads:[~2006-01-26  9:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-26  9:40 Roman V. Tutov [this message]
2006-01-26 15:45 ` [Comm] Re: [Sysadmins] " Nikolay A. Fetisov

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=43D89904.4050309@aston.ru \
    --to=tutov@aston.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