Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

OpenVPN Tips

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Official download link (Fan Qiang may be required): https://open vpn.net/index.php/open-source/downloads.html

Generate certificates: create CA, generate server and client certificates (OpenVPN official documents), official website links.

Detailed description of OpenVPN server side configuration file

If multiple clients use the same certificate, you need to turn on the duplicate-cn option.

Push a fixed ip to the client.

C:\ Program Files\ OpenVPN\ config\ server.ovpn:

Server 192.168.99.0 255.255.255.0client-config-dir "C:\ Program Files\\ OpenVPN\\ config\\ ccd"

C:\ Program Files\ OpenVPN\ config\ ccd\ client:

Ifconfig-push 192.168.99.77 255.255.255.0

If the network mask of the two configurations is not the same, the client needs to configure the gateway of the tap virtual network card separately in order to communicate normally.

Dh files (dh {n} .pem, Diffie Hellman) are required only on the server side, not on the client side.

Change logging file, add to the configuration file (server.ovpn/server.conf):

Log/ var/log/openvpn.log

[FAQ]

Failure of OpenVPN virtual network card under Q:Windows

A: first of all, restart the network card ("disable" and "enable") to see if you can solve the problem.

If the restart is not effective, you can delete and create a new virtual Nic through the scripts in all programs-> TAP-Windows-> Utilities.

Q: configure OpenVPN boot auto connection under Windows.

A: method 1, add "--connect client.ovpn" after the shortcut, and then move the shortcut to the Startup directory.

Method 2, modify the registry [HKEY_LOCAL_MACHINE\ SOFTWARE\ Microsoft\ Windows\ CurrentVersion\ Run], "Open × ×" = "D:\ Program Files\ OpenVPN\ bin\ openvpn-gui.exe-- connect client.ovpn".

If you don't want to display the connection dialog box, find the item [HKEY_LOCAL_MACHINE\ SOFTWARE\ OpenVPN-GUI] below and change the value of the "silent_connection" item to "1".

[related reading]

Port forwarding (Linux/Windows)

OpenVPN deployment Scheme with large number of users (1)

* walker * *

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report