Jump to content

Openvpn server не обходит блокировки


Recommended Posts

подключение есть ип меняется, но блокировку не обходит на ubuntu а на windows клиенте все норм работает.

конфиг сервера

;local a.b.c.d

port *43

proto tcp
;proto udp

;dev tap
dev tun

;dev-node MyTap
ca ca.crt
cert server.crt
key server.key  # This file should be kept secret

dh dh2048.pem

;topology subnet

server *.*.0.0 255.255.255.0


ifconfig-pool-persist ipp.txt

;server-bridge *.*.0.4 255.255.255.0 *.*.0.50 *.*.0.100

;server-bridge

;push "route 192.168.10.0 255.255.255.0"
;push "route 192.168.20.0 255.255.255.0"

;client-config-dir ccd
;route 192.168.40.128 255.255.255.248

;client-config-dir ccd
;route *.*.0.0 255.255.255.252
;learn-address ./script

push "redirect-gateway def1 bypass-dhcp"

push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"

;push "dhcp-option DNS 8.8.8.8"
;push "dhcp-option DNS 8.8.4.4"


;client-to-client

;duplicate-cn

keepalive 10 120

tls-auth ta.key 0 # This file is secret
key-direction 0

;cipher BF-CBC        # Blowfish (default)
cipher AES-128-CBC   # AES
auth SHA256
;cipher DES-EDE3-CBC  # Triple-DES

comp-lzo

;max-clients 100

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 tap
dev tun

;dev-node MyTap


proto tcp
;proto udp

remote *.*.*.* *43
;remote my-server-2 1194

;remote-random

resolv-retry infinite


nobind

user nobody
group nogroup

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


;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]


;mute-replay-warnings



remote-cert-tls server
.
;tls-auth ta.key 1


cipher AES-128-CBC
auth SHA256
key-direction 1


script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf

comp-lzo

verb 0

;mute 20

dhcp-option DNSSEC allow-downgrade
dhcp-option DOMAIN-ROUTE .

auth-nocache

script-security 2
setenv PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
down-pre

 

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.

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.

Loading...
×
×
  • Create New...