And this is looks like when shorewall doesn't work and as I see whorewall died, 
I start it yesterday on terminal

Last failed login: Wed May 18 08:04:42 CEST 2022 from 61.177.173.39 on ssh:notty
There were 4 failed login attempts since the last successful login.
Last login: Wed May 18 08:04:29 2022 from MYIP
______________________________________________________
shorewall status
Shorewall-5.2.2 Status at mail.povej.net - čet maj 19 10:30:42 CEST 2022

Shorewall is running
State:Started sre maj 18 08:38:08 CEST 2022 from /etc/shorewall/ 
(/var/lib/shorewall/firewall compiled Tue May 17 14:03:35 CEST 2022 by 
Shorewall version 5.2.2)
____________________________________________________________
systemctl status shorewall
● shorewall.service - Shorewall IPv4 firewall
   Loaded: loaded (/usr/lib/systemd/system/shorewall.service; enabled; vendor p>
   Active: inactive (dead)

_____________________________________________________________________

cat /usr/lib/systemd/system/shorewall.service
#
#     The Shoreline Firewall (Shorewall) Packet Filtering Firewall
#
#     Copyright 2011 Jonathan Underwood <jonathan.underw...@gmail.com>
#
[Unit]
Description=Shorewall IPv4 firewall
Wants=network-online.target
After=network-online.target
Conflicts=iptables.service firewalld.service

[Service]
Type=oneshot
RemainAfterExit=yes
EnvironmentFile=-/etc/sysconfig/shorewall
StandardOutput=syslog
ExecStart=/usr/sbin/shorewall $OPTIONS start $STARTOPTIONS
ExecStop=/usr/sbin/shorewall $OPTIONS stop
ExecReload=/usr/sbin/shorewall $OPTIONS reload $RELOADOPTIONS

[Install]
WantedBy=basic.target



-----Original Message-----
From: jonetsu <> 
Sent: Thursday, May 19, 2022 10:12 AM
To: dam...@povej.net
Cc: Shorewall Users <shorewall-users@lists.sourceforge.net>
Subject: Re: [Shorewall-users] Shorewall not start at boot

This is what it looks like on a healthy system when managed using systemd :

% cat /usr/lib/systemd/system/shorewall.service

#
#     The Shoreline Firewall (Shorewall) Packet Filtering Firewall
#
#     Copyright 2011 Jonathan Underwood <jonathan.underw...@gmail.com>
#
[Unit]
Description=Shorewall IPv4 firewall
Wants=network-online.target
After=network-online.target
Conflicts=iptables.service firewalld.service

[Service]
Type=oneshot
RemainAfterExit=yes
EnvironmentFile=-/etc/sysconfig/shorewall
StandardOutput=syslog
ExecStart=/usr/bin/shorewall $OPTIONS start $STARTOPTIONS 
ExecStop=/usr/bin/shorewall $OPTIONS stop ExecReload=/usr/bin/shorewall 
$OPTIONS reload $RELOADOPTIONS

[Install]
WantedBy=basic.target


% systemctl status shorewall

* shorewall.service - Shorewall IPv4 firewall
     Loaded: loaded (/usr/lib/systemd/system/shorewall.service;
enabled; vendor> Active: active (exited) since Thu 2022-05-19 04:04:50 EDT; 
1min 53s ago Process: 288 ExecStart=/usr/bin/shorewall $OPTIONS start 
$STARTOPTIONS (cod> Main PID: 288 (code=exited, status=0/SUCCESS)
        CPU: 436ms




_______________________________________________
Shorewall-users mailing list
Shorewall-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to