When you do
Do you see that:
Code:
- Logging is active:
iptables -A aegis_DROP -j LOG --log-prefix "[aegis] "
If so, logging is working. If aegis log does not show anything, it is because there was no event to log.
You can try to ping a blocked ip like:
Then in the log, you should see something like:
Code:
[aegis] IN= OUT=brwan SRC=ROUTER-WAN-IP DST=1.19.0.0 LEN=84 TOS=0x00 PREC=0x00 TTL=64 ID=25536 DF PROTO=ICMP TYPE=8 CODE=0 ID=35884 SEQ=0
This is what I get
Status:
- 'aegis' version: 1.0.2
- 'iprange' is installed: iprange 1.0.4
- Something is not right! Use 'aegis -v status' for more details
- Logging is on.
Detailed status:
- 'aegis' is in $PATH.
- 'firewall-start.sh' exists with correct settings.
- Actual router time: 2020-05-17 11:03:20
- Blocklist generation time: 2020-05-17 03:15:04
- Router firewall was last started 2020-05-17 07:54:23:
egis 1.0.2 - Verbose mode
Status:
- 'aegis' version: 1.0.2
- 'iprange' is installed: iprange 1.0.4
- Something is not right! Use 'aegis -v status' for more details
- Logging is on.
Detailed status:
- 'aegis' is in $PATH.
- 'firewall-start.sh' exists with correct settings.
- Actual router time: 2020-05-17 11:11:10
- Blocklist generation time: 2020-05-17 03:15:04
- Router firewall was last started 2020-05-17 07:54:23:
ipset blocklist was already loaded and was kept.
logging rules were added to iptables.
blocklist rules were added to iptables.
- iptables rules are not set properly:
iptables -N aegis_DROP
iptables -A INPUT -i brwan -m set --match-set aegis_BL src -j aegis_DROP
iptables -A INPUT -i brwan -m set --match-set aegis_BL src -j aegis_DROP
iptables -A INPUT -i brwan -m set --match-set aegis_BL src -j aegis_DROP
iptables -A INPUT -i brwan -m set --match-set aegis_BL src -j aegis_DROP
iptables -A FORWARD -i brwan -m set --match-set aegis_BL src -j aegis_DROP
iptables -A FORWARD -o brwan -m set --match-set aegis_BL dst -j aegis_DROP
iptables -A FORWARD -i brwan -m set --match-set aegis_BL src -j aegis_DROP
iptables -A FORWARD -o brwan -m set --match-set aegis_BL dst -j aegis_DROP
iptables -A FORWARD -i brwan -m set --match-set aegis_BL src -j aegis_DROP
iptables -A FORWARD -o brwan -m set --match-set aegis_BL dst -j aegis_DROP
iptables -A FORWARD -i brwan -m set --match-set aegis_BL src -j aegis_DROP
iptables -A FORWARD -o brwan -m set --match-set aegis_BL dst -j aegis_DROP
iptables -A FORWARD -i brwan -m set --match-set aegis_BL src -j aegis_DROP
iptables -A OUTPUT -o brwan -m set --match-set aegis_BL dst -j aegis_DROP
iptables -A OUTPUT -o brwan -m set --match-set aegis_BL dst -j aegis_DROP
iptables -A OUTPUT -o brwan -m set --match-set aegis_BL dst -j aegis_DROP
iptables -A OUTPUT -o brwan -m set --match-set aegis_BL dst -j aegis_DROP
iptables -A aegis_DROP -j DROP
iptables -A aegis_DROP -j DROP
iptables -A aegis_DROP -j DROP
iptables -A aegis_DROP -j DROP
- Logging is active:
iptables -A aegis_DROP -j LOG --log-prefix "[aegis] "
-A aegis_DROP -j LOG --log-prefix "[aegis] "
-A aegis_DROP -j LOG --log-prefix "[aegis] "
- ipset filter (blocklist) is set:
Name: aegis_BL
Type: hash:net
Revision: 6
Header: family inet hashsize 32768 maxelem 62731
Size in memory: 1609080
References: 17
- ipset bypass (whitelist) is not set.
root@R7800:/$
root@R7800:/$