Ubuntu 18.04, Openvpn not starting, status Active (exited)
My OpenVPN was working fine until yesterday when it was stuck while a client was connected to MiniDLNA and was scanning. OpenVPN status is returning:
● openvpn.service - OpenVPN service
Loaded: loaded (/lib/systemd/system/openvpn.service; enabled; vendor preset: enabled)
Active: active (exited) since Wed 2019-01-30 10:45:42 UTC; 10min ago
Main PID: 598 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 4700)
CGroup: /system.slice/openvpn.service
Jan 30 10:45:42 rock64 systemd[1]: Starting OpenVPN service...
Jan 30 10:45:42 rock64 systemd[1]: Started OpenVPN service.
Server and client configurations are as follows:
Server.conf:
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist /var/log/openvpn/ipp.txt
push "redirect-gateway
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
duplicate-cn
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn/openvpn-status.log
verb 3
explicit-exit-notify 1
Client.conf:
client
dev tun
proto udp
remote xx.dns.xx 1194
nobind
user nobody
group nogroup
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-CBC
verb 3
Is there anything I can do to solve this problem?
I would also appreciate if anybody who can point me to a procedure where I can backup my full configuration (Ubuntu+Openvpn+ufw+Samba, etc..) from eMMC to a hard drive or a USB drive.
Thanks in advance.
server openvpn
New contributor
|
show 7 more comments
My OpenVPN was working fine until yesterday when it was stuck while a client was connected to MiniDLNA and was scanning. OpenVPN status is returning:
● openvpn.service - OpenVPN service
Loaded: loaded (/lib/systemd/system/openvpn.service; enabled; vendor preset: enabled)
Active: active (exited) since Wed 2019-01-30 10:45:42 UTC; 10min ago
Main PID: 598 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 4700)
CGroup: /system.slice/openvpn.service
Jan 30 10:45:42 rock64 systemd[1]: Starting OpenVPN service...
Jan 30 10:45:42 rock64 systemd[1]: Started OpenVPN service.
Server and client configurations are as follows:
Server.conf:
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist /var/log/openvpn/ipp.txt
push "redirect-gateway
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
duplicate-cn
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn/openvpn-status.log
verb 3
explicit-exit-notify 1
Client.conf:
client
dev tun
proto udp
remote xx.dns.xx 1194
nobind
user nobody
group nogroup
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-CBC
verb 3
Is there anything I can do to solve this problem?
I would also appreciate if anybody who can point me to a procedure where I can backup my full configuration (Ubuntu+Openvpn+ufw+Samba, etc..) from eMMC to a hard drive or a USB drive.
Thanks in advance.
server openvpn
New contributor
Apologies for the way the error output and the server and clien configuartions appear! I couldn't find a way to input them in a way to preserve the way they're displayzs on my screen!
– Naass
2 days ago
Your OpenVPN status looks normal. What is the actual PROBLEM that you're trying to solve? Is your server really at 10.8.0.0? Report back to @heynnema
– heynnema
2 days ago
The problem is that OpenVPN is not loading/starting and as you can see on the status output, it says active: exited! Yes my server is at 10.8.0.0. Is it unrecommended?
– Naass
2 days ago
The status command showscode=exited, status=0/SUCCESS
, and it says that it's started. Why do you think that OpenVPN is not running? Your server and client scripts are on two different machines, yes? Did you recently edit any OpenVPN files? Did this ever work for you? And yes, 10.8.0.0 is not a normal address to assign to an individual computer. Is your network set up for a static IP?
– heynnema
2 days ago
Ok, I started to panic because my clients are unable to connect. I am a newbie in Ubuntu/Openvpn, etc.. I now checked with systemctl status openvpn@server and it says it is actrtive and running.What made me panic is that my clients aren't connecting for some reason despite the fact that I didn't do anything to the server or clients configurations. The only thing I can recall is that I had a kodi client scanning MiniDLNA on the same server and it was stuck for some reason. So when I restarted everything this morning, I couldnt connect the clients to the Openvpn sever!
– Naass
2 days ago
|
show 7 more comments
My OpenVPN was working fine until yesterday when it was stuck while a client was connected to MiniDLNA and was scanning. OpenVPN status is returning:
● openvpn.service - OpenVPN service
Loaded: loaded (/lib/systemd/system/openvpn.service; enabled; vendor preset: enabled)
Active: active (exited) since Wed 2019-01-30 10:45:42 UTC; 10min ago
Main PID: 598 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 4700)
CGroup: /system.slice/openvpn.service
Jan 30 10:45:42 rock64 systemd[1]: Starting OpenVPN service...
Jan 30 10:45:42 rock64 systemd[1]: Started OpenVPN service.
Server and client configurations are as follows:
Server.conf:
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist /var/log/openvpn/ipp.txt
push "redirect-gateway
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
duplicate-cn
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn/openvpn-status.log
verb 3
explicit-exit-notify 1
Client.conf:
client
dev tun
proto udp
remote xx.dns.xx 1194
nobind
user nobody
group nogroup
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-CBC
verb 3
Is there anything I can do to solve this problem?
I would also appreciate if anybody who can point me to a procedure where I can backup my full configuration (Ubuntu+Openvpn+ufw+Samba, etc..) from eMMC to a hard drive or a USB drive.
Thanks in advance.
server openvpn
New contributor
My OpenVPN was working fine until yesterday when it was stuck while a client was connected to MiniDLNA and was scanning. OpenVPN status is returning:
● openvpn.service - OpenVPN service
Loaded: loaded (/lib/systemd/system/openvpn.service; enabled; vendor preset: enabled)
Active: active (exited) since Wed 2019-01-30 10:45:42 UTC; 10min ago
Main PID: 598 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 4700)
CGroup: /system.slice/openvpn.service
Jan 30 10:45:42 rock64 systemd[1]: Starting OpenVPN service...
Jan 30 10:45:42 rock64 systemd[1]: Started OpenVPN service.
Server and client configurations are as follows:
Server.conf:
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist /var/log/openvpn/ipp.txt
push "redirect-gateway
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
duplicate-cn
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn/openvpn-status.log
verb 3
explicit-exit-notify 1
Client.conf:
client
dev tun
proto udp
remote xx.dns.xx 1194
nobind
user nobody
group nogroup
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-CBC
verb 3
Is there anything I can do to solve this problem?
I would also appreciate if anybody who can point me to a procedure where I can backup my full configuration (Ubuntu+Openvpn+ufw+Samba, etc..) from eMMC to a hard drive or a USB drive.
Thanks in advance.
server openvpn
server openvpn
New contributor
New contributor
edited 2 days ago
NerdOfCode
1,072424
1,072424
New contributor
asked 2 days ago
NaassNaass
163
163
New contributor
New contributor
Apologies for the way the error output and the server and clien configuartions appear! I couldn't find a way to input them in a way to preserve the way they're displayzs on my screen!
– Naass
2 days ago
Your OpenVPN status looks normal. What is the actual PROBLEM that you're trying to solve? Is your server really at 10.8.0.0? Report back to @heynnema
– heynnema
2 days ago
The problem is that OpenVPN is not loading/starting and as you can see on the status output, it says active: exited! Yes my server is at 10.8.0.0. Is it unrecommended?
– Naass
2 days ago
The status command showscode=exited, status=0/SUCCESS
, and it says that it's started. Why do you think that OpenVPN is not running? Your server and client scripts are on two different machines, yes? Did you recently edit any OpenVPN files? Did this ever work for you? And yes, 10.8.0.0 is not a normal address to assign to an individual computer. Is your network set up for a static IP?
– heynnema
2 days ago
Ok, I started to panic because my clients are unable to connect. I am a newbie in Ubuntu/Openvpn, etc.. I now checked with systemctl status openvpn@server and it says it is actrtive and running.What made me panic is that my clients aren't connecting for some reason despite the fact that I didn't do anything to the server or clients configurations. The only thing I can recall is that I had a kodi client scanning MiniDLNA on the same server and it was stuck for some reason. So when I restarted everything this morning, I couldnt connect the clients to the Openvpn sever!
– Naass
2 days ago
|
show 7 more comments
Apologies for the way the error output and the server and clien configuartions appear! I couldn't find a way to input them in a way to preserve the way they're displayzs on my screen!
– Naass
2 days ago
Your OpenVPN status looks normal. What is the actual PROBLEM that you're trying to solve? Is your server really at 10.8.0.0? Report back to @heynnema
– heynnema
2 days ago
The problem is that OpenVPN is not loading/starting and as you can see on the status output, it says active: exited! Yes my server is at 10.8.0.0. Is it unrecommended?
– Naass
2 days ago
The status command showscode=exited, status=0/SUCCESS
, and it says that it's started. Why do you think that OpenVPN is not running? Your server and client scripts are on two different machines, yes? Did you recently edit any OpenVPN files? Did this ever work for you? And yes, 10.8.0.0 is not a normal address to assign to an individual computer. Is your network set up for a static IP?
– heynnema
2 days ago
Ok, I started to panic because my clients are unable to connect. I am a newbie in Ubuntu/Openvpn, etc.. I now checked with systemctl status openvpn@server and it says it is actrtive and running.What made me panic is that my clients aren't connecting for some reason despite the fact that I didn't do anything to the server or clients configurations. The only thing I can recall is that I had a kodi client scanning MiniDLNA on the same server and it was stuck for some reason. So when I restarted everything this morning, I couldnt connect the clients to the Openvpn sever!
– Naass
2 days ago
Apologies for the way the error output and the server and clien configuartions appear! I couldn't find a way to input them in a way to preserve the way they're displayzs on my screen!
– Naass
2 days ago
Apologies for the way the error output and the server and clien configuartions appear! I couldn't find a way to input them in a way to preserve the way they're displayzs on my screen!
– Naass
2 days ago
Your OpenVPN status looks normal. What is the actual PROBLEM that you're trying to solve? Is your server really at 10.8.0.0? Report back to @heynnema
– heynnema
2 days ago
Your OpenVPN status looks normal. What is the actual PROBLEM that you're trying to solve? Is your server really at 10.8.0.0? Report back to @heynnema
– heynnema
2 days ago
The problem is that OpenVPN is not loading/starting and as you can see on the status output, it says active: exited! Yes my server is at 10.8.0.0. Is it unrecommended?
– Naass
2 days ago
The problem is that OpenVPN is not loading/starting and as you can see on the status output, it says active: exited! Yes my server is at 10.8.0.0. Is it unrecommended?
– Naass
2 days ago
The status command shows
code=exited, status=0/SUCCESS
, and it says that it's started. Why do you think that OpenVPN is not running? Your server and client scripts are on two different machines, yes? Did you recently edit any OpenVPN files? Did this ever work for you? And yes, 10.8.0.0 is not a normal address to assign to an individual computer. Is your network set up for a static IP?– heynnema
2 days ago
The status command shows
code=exited, status=0/SUCCESS
, and it says that it's started. Why do you think that OpenVPN is not running? Your server and client scripts are on two different machines, yes? Did you recently edit any OpenVPN files? Did this ever work for you? And yes, 10.8.0.0 is not a normal address to assign to an individual computer. Is your network set up for a static IP?– heynnema
2 days ago
Ok, I started to panic because my clients are unable to connect. I am a newbie in Ubuntu/Openvpn, etc.. I now checked with systemctl status openvpn@server and it says it is actrtive and running.What made me panic is that my clients aren't connecting for some reason despite the fact that I didn't do anything to the server or clients configurations. The only thing I can recall is that I had a kodi client scanning MiniDLNA on the same server and it was stuck for some reason. So when I restarted everything this morning, I couldnt connect the clients to the Openvpn sever!
– Naass
2 days ago
Ok, I started to panic because my clients are unable to connect. I am a newbie in Ubuntu/Openvpn, etc.. I now checked with systemctl status openvpn@server and it says it is actrtive and running.What made me panic is that my clients aren't connecting for some reason despite the fact that I didn't do anything to the server or clients configurations. The only thing I can recall is that I had a kodi client scanning MiniDLNA on the same server and it was stuck for some reason. So when I restarted everything this morning, I couldnt connect the clients to the Openvpn sever!
– Naass
2 days ago
|
show 7 more comments
1 Answer
1
active
oldest
votes
Well, it turned out to be the DNS service (duckdns) wasn't updating my public address. That's why my clients couldn't connect. Thanks to heynnema for his help.
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Naass is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1114160%2fubuntu-18-04-openvpn-not-starting-status-active-exited%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Well, it turned out to be the DNS service (duckdns) wasn't updating my public address. That's why my clients couldn't connect. Thanks to heynnema for his help.
New contributor
add a comment |
Well, it turned out to be the DNS service (duckdns) wasn't updating my public address. That's why my clients couldn't connect. Thanks to heynnema for his help.
New contributor
add a comment |
Well, it turned out to be the DNS service (duckdns) wasn't updating my public address. That's why my clients couldn't connect. Thanks to heynnema for his help.
New contributor
Well, it turned out to be the DNS service (duckdns) wasn't updating my public address. That's why my clients couldn't connect. Thanks to heynnema for his help.
New contributor
New contributor
answered 12 hours ago
NaassNaass
163
163
New contributor
New contributor
add a comment |
add a comment |
Naass is a new contributor. Be nice, and check out our Code of Conduct.
Naass is a new contributor. Be nice, and check out our Code of Conduct.
Naass is a new contributor. Be nice, and check out our Code of Conduct.
Naass is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1114160%2fubuntu-18-04-openvpn-not-starting-status-active-exited%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Apologies for the way the error output and the server and clien configuartions appear! I couldn't find a way to input them in a way to preserve the way they're displayzs on my screen!
– Naass
2 days ago
Your OpenVPN status looks normal. What is the actual PROBLEM that you're trying to solve? Is your server really at 10.8.0.0? Report back to @heynnema
– heynnema
2 days ago
The problem is that OpenVPN is not loading/starting and as you can see on the status output, it says active: exited! Yes my server is at 10.8.0.0. Is it unrecommended?
– Naass
2 days ago
The status command shows
code=exited, status=0/SUCCESS
, and it says that it's started. Why do you think that OpenVPN is not running? Your server and client scripts are on two different machines, yes? Did you recently edit any OpenVPN files? Did this ever work for you? And yes, 10.8.0.0 is not a normal address to assign to an individual computer. Is your network set up for a static IP?– heynnema
2 days ago
Ok, I started to panic because my clients are unable to connect. I am a newbie in Ubuntu/Openvpn, etc.. I now checked with systemctl status openvpn@server and it says it is actrtive and running.What made me panic is that my clients aren't connecting for some reason despite the fact that I didn't do anything to the server or clients configurations. The only thing I can recall is that I had a kodi client scanning MiniDLNA on the same server and it was stuck for some reason. So when I restarted everything this morning, I couldnt connect the clients to the Openvpn sever!
– Naass
2 days ago