ocserv daemon doesn't get network settings from configuration file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ocserv (Debian) |
Fix Released
|
Unknown
|
|||
ocserv (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
ubuntu 16.04.1 x64
ocserv: 0.10.11-1build1
ocserv daemon ocserv.socket don't respect "listen-host" value from configuration file, and I have DTLS handshake problems because of that.
proof:
in /etc/ocserv/
listen-host = 46.46.46.46
if I start service by my hands everything alright:
#ocserv -f -c /etc/ocserv/
#lsof -i
ocserv-ma 5290 root 4u IPv4 30760 0t0 TCP 46.46.46.46:https (LISTEN)
ocserv-ma 5290 root 5u IPv4 30762 0t0 UDP 46.46.46.46:https
ocserv-wo 5293 nobody 0u IPv4 30781 0t0 TCP 46.46.46.
ocserv-wo 5293 nobody 4u IPv4 30804 0t0 UDP
46.46.46.
but if I start a daemon
#systemctl start ocserv.socket
#lsof -i
ocserv-ma 5802 root 3u IPv6 33640 0t0 TCP *:https (LISTEN)
ocserv-ma 5802 root 4u IPv6 33641 0t0 UDP *:https
ocserv-wo 5808 nobody 0u IPv6 32583 0t0 TCP 46.46.46.
daemon start on "*" address
and in syslog I see a problems with dtls because of that:
Aug 15 06:59:51 gw ocserv[5802]: main[user]: [::ffff:
Aug 15 06:59:51 gw ocserv[5802]: main[user]: [::ffff:
Aug 15 07:00:16 gw ocserv[5802]: main[user]: [::ffff:
Aug 15 07:00:16 gw ocserv[5802]: main[user]: [::ffff:
Changed in ocserv (Debian): | |
status: | Unknown → New |
Changed in ocserv (Debian): | |
status: | New → Fix Released |
Hi guy,
Try to go to "/lib/systemd/ system/ " and modify the file of "ocserv.service", ocserv. socket" socket"
1.use vim to change two lines,
2.Remove the line of "Requires=
3.Remove the line of "Also=ocserv.
4.save the file,
execute "systemctl daemon-reload",
then reload the service "service ocserv start"
I met the similar issue as you described, that situation seems like the default configuration recover the config of "/etc/ocserv/ ocserv. conf", after modified, the service works fine.