Tom Brough
Regular Contributor
What happens when you run
"aegis upgrade"
"aegis upgrade"
I know aegis 1.1.4 is installed on my usb drive,that will just upgrade internallyWhat happens when you run
"aegis upgrade"
ls -l /opt/bolemo
ls -l /usr/bin/aegis
This is what I getOk, clearly at some point, something got messed up.
The aegis in your internal drive is not installed in the right place /root/bolemo...
So it is a mystery where it is and how it ended up there...
Can you do this:
And this:Code:ls -l /opt/bolemo
Code:ls -l /usr/bin/aegis
It will tell where the symlink is pointing to for your internal aegis.
From there, we can figure out how to uninstall this copy.
This is what I get
root@R7800:/$
root@R7800:/$ ls -l /opt/bolemo
lrwxrwxrwx 1 root root 20 May 27 19:30 /opt/bolemo -> /tmp/mnt/sdb1/bolemo
root@R7800:/$
root@R7800:/$ ls -l /usr/bin/aegis
lrwxrwxrwx 1 root root 25 May 27 19:30 /usr/bin/aegis -> /opt/bolemo/scripts/aegis
root@R7800:/$
root@R7800:/$
Ok I get this now. Dont understand whats happened to the internal aegis and things are still not right. Might do a factory reset and start againAll of that is right.
It means that aegis is installed on external drive.
So you have version 1.0.3 on your external drive sdb1.
I would do a reinstall from install script.
aegis clean -v
aegis update -v
Ok I get this now. Dont understand whats happened to the internal aegis and things are still not right. Might do a factory reset and start again
root@R7800:/$
root@R7800:/$ wget -qO- https://github.com/bolemo/aegis/raw/master/aegis-install.sh | sh
Where do you want to install aegis?
0 - router internal memory (rootfs)
1 - external drive: /mnt/sda1
2 - external drive: /mnt/sdb1
c - cancel installation
Your choice: 2
aegis will be installed on external drive /tmp/mnt/sdb1
Creating directory (if not already existing): /opt/scripts
Creating directory (if not already existing): /tmp/mnt/sdb1/bolemo
Creating symlink (if not already existing): /opt/bolemo
Creating subdirectories in bolemo: scripts, etc
Downloading and installing aegis...
An aegis sources file already exists, keeping it.
iprange is installed.
Done!
root@R7800:/$
root@R7800:/$ aegis info
Info:
- 'aegis' version 1.1.4 is installed on external drive.
- 'aegis' is in PATH.
- This is the last version.
- 'iprange' is installed: iprange 1.0.4
root@R7800:/$
root@R7800:/$ aegis status
Status:
- 'aegis' version: 1.1.4
- 'iprange' is installed: iprange 1.0.4
- Something is not right with iptables setup! Use 'aegis -v status' for more details
- Logging is off.
root@R7800:/$
root@R7800:/$
root@R7800:/$ aegis -v status
aegis 1.1.4 - Verbose mode
Status:
- 'aegis' version: 1.1.4
- 'iprange' is installed: iprange 1.0.4
- Something is not right with iptables setup! Use 'aegis -v status' for more details
- Logging is off.
Detailed status:
- 'firewall-start.sh' exists with correct settings.
- 'post-mount.sh' exists with correct settings.
- Actual router time: 2020-05-29 19:24:45
- Blocklist generation time: 2020-05-26 03:15:04
- Router firewall was last started 2020-05-29 18:43:23:
ipset blocklist was already loaded.
outbound iptables rules were already set!
iptables logging rules were set.
- iptables rules are not set properly:
iptables rules are not set for VPN tunnel
iptables -N 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 OUTPUT -o brwan -m set --match-set aegis_BL dst -j aegis_DROP
iptables -A aegis_DROP -j LOG --log-prefix "[aegis] "
iptables -A aegis_DROP -j DROP
- Logging is inactive.
- ipset blocklist is not set.
- ipset whitelist is not set.
- ipset WAN gateway bypass is not set.
root@R7800:/$
root@R7800:/$
Thank...s all back to normal now.I only have one drive connected.Good
Now, just do
AndCode:aegis clean -v
PS: you have 2 external drives. Maybe you had aegis on both...Code:aegis update -v
PSS: no need to factory reset
root@R9000:/$ aegis info
Info:
- 'aegis' version 1.1.4 is installed on external drive.
- 'aegis' is in PATH.
- This is the last version.
- 'iprange' is installed: iprange 1.0.4
root@R9000:/$
root@R9000:/$ aegis update -v
aegis 1.1.4 - Verbose mode
Initializing...
- 'firewall-start.sh' is in place and ok.
- 'aegis' is installed on external drive.
- 'post-mount.sh' is in place and ok.
Updating blocklist from sources...
- Downloading lists defined in /opt/bolemo/etc/aegis.sources
1) https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/firehol_level1.netset
- 100%[===================>] 41.56K --.-KB/s in 0.002s
2) https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/firehol_level2.netset
- 100%[===================>] 291.01K --.-KB/s in 0.01s
3) https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/firehol_level3.netset
- 100%[===================>] 263.96K --.-KB/s in 0.01s
4) https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/iblocklist_ciarmy_malicious.netset
- 100%[===================>] 202.01K --.-KB/s in 0.02s
5) https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/malwaredomainlist.ipset
- 100%[===================>] 14.49K --.-KB/s in 0.001s
- Optimizing and reducing netset (using iprange)...
- Done.
Building ipset blocklist (49740 entries blocking 619488609 ips)...
- Created blocklist, swapping it.
- Done.
- Internal firewall needs to be restarted...
Restarting firewall...
/bin/sh: /etc/appflow/streamboost.d/40_qdiscman: not found
/bin/sh: /etc/appflow/streamboost.d/40_qdiscman: not found
/usr/sbin/net-wall: /usr/sbin/net-wall: 107: /opt/scripts/firewall-start.sh: not found
- Firewall restarted.
Status:
- 'aegis' version: 1.1.4
- 'iprange' is installed: iprange 1.0.4
- Something is not right! Use 'aegis -v status' for more details
- Logging is off.
Detailed status:
- 'firewall-start.sh' exists with correct settings.
- 'post-mount.sh' exists with correct settings.
- Actual router time: 2020-10-19 21:59:37
- Blocklist generation time: 2020-10-19 21:59:37
- No status file found.
- iptables rules are not set.
- Logging is inactive.
- ipset blocklist is set:
Name: aegis_bl
Type: hash:net
Revision: 6
Header: family inet hashsize 16384 maxelem 49740
Size in memory: 1053748
References: 0
Number of entries: 49740
- ipset whitelist is not set.
- ipset WAN gateway bypass is not set.
root@R9000:/$
root@R9000:/$ aegis status -v
aegis 1.1.4 - Verbose mode
Status:
- 'aegis' version: 1.1.4
- 'iprange' is installed: iprange 1.0.4
- Something is not right! Use 'aegis -v status' for more details
- Logging is off.
Detailed status:
- 'firewall-start.sh' exists with correct settings.
- 'post-mount.sh' exists with correct settings.
- Actual router time: 2020-10-19 22:00:00
- Blocklist generation time: 2020-10-19 22:00:00
- No status file found.
- iptables rules are not set.
- Logging is inactive.
- ipset blocklist is set:
Name: aegis_bl
Type: hash:net
Revision: 6
Header: family inet hashsize 16384 maxelem 49740
Size in memory: 1053748
References: 0
Number of entries: 49740
- ipset whitelist is not set.
- ipset WAN gateway bypass is not set.
root@R9000:/$
root@R9000:/$ aegis info
Info:
- 'aegis' version 1.1.4 is installed on external drive.
- 'aegis' is in PATH.
- This is the last version.
- 'iprange' is installed: iprange 1.0.4
root@R9000:/$
root@R9000:/$ net-wall restart
Starting Firewall...
Done!
/bin/sh: /etc/appflow/streamboost.d/40_qdiscman: not found
/bin/sh: /etc/appflow/streamboost.d/40_qdiscman: not found
/usr/sbin/net-wall: /usr/sbin/net-wall: 107: /opt/scripts/firewall-start.sh: not found
root@R9000:/$
[CODE]root@R9000:/$ ls -l /mnt
lrwxrwxrwx 1 root root 8 Sep 2 17:44 /mnt -> /tmp/mnt
root@R9000:/$
root@R9000:/$ ls -l /mnt/UNTITLED/
ls: /mnt/UNTITLED/: No such file or directory
root@R9000:/$
root@R9000:/$ ls -l /mnt/
lrwxrwxrwx 1 root root 4 Oct 19 21:37 New_Volume -> sdc1
drwxrwxrwx 1 root root 4096 Oct 19 11:28 sdc1
root@R9000:/$
root@R9000:/$ ls -l /mnt/sdc1/bolemo/*
/mnt/sdc1/bolemo/etc:
-rwxrwxrwx 1 root root 719046 Oct 19 21:59 aegis-bl.netset
-rwxrwxrwx 1 root root 455 Oct 19 11:14 aegis.sources
/mnt/sdc1/bolemo/scripts:
-rwxrwxrwx 1 root root 34932 Oct 19 21:04 aegis
/mnt/sdc1/bolemo/www:
-rwxrwxrwx 1 root root 1052 Oct 19 12:30 aegis.htm
root@R9000:/$
root@R9000:/$ cd /opt
root@R9000:/opt$
root@R9000:/opt$ ls -l bolemo/*
bolemo/etc:
-rwxrwxrwx 1 root root 719046 Oct 19 21:59 aegis-bl.netset
-rwxrwxrwx 1 root root 455 Oct 19 11:14 aegis.sources
bolemo/scripts:
-rwxrwxrwx 1 root root 34932 Oct 19 21:04 aegis
bolemo/www:
-rwxrwxrwx 1 root root 1052 Oct 19 12:30 aegis.htm
/usr/sbin/net-wall: /usr/sbin/net-wall: 107: /opt/scripts/firewall-start.sh: not found
installed on usb ........ but from error help
[/CODE]Code:root@R9000:/$ aegis info Info: - 'aegis' version 1.1.4 is installed on external drive. - 'aegis' is in PATH. - This is the last version. - 'iprange' is installed: iprange 1.0.4 root@R9000:/$ root@R9000:/$ aegis update -v aegis 1.1.4 - Verbose mode Initializing... - 'firewall-start.sh' is in place and ok. - 'aegis' is installed on external drive. - 'post-mount.sh' is in place and ok. Updating blocklist from sources... - Downloading lists defined in /opt/bolemo/etc/aegis.sources 1) https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/firehol_level1.netset - 100%[===================>] 41.56K --.-KB/s in 0.002s 2) https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/firehol_level2.netset - 100%[===================>] 291.01K --.-KB/s in 0.01s 3) https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/firehol_level3.netset - 100%[===================>] 263.96K --.-KB/s in 0.01s 4) https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/iblocklist_ciarmy_malicious.netset - 100%[===================>] 202.01K --.-KB/s in 0.02s 5) https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/malwaredomainlist.ipset - 100%[===================>] 14.49K --.-KB/s in 0.001s - Optimizing and reducing netset (using iprange)... - Done. Building ipset blocklist (49740 entries blocking 619488609 ips)... - Created blocklist, swapping it. - Done. - Internal firewall needs to be restarted... Restarting firewall... /bin/sh: /etc/appflow/streamboost.d/40_qdiscman: not found /bin/sh: /etc/appflow/streamboost.d/40_qdiscman: not found /usr/sbin/net-wall: /usr/sbin/net-wall: 107: /opt/scripts/firewall-start.sh: not found - Firewall restarted. Status: - 'aegis' version: 1.1.4 - 'iprange' is installed: iprange 1.0.4 - Something is not right! Use 'aegis -v status' for more details - Logging is off. Detailed status: - 'firewall-start.sh' exists with correct settings. - 'post-mount.sh' exists with correct settings. - Actual router time: 2020-10-19 21:59:37 - Blocklist generation time: 2020-10-19 21:59:37 - No status file found. - iptables rules are not set. - Logging is inactive. - ipset blocklist is set: Name: aegis_bl Type: hash:net Revision: 6 Header: family inet hashsize 16384 maxelem 49740 Size in memory: 1053748 References: 0 Number of entries: 49740 - ipset whitelist is not set. - ipset WAN gateway bypass is not set. root@R9000:/$ root@R9000:/$ aegis status -v aegis 1.1.4 - Verbose mode Status: - 'aegis' version: 1.1.4 - 'iprange' is installed: iprange 1.0.4 - Something is not right! Use 'aegis -v status' for more details - Logging is off. Detailed status: - 'firewall-start.sh' exists with correct settings. - 'post-mount.sh' exists with correct settings. - Actual router time: 2020-10-19 22:00:00 - Blocklist generation time: 2020-10-19 22:00:00 - No status file found. - iptables rules are not set. - Logging is inactive. - ipset blocklist is set: Name: aegis_bl Type: hash:net Revision: 6 Header: family inet hashsize 16384 maxelem 49740 Size in memory: 1053748 References: 0 Number of entries: 49740 - ipset whitelist is not set. - ipset WAN gateway bypass is not set. root@R9000:/$ root@R9000:/$ aegis info Info: - 'aegis' version 1.1.4 is installed on external drive. - 'aegis' is in PATH. - This is the last version. - 'iprange' is installed: iprange 1.0.4 root@R9000:/$ root@R9000:/$ net-wall restart Starting Firewall... Done! /bin/sh: /etc/appflow/streamboost.d/40_qdiscman: not found /bin/sh: /etc/appflow/streamboost.d/40_qdiscman: not found /usr/sbin/net-wall: /usr/sbin/net-wall: 107: /opt/scripts/firewall-start.sh: not found root@R9000:/$ [CODE]root@R9000:/$ ls -l /mnt lrwxrwxrwx 1 root root 8 Sep 2 17:44 /mnt -> /tmp/mnt root@R9000:/$ root@R9000:/$ ls -l /mnt/UNTITLED/ ls: /mnt/UNTITLED/: No such file or directory root@R9000:/$ root@R9000:/$ ls -l /mnt/ lrwxrwxrwx 1 root root 4 Oct 19 21:37 New_Volume -> sdc1 drwxrwxrwx 1 root root 4096 Oct 19 11:28 sdc1 root@R9000:/$ root@R9000:/$ ls -l /mnt/sdc1/bolemo/* /mnt/sdc1/bolemo/etc: -rwxrwxrwx 1 root root 719046 Oct 19 21:59 aegis-bl.netset -rwxrwxrwx 1 root root 455 Oct 19 11:14 aegis.sources /mnt/sdc1/bolemo/scripts: -rwxrwxrwx 1 root root 34932 Oct 19 21:04 aegis /mnt/sdc1/bolemo/www: -rwxrwxrwx 1 root root 1052 Oct 19 12:30 aegis.htm root@R9000:/$ root@R9000:/$ cd /opt root@R9000:/opt$ root@R9000:/opt$ ls -l bolemo/* bolemo/etc: -rwxrwxrwx 1 root root 719046 Oct 19 21:59 aegis-bl.netset -rwxrwxrwx 1 root root 455 Oct 19 11:14 aegis.sources bolemo/scripts: -rwxrwxrwx 1 root root 34932 Oct 19 21:04 aegis bolemo/www: -rwxrwxrwx 1 root root 1052 Oct 19 12:30 aegis.htm
root@R9000:/$ cd /opt/scripts/
root@R9000:/opt/scripts$
root@R9000:/opt/scripts$ ls
firewall-start-adguardhome.sh firewall-start.sh
firewall-start-bwusage.sh
root@R9000:/opt/scripts$
root@R9000:/opt/scripts$ vi firewall-start.sh
#!/bin/bash
iptables -I INPUT -s 51.79.162.132 -j DROP
iptables -I INPUT -s 51.79.142.79 -j DROP
iptables -A INPUT -p tcp --destination-port 50002 -j DROP
# Bolemo aegis
[ -x /opt/bolemo/scripts/aegis ] && /opt/bolemo/scripts/aegis _fws
~
~
~
~
~
~
~
~
~
~
~
~
~
~
net-wall restart
Thread starter | Title | Forum | Replies | Date |
---|---|---|---|---|
L | Voxel changed default Firewall setting? | NETGEAR AC Routers and Adapters (Wi-Fi 5) | 3 |
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!