Comments (2)
You mean that you don't use GUI? If so, you can easily save your password.
If you're using CLI, you can do:
- create
auth.txt
in/etc/openvpn/
- add 2 lines:
- username
- password
- save
- edit
/etc/openvpn/client.conf
- change
auth-user-pass
toauth-user-pass auth.txt
Should be good.
from openvpn-admin.
@SansPseudoFix
Thanks, I will try it.
=== EDIT ===
It worked!. thanks.
For the sake of completeness, Here are the instructions to use openvpn as an always connected unattended background process in a Debian distro:
- As per the instructions, extract and copy all the generated files to
/etc/openvpn
- Then, also in
/etc/openvpn
create a file namedauth.txt
with two lines:- username
- password
- Edit the file
/etc/openvpn/
, changing the lineauth-user-pass
toauth-user-pass auth.txt
- In order for the openvpn proccess to automatically run on system boot you have to enable it. Add the line
AUTOSTART="client"
to/etc/default/openvpn
. - Restart the openvpn service
systemctl daemon-reload && service openvpn restart
, or restart the computer. - Enjoy your always connected unattended vpn connection.
Cheers!.
from openvpn-admin.
Related Issues (20)
- Can't connect to local MySQL server through socket HOT 1
- question: Someone has tried migrating to Debian 10 (Buster)? HOT 1
- Creating user in interface doesn't create user keys, crt in openvpn
- Can it change bower to Yarn
- Allow Private IP Passthrough
- [Request] Want to use this with "pivpn" installation
- Connect to OpenVPN over Shadowsocks
- passwordless certificate based users HOT 1
- Feature request: Docker support HOT 2
- [enhancement ] - The IP should be displayed on the main panel
- ### Ubuntu 20.04.1 install instructions HOT 13
- Can't load /etc/openvpn/easy-rsa/pki/.rnd into RNG
- How can I install the ovpn in iPhone IOS? HOT 4
- Editing config should have an "Apply" button
- Getting Options error: --explicit-exit-notify can only be used with --proto udp when running in TCP upon starting OpenVPN
- Could not open login script file HOT 1
- Where is the detailed installation tutorial for CentOS 7.9?
- install failed
- Installation failed HOT 2
- 1292 Incorrect date value: '0000-00-00' for column 'user_start_date' at row 1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openvpn-admin.