OpenVPN Server 2.0.9 (Сетевое окружение)

Обсуждение настройки и работы сервисов, резервирования, сетевых настроек и вопросов безопасности ОС.

Модераторы: SLEDopit, Модераторы разделов

leksstav
Сообщения: 331

OpenVPN Server 2.0.9

Сообщение leksstav »

Кто может подсказать в такой фишке установил OpenVPN Server 2.0.9, всё работает вроде нормально.

1) захожу в пой пк набираю \\ip внутреннего пк ввожу имя и пароль который в домене и попадаю на комп
2) пингую все пк в локальной сети
3) печатаю на принтере сетевом

Проблема такая

Когда захожу в сетевое окружение вижу название домена, захожу и пустота не вижу компов в сети :-(((((
Хотя все пк пингуются и могу в них зайти.

Подскажите куда копать ?
Ставил OpenVPN под suse 10.3.
Спасибо сказали:
alfss
Сообщения: 262

Re: OpenVPN Server 2.0.9

Сообщение alfss »

за это отвечает мастер листинга сети- вопрос почему не отдаётся
настроен ли wins?
передаётся ли сервром информация о том что wins находится на оперд ip?
если опция в конфиги клиента pull?
Спасибо сказали:
IMB
Сообщения: 2567
ОС: Debian

Re: OpenVPN Server 2.0.9

Сообщение IMB »

Я думаю это никак не связано с OpenVPN. VPN свою работу сделал - обеспечил Вам доступ во внутреннию сеть. Далее, если я правильно понял, Вы воспользовались одним из вариантов удаленного рабочего стола, скорее всего RDP если сеть на Windows-машинах. Надо смотреть на работу обозревателя сети. И кстати, разве в домене можно просматривать машины через сетевое окружение, или у Вас рабочая группа?
Если я где ошибся поправьте и расскажите подробнее - как настроен vpn-сервер, bridge или router, как заходите, как организованна внутренняя сеть.
Спасибо сказали:
leksstav
Сообщения: 331

Re: OpenVPN Server 2.0.9

Сообщение leksstav »

IMB писал(а):
25.07.2008 22:38
Я думаю это никак не связано с OpenVPN. VPN свою работу сделал - обеспечил Вам доступ во внутреннию сеть. Далее, если я правильно понял, Вы воспользовались одним из вариантов удаленного рабочего стола, скорее всего RDP если сеть на Windows-машинах. Надо смотреть на работу обозревателя сети. И кстати, разве в домене можно просматривать машины через сетевое окружение, или у Вас рабочая группа?
Если я где ошибся поправьте и расскажите подробнее - как настроен vpn-сервер, bridge или router, как заходите, как организованна внутренняя сеть.



Нет домен самый обычный, не рабочаю группа :-))) Применяются статические ip, порядка 50 машин в домене
Да, я в домене спокойно могу просмотреть сетевое окружение.

Вот настройка на стороне сервера т.е. server.conf

port 1194

# TCP or UDP server?
proto tcp
;proto udp


dev tun


ca ca.crt
cert test.crt
key rest.key # This file should be kept secret

dh dh1024.pem

server 192.168.99.0 255.255.255.0

ifconfig-pool-persist ipp.txt

push "route 192.168.100.0 255.255.255.0" # это моя реальная подсеть
;push "route 192.168.20.0 255.255.255.0"

push "redirect-gateway def1"

push "dhcp-option DNS 192.168.99.1"
push "dhcp-option WINS 192.168.99.1"

# The keepalive directive causes ping-like
# messages to be sent back and forth over
# the link so that each side knows when
# the other side has gone down.
# Ping every 10 seconds, assume that remote
# peer is down if no ping received during
# a 120 second time period.
keepalive 10 120

# Enable compression on the VPN link.
# If you enable it here, you must also
# enable it in the client config file.
comp-lzo

# The maximum number of concurrently connected
# clients we want to allow.
max-clients 10

# It's a good idea to reduce the OpenVPN
# daemon's privileges after initialization.
#
# You can uncomment this out on
# non-Windows systems.
user nobody
group nobody

# The persist options will try to avoid
# accessing certain resources on restart
# that may no longer be accessible because
# of the privilege downgrade.
persist-key
persist-tun

# Output a short status file showing
# current connections, truncated
# and rewritten every minute.
status openvpn-status.log

verb 0

# Silence repeating messages. At most 20
# sequential messages of the same message
# category will be output to the log.
;mute 20

###################################################

Это конфиг у клиента

# Specify that we are a client and that we
# will be pulling certain config file directives
# from the server.
client

# Use the same setting as you are using on
# the server.
# On most systems, the VPN will not function
# unless you partially or fully disable
# the firewall for the TUN/TAP interface.
;dev tap
dev tun

# Windows needs the TAP-Win32 adapter name
# from the Network Connections panel
# if you have more than one. On XP SP2,
# you may need to disable the firewall
# for the TAP adapter.
;dev-node MyTap

# Are we connecting to a TCP or
# UDP server? Use the same setting as
# on the server.
proto tcp
;proto udp

# The hostname/IP and port of the server.
# You can have multiple remote entries
# to load balance between the servers.
remote <ip на который конекчусь> 1194 и порт конечно
;remote my-server-2 1194

# Choose a random host from the remote
# list for load-balancing. Otherwise
# try hosts in the order specified.
;remote-random

# Keep trying indefinitely to resolve the
# host name of the OpenVPN server. Very useful
# on machines which are not permanently connected
# to the internet such as laptops.
resolv-retry infinite

# Most clients don't need to bind to
# a specific local port number.
nobind

# Downgrade privileges after initialization (non-Windows only)
;user nobody
;group nobody

# Try to preserve some state across restarts.
persist-key
persist-tun

# If you are connecting through an
# HTTP proxy to reach the actual OpenVPN
# server, put the proxy server/IP and
# port number here. See the man page
# if your proxy server requires
# authentication.
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]

# Wireless networks often produce a lot
# of duplicate packets. Set this flag
# to silence duplicate packet warnings.
;mute-replay-warnings

# SSL/TLS parms.
# See the server config file for more
# description. It's best to use
# a separate .crt/.key file pair
# for each client. A single ca
# file can be used for all clients.
ca ca.crt
cert adm.crt
key adm.key

# Verify server certificate by checking
# that the certicate has the nsCertType
# field set to "server". This is an
# important precaution to protect against
# a potential attack discussed here:
# http://openvpn.net/howto.html#mitm
#
# To use this feature, you will need to generate
# your server certificates with the nsCertType
# field set to "server". The build-key-server
# script in the easy-rsa folder will do this.
;ns-cert-type server

# If a tls-auth key is used on the server
# then every client must also have the key.
;tls-auth ta.key 1

# Select a cryptographic cipher.
# If the cipher option is used on the server
# then you must also specify it here.
;cipher x

# Enable compression on the VPN link.
# Don't enable this unless it is also
# enabled in the server config file.
comp-lzo

# Set log file verbosity.
verb 3

# Silence repeating messages
;mute 20
Спасибо сказали:
IMB
Сообщения: 2567
ОС: Debian

Re: OpenVPN Server 2.0.9

Сообщение IMB »

А у Вас на 192.168.99.1 подняты DHCP и DNS-сервера? Я не совсем понимаю почему при реальной сети 192.168.100.0 Вы передаете адреса DHCP и DNS-серверов из виртуальной 192.168.99.0. Но в любом случае, как ранее уже говорили - если Вы попали на внутреннию машину сети VPN свою часть работы выполнил.
Спасибо сказали:
alfss
Сообщения: 262

Re: OpenVPN Server 2.0.9

Сообщение alfss »

попробуйте мастер листинга рабочей группы перенести на ваш шлюз
возможно это решит проблему
Спасибо сказали:
Аватара пользователя
noob
Сообщения: 212

Re: OpenVPN Server 2.0.9

Сообщение noob »

Да, я в домене спокойно могу просмотреть сетевое окружение.

В своем сегменте они находят броадкастом.
Как и говорили вам нужен wins.
Кроме того wins база будет пуста - клиенты должны регаться в нем, соответственно wins сервер должен быть указан на всех машинах :)
Спасибо сказали:
leksstav
Сообщения: 331

Re: OpenVPN Server 2.0.9

Сообщение leksstav »

Всем спасибо, похоже был какой то глюк, вс работает :-)
Тема закрыта.
Спасибо сказали: