Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Systemd and logging issues
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message

Joined: 04 Dec 2012
Posts: 1
Location: Lago Patria (NA)

PostPosted: Tue Dec 04, 2012 1:17 pm    Post subject: Systemd and logging issues Reply with quote

Good afternoon to everybody, guys!

To increase the security of my linux box, I've decided to install Fail2ban to protect the system (and some well-known ports as well) from inappropriate login attempts.
OK, everything works fine, the system sends me an email whenever someone makes a mistake in trying to log on to my machine; the main problem I'm trying to resolve is another, though...
When fail2ban.service is initialized at boot, the email announcing that the service has been initialized is not being created because no Internet connection is available.
On the other hand, when my linux box is being shutdown, no mail is generated because the network service is probably closed...
What I've noticed is that wicd (my network manager) boots 10-15 seconds before fail2ban (and that's ok), then spends 45-60 seconds to boot the network configuration up, while, in the meantime, fail2ban is already up and running, that's why the log email is not being sent.
My question is: is there a way to say to systemd to wait "n" seconds before initializing a service and to stop it before Internet is being arrested?
Thanks in advance for your help...

Andrea from Italy.

Ps: this is the most relevant part of /etc/systemd/system/
Description=Ban IPs that make too many password failures

"Two things are infinite: the universe and human stupidity; and I'm not sure about the universe" (Albert Einstein)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum