Jump to content

Маршрутизация между сетями за OpenVPN


Recommended Posts

Добрый день, подскажите пожалуйста как решить проблему

Сеть 1 OpenVPN сервер кинетик с прошивкой 3.5.10, внутренняя сеть 192.168.100.0, OpenVPN 10.8.0.1

Сеть 2 Компьютер с Windows, внутренняя сеть 192.168.200.0, OpenVPN 10.8.0.2

Из сети 192.168.200.0 видно компьютеры в сети 192.168.100.0, а из сети за кинетиком 192.168.100.0 не видно ничего в сети 192.168.200.0, сам OpenVPN клиент при этом 10.8.0.2. Настраивал все по инструкции

 

Конфиг сервера:

Скрытый текст

dev tun
proto udp
port 1194
tls-server
keepalive 10 120
persist-key
persist-tun
cipher AES-128-CBC
verb 3

topology subnet
server 10.8.0.0 255.255.255.0
#ifconfig 10.8.0.1 10.8.0.2
client-to-client
explicit-exit-notify 1

route 192.168.200.0 255.255.255.0
push "route 10.8.0.0 255.255.255.0"
push "route 192.168.100.0 255.255.255.0"

client-config-dir /storage
ifconfig-pool-persist /storage/ipp.txt

key-direction 0

<ca>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</ca>

<cert>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</cert>

<key>
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
</key>

<dh>
-----BEGIN DH PARAMETERS-----
-----END DH PARAMETERS-----
</dh>

<tls-auth>
-----BEGIN OpenVPN Static key V1-----
-----END OpenVPN Static key V1-----
</tls-auth>

 

Windows клиента:

Скрытый текст

dev tun
proto udp
dev-node "ovpn"
remote * 1194
route-delay 3
client
tls-client
ns-cert-type server
cipher AES-128-CBC
mssfix
tun-mtu 1500
ping-restart 60
ping 10
verb 3

ca "C:\\Program Files\\OpenVPN\\ssl\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\ssl\\almatynan.crt"
key "C:\\Program Files\\OpenVPN\\ssl\\almatynan.key"
tls-auth "C:\\Program Files\\OpenVPN\\ssl\\ta.key" 1
 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...