Diamond67
Senior Member
I have my Skynet install dir and my swap file on totally different flash drives. Works fine.I think Skynet and the swap should be on the same partition. IMHO
I have my Skynet install dir and my swap file on totally different flash drives. Works fine.I think Skynet and the swap should be on the same partition. IMHO
Adam
I received comments from Martineau - not sure if this is useful to you
iptables -I logdrop -m state --state NEW -j LOG --log-prefix "DROP " --log-tcp-sequence --log-tcp-options --log-ip-options
iptables -I logdrop -m state --state NEW -j LOG --log-prefix "[BLOCKED - INVALID] " --log-tcp-sequence --log-tcp-options --log-ip-options
Thanks, but I only have 1 drive. 2 partitions but 1 drive. I could try putting that swap file in the other partition, and eliminating that other partition completely since I only have entware in case I find something I'd want in the future.
Currently both are on the same partition, but still there are problems.I think Skynet and the swap should be on the same partition. IMHO
Isn't owner of swap supposed to be root?
I may have solved this issue for now. I copied the line from the /jffs/scripts/firewall-start file and put it into the post-mount file after the swapon line, then rebooted. Now all is OK. Then just to be sure, I rebooted twice more, and both times, Skynet is OK, with firewall debug info telling me I have 16/16 Tests Successful.
@Adamm Unable to add s2.mp4upload.com as domain whitelist.
Error states “[*] Domain Not Valid - Please Try Again”
Is there some validation done on the domain we trying to add? Coding error?
Add client list w/ status to "debug info"
Rewrite menu tests
Delay swap file check by 10s if entry exists but isnt loaded
General code cleanup and aesthetics
Router Model; RT-AC2900
Skynet Version; v6.6.2 (20/11/2018)
iptables v1.4.15 - (eth0 @ 192.168.1.1)
ipset v6.32, protocol version: 6
FW Version; 384.7_2 (Oct 21 2018) (4.1.27)
Install Dir; /tmp/mnt/usbdata/skynet (11.3G / 14.1G Space Available)
SWAP File; /tmp/mnt/usbdata/myswap.swp (2.0G)
Boot Args; /jffs/scripts/firewall start skynetloc=/tmp/mnt/usbdata/skynet
Inbound Filter Rules | [Failed]
Outbound Filter Rules | [Failed]
Whitelist IPSet | [Failed]
BlockedRanges IPSet | [Failed]
Blacklist IPSet | [Failed]
Skynet IPSet | [Failed]
-------------------- | ----------
| Test Description | | | Result |
-------------------- | ----------
Internet-Connectivity | [Passed]
Write Permission | [Passed]
Firewall-Start Entry | [Passed]
Services-Stop Entry | [Passed]
CronJobs | [Failed]
IPSet Comment Support | [Passed]
Log Level 5 Settings | [Passed]
Duplicate Rules In RAW | [Passed]
Inbound Filter Rules | [Failed]
Inbound Debug Rules | [Failed]
Outbound Filter Rules | [Failed]
Outbound Debug Rules | [Failed]
Whitelist IPSet | [Failed]
BlockedRanges IPSet | [Failed]
Blacklist IPSet | [Failed]
Skynet IPSet | [Failed]
----------- | ----------
| Setting | | | Status |
---------- | ----------
Autoupdate | [Enabled]
Auto-Banmalware Update | [Enabled]
Debug Mode | [Enabled]
Filter Traffic | [Enabled]
Unban PrivateIP | [Enabled]
Log Invalid | [Disabled]
Ban AiProtect | [Disabled]
Secure Mode | [Enabled]
Fast Switch | [Disabled]
7/16 Tests Sucessful
Disk /dev/sda: 15.3 GB, 15376000000 bytes
64 heads, 32 sectors/track, 14663 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 14663 15014896 83 Linux
[*] Skynet Not Running - Exiting
Where might the problem be located? I've tried doing everything from scratch twice, but keep receiving the same error. Any help would sure be much appreciated
sh /jffs/scripts/firewall restart
Issue the following command then check your syslog;
Code:sh /jffs/scripts/firewall restart
If Skynet fails to start, it will print the reason why there.
Nov 20 15:10:54 Skynet: [%] Startup Initiated... ( skynetloc=/tmp/mnt/usbdata/skynet )
Nov 20 15:10:54 Skynet: [*] Skynet Requires A SWAP File - Install One By Running ( /jffs/scripts/firewall debug swap install )
admin@RT-AC2900-A290:/tmp/mnt/usbdata#
16 drwx------ 2 admin root 16384 Nov 20 14:56 lost+found
524804 -rw-rw-rw- 1 admin root 536870912 Nov 20 15:05 myswap.swp
4 drwxrwxrwx 2 admin root 4096 Nov 20 15:06 skynet
Followed this guide (only created one full partition though, not two separate ones): https://www.snbforums.com/threads/configuring-syslog-ng-with-merlin-firmware.35095/
If I try and reinstall the swap file it does work until next reboot.
sh /jffs/scripts/firewall update -f
# wait 30 seconds
sh /jffs/scripts/firewall debug info extended
This was my issue also. I got it to work by copying the line from file /jffs/scripts/firewall-start into /jffs/scripts/post-mount, then rebooting. You now may need to reinstall the swap file, I do not remember if that was necessary. Before the mod, the post-mount file only contains the #!/bin/sh line. After the reboot, for me, it now contains:
#!/bin/sh line
swapon /tmp/mnt/data/myswap.swp # Skynet Firewall Addition
sh /jffs/scripts/firewall start skynetloc=/tmp/mnt/data/skynet # Skynet Firewall Addition
This mod seems to survive a reboot, but occasionally I will run this line just to verify that all is OK by getting the result that 16/16 Tests were successful.
sh /jffs/scripts/firewall debug info
I hope Adam will find the issue and fix it so that this sequence is not necessary.
sh /jffs/scripts/firewall update -f
I couldn't find the exact guide you were referring to. Can you run a forced update then run the debug info command again (and any related syslog output), I've added an additional test that will give me more insight to what the issue is with your swap file.
Code:sh /jffs/scripts/firewall update -f # wait 30 seconds sh /jffs/scripts/firewall debug info extended
Thanks I was able to track down the issue (I was incorrectly assuming the post-mount entry was being properly generated previously).
The issue was when Skynet generates a swap file, it replaces the second line of post-mount with the swapon entry. But if the file is fresh, there is no second line to replace so the swapon entry was never saved. By you adding another line to your post-mount file, you inadvertedly fixed the issue by adding a second line for Skynet to replace with the (correct) fix.
For any affected users. Please remove any manual modifications and run a forced update. Skynet should proceed to generate Swap files properly in future (generate a new one if asked).
Code:sh /jffs/scripts/firewall update -f
@TonyK132 @tronbar
/jffs/scripts/firewall: line 264: syntax error: unexpected "fi" (expecting "then")
/jffs/scripts/firewall: line 264: syntax error: unexpected "fi" (expecting "then")
Nov 20 09:24:57 Skynet: [*] USB Not Found - Sleeping For 10 Seconds ( Attempt 4 Of 10 )
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!