Two problem with v1.12

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
aszat84
Posts: 21
Joined: Fri Apr 28, 2017 9:36 am

Two problem with v1.12

Post 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!

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: Two problem with v1.12

Post 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?
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

aszat84
Posts: 21
Joined: Fri Apr 28, 2017 9:36 am

Re: Two problem with v1.12

Post 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.

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: Two problem with v1.12

Post 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.
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

aszat84
Posts: 21
Joined: Fri Apr 28, 2017 9:36 am

Re: Two problem with v1.12

Post 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.

Post Reply