Jump to content

Question

Posted (edited)

Добрый день. ПОявилась необходимость удаленного доступа к домашней локальной сети, в виду отсутствия белого IP, приобрел VPS и не нем настроил OpenVPN сервер. Создал клиентов и одного прописал на гиге. При подключение к VPN полностью пропадает интернет в локалке. Но если подключаюсь с напрямую с компа или телефона  то интернет ходит в обход впн. Так же не могу пропиновать никого внутри VPN.

Настройки сервера и клиента прилагаю

port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
route-gateway 10.8.0.1
ifconfig-pool-persist ipp.txt
push "route 192.168.1.0 255.255.255.0"
push "route 192.168.10.0 255.255.255.0"
push "route 192.168.20.0 255.255.255.0"
push "route 192.168.8.0 255.255.255.0"
push "route 192.168.0.0 255.255.255.0"
route 192.168.1.0 255.255.255.0
route 192.168.10.0 255.255.255.0
route 192.168.20.0 255.255.255.0
route 192.168.8.0 255.255.255.0
route 192.168.0.0 255.255.255.0
client-to-client
keepalive 10 120
tls-auth ta.key 0 # This file is secret
key-direction 0
cipher AES-128-CBC   # AES
auth SHA256
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
;log         openvpn.log
;log-append  openvpn.log
verb 3
;mute 20
 
Настройка клиента
client
dev tun
proto udp
remote айпи_скрыт 1194 
resolv-retry infinite
nobind
user nobody
group nogroup
persist-key
persist-tun
remote-cert-tls server
cipher AES-128-CBC
auth SHA256
comp-lzo
verb 3
key-direction 1
# script-security 2
# up /etc/openvpn/update-resolv-conf
# down /etc/openvpn/update-resolv-conf
<ca>
 
Файл клиента в ccd
iroute 192.168.0.0 255.255.255.248
iroute 192.168.8.0 255.255.255.0
iroute 192.168.1.0 255.255.255.0
Edited by Николай Торов

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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
Answer this question...

×   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...