openvpn

OPENVPN route local net to remote server [closed]

随声附和 提交于 2019-12-23 06:39:27
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I have configured a openvpn connection from my debian pc to my remote debian server, and it works. In fact, I can ping 10.0.0.1 (address in vpn of the server). Now I want to share this connection. I want my other clients on lan can access the server without openvpn client. How can I do it? My lan standard

Error Loading extension section usr_cert

泄露秘密 提交于 2019-12-22 03:19:26
问题 I am running openvpn on an Ubuntu 14.04 box. The setup was fine until an OpenSSL upgrade, then when I try to create new client cert with easy-rsa, I got this message: root@:easy-rsa# ./pkitool onokun Using Common Name: onokun Generating a 2048 bit RSA private key .+++ ........+++ writing new private key to 'onokun.key' ----- Using configuration from /etc/openvpn/easy-rsa/openssl-1.0.0.cnf Error Loading extension section usr_cert 3074119356:error:0E06D06C:configuration file routines:NCONF_get

Build OpenVPN with specific OpenSSL version

陌路散爱 提交于 2019-12-17 16:37:48
问题 Similar questions have been asked before, but the answers no longer seem to apply as the flags have changed for the configure script. I am trying to compile OpenVPN from the git source on Ubuntu 14.04.5 on both x86 and x64. I have OpenSSL 1.0.1t built and installed to /usr/local/ssl. I've tried various combinations of the configure options and the compiler seems to recognize since ./configure OPENSSL_LIBS="-L/usr/local/ssl/ -lssl -lcrypto" OPENSSL_CFLAGS="-I/usr/local/ssl/include/" finishes

OpenVPN: Authentication Failed?

偶尔善良 提交于 2019-12-13 04:44:49
问题 When I use the plugin for authentication at server.conf, authentication wont work, but without it, non existent users can authenticate also. I have added the following lines in the server conf and clinet Commands in the server.conf file ================================ mode server tls-server plugin /usr/lib64/openvpn/plugin/lib/openvpn-auth-pam.so login key-direction 0 ================================ Commands in the client file ================================= port 1194 proto udp dev tun

No rule needed to make target .moc

旧时模样 提交于 2019-12-13 02:34:18
问题 I am trying to turn ovpn3's ovpncli example into a class that derives from QObject. I'm unable to turn the source file into a separate interface (.h) and implementation (.cpp) file. To make the MOC happy, I've put #include "openvpn.moc" at the end of openvpn.cpp (the source file). I am getting this error however: :-1: error: No rule to make target 'openvpn.moc', needed by 'openvpnmanager.o'. Stop. I've cleaned the build directory, re-ran qmake, and rebuilt it 1000 times. Despite this, it

read() on a NON-BLOCKING tun/tap file descriptor gets EAGAIN error

江枫思渺然 提交于 2019-12-12 21:05:32
问题 I want to read IP packets from a non-blocking tun/tap file descriptor tunfd I set the tunfd as non-blocking and register a READ_EV event for it in libevent. when the event is triggered, I read the first 20 bytes first to get the IP header, and then read the rest. nr_bytes = read(tunfd, buf, 20); ... ip_len = .... // here I get the IP length .... nr_bytes = read(tunfd, buf+20, ip_len-20); but for the read(tunfd, buf+20, ip_len-20) I got EAGAIN error, actually there should be a full packet, so

CloudFormation ElasticIP Parameter

杀马特。学长 韩版系。学妹 提交于 2019-12-12 07:01:19
问题 I have a CloudFormation template which adds OpenVPN to an existing VPC and requires an Elastic IP allocation ID as a parameter. It also adds the public IP address from the same Elastic IP to the OpenVPN instance configuration (in it's UserData section). I've currently implemented this as 2 parameters (using made-up defaults) i.e. Parameters: ElasticIpAddress: Description: >- IP Address of an Elastic IP. Type: String Default: 53.176.52.215 ElasticIpAllocationId: Description: >- Allocation id

Problem disconnecting OpenVpn from application

夙愿已清 提交于 2019-12-12 06:14:43
问题 I am tring to connect a remote server via openvpn using C#. I am able to connect it successfully. but disconneecting seems to not work properly. Once I close my app, I am not able to access the internet. I got to manually disable the TAP Adapter and then enable to execute the app again. I checked my "route print" and yes Tap is coming ahead of internet and hence couldn't access net. I connect using : openvpn --config client.ovpn --ca certificate.cer --auth-user-pass user.txt My disconnecting

Build openvpn with the modified OpenSSL [duplicate]

对着背影说爱祢 提交于 2019-12-12 01:54:54
问题 This question already has answers here : Build OpenVPN with specific OpenSSL version (3 answers) Closed 3 years ago . I installed openssl-1.0.2 with some logging code that added to original version by ./config shared --prefix=/usr , make and make install commands. After that I installed openvpn according to ./configure OPENSSL_SSL_LIBS="-L/usr/ -lssl" OPENSSL_SSL_CFLAGS="-I/usr/include/" OPENSSL_CRYPTO_LIBS="-L/usr/ -lcrypto" OPENSSL_CRYPTO_CFLAGS="-I/usr/include/" , make and make install .

Create openVPN Certificate with python

元气小坏坏 提交于 2019-12-11 16:45:13
问题 Do you guys know a python "script" that can generate openVPN certificates ? I need this to integrate it with my django project ... Thx. 回答1: Do you have the needed PKI set up, i.e., have you made your own certificate authority? If so, then changing directory to easy-rsa (see the docs I just pointed to for how to find that directory in various platforms) and using Python's subprocess to run build-key for the client of interest might be simplest. 回答2: Checkout the source code of django-x509.