What's new

Skynet Skynet - Router Firewall & Security Enhancements

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Many forced updates of Jack Yaz scripts & Skynet, a number of router reboots, everything working well but no Skynet ui as yet.o_O
Curiouser & curiouser.......
 
Many forced updates of Jack Yaz scripts & Skynet, a number of router reboots, everything working well but no Skynet ui as yet.o_O
Curiouser & curiouser.......

What’s the contents of;

cat /tmp/menuTree.js

And output of;

ls -la /www/user
 
Will need some more info if this is the case, any output in your syslog? What is the output of debug info? Whats the contents of firewall-restart?
Code:
Jan  6 02:00:02 Skynet: [*] Rule Integrity Violation - Restarting Firewall [#11]
Jan  6 02:00:05 Skynet: [%] Startup Initiated... ( skynetloc=/tmp/mnt/My_Part/skynet )
Jan  6 02:20:59 Skynet: [%] Startup Initiated... ( skynetloc=/tmp/mnt/My_Part/skynet )
Jan  6 02:21:40 Skynet: [*] Lock File Detected (start skynetloc=/tmp/mnt/My_Part/skynet) (pid=1129) - Exiting (cpid=10070)

logs after reboot

Code:
#!/bin/sh

sh /jffs/scripts/firewall start skynetloc=/tmp/mnt/My_Part/skynet # Skynet Firewall Addition

/jffs/scripts/FreshJR_QOS -start $1 &

/jffs/scripts/YazFi runnow & # YazFi Guest Networks

contents of firewall start script.

contents of service-event script

Code:
#!/bin/sh

/jffs/scripts/scribe kill-logger nologo "$1" "$2" & # added by scribe

/jffs/scripts/YazFi bounceclients "$1" "$2" & # YazFi Guest Networks

/jffs/scripts/connmon generate "$1" "$2" & # connmon

/jffs/scripts/ntpmerlin generate "$1" "$2" & # ntpMerlin

if [ "$1" = "start" ] && [ "$2" = "SkynetStats" ]; then sh /jffs/scripts/firewall debug genstats; fi # Skynet Firewall Addition

content of services stop

Code:
#!/bin/sh

/opt/etc/init.d/rc.unslung stop # Added by Diversion

sh /jffs/scripts/firewall save # Skynet Firewall Addition

*** mysteriously skynet finally starts. ***
 
Last edited:
The next output throws me out of snb forums:(
I will try to figure out a different way.....

edit - no luck sorry.

Use pastebin
 
Jan 6 02:00:02 Skynet: [*] Rule Integrity Violation - Restarting Firewall [#11]

Something is nuking rules in your iptables forward chain, please post a full syslog extract with the hours leading up to & after.
 
Will we be able to add / ban and unban via the GUI?

Possibly in the future but will need further investigating, doing so could potentially introduce a security hazard as it could be used maliciously to execute commands.
 
Use pastebin


upload_2020-1-6_19-56-0.jpeg
 
@Treadler

The common way is to post your content and post Pastebin-link in forum thread. :)
 

Sorry gave you the wrong command, its just;

Code:
ls /www/user

But the fact /tmp/menuTree.js doesn't exist seems to be the main concern (not sure why as Skynet should generate a new copy during the webui mount process), how are any of @Jack Yaz 's scripts working if that's the case o_O

So will also need the output of;

Code:
mount

and

Code:
cat /www/require/modules/menuTree.js
 
Sorry gave you the wrong command, its just;

Code:
ls /www/user

cgi-bin shared-my uiDivStats

But the fact /tmp/menuTree.js doesn't exist seems to be the main concern (not sure why as Skynet should generate a new copy during the webui mount process), how are any of @Jack Yaz 's scripts working if that's the case o_O

So will also need the output of;

Code:
mount


ubi:rootfs_ubifs on / type ubifs (ro,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=451672k,nr_inodes=112918,mode=755)
proc on /proc type proc (rw,relatime)
tmpfs on /var type tmpfs (rw,relatime)
tmpfs on /tmp/mnt type tmpfs (rw,relatime,size=16k,mode=755)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mtd:bootfs on /bootfs type jffs2 (ro,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
mtd:data on /data type jffs2 (rw,relatime)
tmpfs on /tmp/mnt type tmpfs (rw,relatime,size=16k,mode=755)
tmpfs on /tmp type tmpfs (rw,relatime)
/dev/mtdblock9 on /jffs type jffs2 (rw,noatime)
tmpfs on /www/require/modules/menuTree.js type tmpfs (rw,relatime)
/dev/sda1 on /tmp/mnt/Rt_Ax88u type ext4 (rw,nodev,relatime,data=ordered)


and

Code:
cat /www/require/modules/menuTree.js
 
+ “menu tree”

/* menuTree_bwdpi_traffic_analyzer.js */
define(function(){
var menuTree = {
list: [
/*
{
menuName: "Title",
index: "Assign an index to this menu, it is also used for filtering",
tab: [
{
url: "Put url here",
tabName: "
Assign a title for this tab, leave this field empty to bypass this tab,
fill in '__HIDE__' to hide the tab switcher,
fill in '__INHERIT__' to inhert tab index from referred page.
"
}
]
}
*/
{
menuName: "<#401#>",
index: "menu_QIS",
tab: [
{url: "QIS_wizard.htm", tabName: "__HIDE__"},
{url: "NULL", tabName: "__INHERIT__"}
]
},
/* ========================================================================================/
{
menuName: "<#296#>",
index: "menu_Split",
tab: [
{url: "NULL", tabName: "__HIDE__"}
]
},
{
menuName: "<#293#>",
index: "menu_Index",
tab: [
{url: "<% networkmap_page(); %>", tabName: "__HIDE__"},
{url: "NULL", tabName: "__INHERIT__"}
]
},
{
menuName: "<#214#>",
index: "menu_GuestNetwork",
tab: [
{url: "Guest_network.asp", tabName: "<#214#>"},
{url: "Captive_Portal.asp", tabName: "Free Wi-Fi"},
{url: "Captive_Portal_Advanced.asp", tabName: "<#3368#>"},
{url: "Guest_network_fbwifi.asp", tabName: "Facebook Wi-Fi"},
{url: "NULL", tabName: "__INHERIT__"}
]
},
{
menuName: "<#1058#>",
index: "menu_AiProtection",
tab: [
{url: "AiProtection_HomeSecurity.asp", tabName: "__HIDE__"},
{url: "AiProtection_HomeProtection.asp", tabName: "<#1013#>"},
{url: "AiProtection_MaliciousSitesBlocking.asp", tabName: "<#1057#>"},
{url: "AiProtection_IntrusionPreventionSystem.asp", tabName: "<#1074#>"},
{url: "AiProtection_InfectedDevicePreventBlock.asp", tabName: "<#975#>"},
{url: "AiProtection_WebProtector.asp", tabName: "<#379#>"},
{url: "ParentalControl.asp", tabName: "__INHERIT__"},
{url: "AiProtection_AdBlock.asp", tabName: "Ad Blocking"},
{url: "AiProtection_Key_Guard.asp", tabName: "Key Guard"},
{url: "YandexDNS.asp", tabName: "<#3324#>"},
{url: "NULL", tabName: "__INHERIT__"}
]
},
{ //for without bwdpi model, RT-N66U_C1
menuName: "<#291#>",
index: "menu_QoS",
tab: [
{url: "QoS_EZQoS.asp", tabName: "<#2161#>"},
{url: "Main_TrafficMonitor_realtime.asp", tabName: "<#679#>"},
{url: "Main_TrafficMonitor_last24.asp", tabName: "__INHERIT__"},
{url: "Main_TrafficMonitor_daily.asp", tabName: "__INHERIT__"},
{url: "AdaptiveQoS_ROG.asp", tabName: "<table style='margin-top:-7px;'><tr><td><img src='/i,
{url: "Main_Spectrum_Content.asp", tabName: "<#2623#>"},
{url: "AdaptiveQoS_TrafficLimiter.asp", tabName: "Traffic Limiter"},
{url: "Advanced_QOSUserPrio_Content.asp", tabName: "__INHERIT__"},
{url: "Advanced_QOSUserRules_Content.asp", tabName: "__INHERIT__"},
]
},
{ //for without bwdpi model, RT-N66U_C1
menuName: "<#379#>",
index: "menu_ParentalControl",
tab: [
{url: "ParentalControl.asp", tabName: "<#379#>"},
{url: "YandexDNS.asp", tabName: "<#3324#>"},
{url: "NULL", tabName: "__INHERIT__"}
]
},
{
menuName: "<#793#>",
index: "menu_BandwidthMonitor",
tab: [
{url: "AdaptiveQoS_Bandwidth_Monitor.asp", tabName: "<#1199#>"},
{url: "QoS_EZQoS.asp", tabName: "<#2161#>"},
{url: "QoS_Stats.asp", tabName: "Classification"},
{url: "AdaptiveQoS_WebHistory.asp", tabName: "<#789#>"},
{url: "AdaptiveQoS_ROG.asp", tabName: "<table style='margin-top:-7px;'><tr><td><img src='/i,
{url: "Main_Spectrum_Content.asp", tabName: "<#2623#>"},
{url: "Advanced_QOSUserPrio_Content.asp", tabName: "__INHERIT__"},
{url: "Advanced_QOSUserRules_Content.asp", tabName: "__INHERIT__"},
{url: "AdaptiveQoS_Adaptive.asp", tabName: "__INHERIT__"},
{url: "NULL", tabName: "__INHERIT__"}
]
},
{
menuName: "ç½æUUå�é

:)
 
Hi Adamm and @Jack Yaz

I am having the same issue as @Treadler .
Skynet tab will not show. Force update on Skynet and connmon multiple times.
Connmon tab is showing and working most of the time but will sometimes display the wrong page.
v6QGw1RvF7TQ.png

RT-AC86U 384.15_alpha1-g4fecf771de
https://pastebin.com/ayL1gPhB


Hope these logs will provide a clue.
As always, thank you for all of your hard work!
 
Hi Adamm and @Jack Yaz

I am having the same issue as @Treadler .
Skynet tab will not show. Force update on Skynet and connmon multiple times.
Connmon tab is showing and working most of the time but will sometimes display the wrong page.
v6QGw1RvF7TQ.png

RT-AC86U 384.15_alpha1-g4fecf771de
https://pastebin.com/ayL1gPhB


Hope these logs will provide a clue.
As always, thank you for all of your hard work!
https://www.snbforums.com/threads/r...urity-enhancements.16798/page-283#post-539008
 

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top