Настройка Openvpn
Форум — Admin
пытаюсь объединить два здания. В первом здании сеть 192.168.0.0/24 , во втором 192.168.50.0/24. Конфигурационный файл openvpn сервера
status /var/log/openvpn/status
local xxx.xxx.xxx.xxx
port 3334
proto udp
dev tun0
comp-lzo
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh1024.pem
tls-auth /etc/openvpn/keys/ta.key 0
server 192.168.201.0 255.255.255.0
ifconfig-pool-persist /etc/openvpn/ipp.txt
push "route 192.168.0.0 255.255.255.0"
push "route 192.168.50.0 255.255.255.0"
push "route 192.168.201.0 255.255.255.0"
client-to-client
duplicate-cn
client-config-dir /etc/openvpn/ccd
keepalive 10 120
auth SHA1
cipher AES-256-CBC
log-append /var/log/openvpn/openvpn_server.log
persist-key
persist-tun
verb 3
mute 20
remote xxx.xxx.xxx.xxx 3334
client
dev tun
proto udp
resolv-retry infinite # this is necessary for DynDNS
nobind
user nobody
group nogroup
persist-key
persist-tun
verb 3
ca /etc/openvpn/ca.crt
cert /etc/openvpn/server2.crt
key /etc/openvpn/server2.key
tls-auth /etc/openvpn/ta.key 1
log-append /var/log/openvpn.log
comp-lzo
ns-cert-type server
auth SHA1
cipher AES-256-CBC
mute 20