Page 1 of 1

Two problem with v1.12

Posted: Mon Mar 09, 2020 6:01 am
by aszat84
Hello Guys,
I've two problems:
  • Trying to connect to my router from DDNS, but the site can’t be reached. ERR_CONNECTION_REFUSED. Host is working propery, transmission rpc also. Maybe it's a firewall issue?
  • I've created a swap file, but it's not mounting after reboot, I added to /etc/fstab, and /etc/config/fstab also. I'm puzzled..
Thanks in advance!

Re: Two problem with v1.12

Posted: Mon Mar 09, 2020 6:15 am
by RomanHK
aszat84 wrote:
Mon Mar 09, 2020 6:01 am
  • Trying to connect to my router from DDNS, but the site can’t be reached. ERR_CONNECTION_REFUSED. Host is working propery, transmission rpc also. Maybe it's a firewall issue?
If you connect using HTTPS protocol, it is correct because the generated certificate is not validated. Try to disable HTTPS support in Gargoyle and connect via HTTP, or you must have a validated certificate - but that is not that simple.

EDIT: and have remote access enabled?
Image
aszat84 wrote:
Mon Mar 09, 2020 6:01 am
  • I've created a swap file, but it's not mounting after reboot, I added to /etc/fstab, and /etc/config/fstab also. I'm puzzled..
Thanks in advance!
SWAP file or partition?

Re: Two problem with v1.12

Posted: Mon Mar 09, 2020 11:00 am
by aszat84
Hello RomanHK,
It is a swapfile, because the tool not formatted the HDD correctly, that's why I created a file for swap.

Re: Two problem with v1.12

Posted: Mon Mar 09, 2020 11:55 am
by RomanHK
aszat84 wrote:
Mon Mar 09, 2020 11:00 am
Hello RomanHK,
It is a swapfile, because the tool not formatted the HDD correctly, that's why I created a file for swap.
So hello,
I would do it this way:
1. First, we create a 1GB empty file (this step is performed only once):

Code: Select all

dd if=/dev/zero of=/tmp/usb_mount/dev_sda1/swapfile bs=1024 count=1048576
2. We will create a binary swap file (also only once):

Code: Select all

mkswap /tmp/usb_mount/dev_sda1/swapfile
3. Turn on the swap file:

Code: Select all

swapon /tmp/usb_mount/dev_sda1/swapfile
4. To give us a swap file work after restarting the router, I insert a line into /etc/rc.local (before the exit0 command):

Code: Select all

swapon /tmp/usb_mount/dev_sda1/swapfile
That should be done.

Re: Two problem with v1.12

Posted: Tue Mar 10, 2020 4:05 am
by aszat84
Hello RomanHK,
Remote access resolved, thanks!
I created a 256 mb swapfile with the same steps before as you provided, but let me put the swapon command to the rc.local, that's nice tip, thanks.