[Support] Linuxserver.io - SWAG - Secure Web Application Gateway (Nginx/PHP/Certbot/Fail2ban)


Recommended Posts

1 minute ago, CHBMB said:

As I keep telling you, the issue is NAT reflection and that link says your router doesn't support it.

Your only solution is to change your hardware.




Sent from my Mi A1 using Tapatalk
 

I understand. Thank you. I did search for that on google i just didnt use my hardware i just used spectrum. Well now we know that i need to change the wireless router at home. It's actually sitting on my desk. I did type the ip address manually and it takes me to this screen. Then i click on advance to continue and it takes me through https. Crazy. Well @CHBMB Thank you for been patience and for helping me and other here. You are truly amazing.

 

 

Screen Shot 2019-05-31 at 1.36.24 PM.png

Link to comment
7 minutes ago, CHBMB said:

Why don't you submit it as a PR here.

Thanks, I'll do that.

 

8 hours ago, Tucubanito07 said:

if you get Nextcloud working within your Lan can you let us know please. I am able to connect to Nextcloud through Wan but inside the network i can.

I'm not configuring Nextcloud so the setup is probably different. Have you had a look at Spaceinvader One's tutorial on YouTube? https://www.youtube.com/watch?v=I0lhZc25Sro

5 minutes ago, Tucubanito07 said:

In what file is did you change this?

It's covered in the YouTube tutorial. Inside the AppData folder of the letsencrypt docker (/appdata/letsencrypt/nginx/proxy-confs)

 

Link to comment
1 minute ago, bamtan said:

Thanks, I'll do that.

 

I'm not configuring Nextcloud so the setup is probably different. Have you had a look at Spaceinvader One's tutorial on YouTube? https://www.youtube.com/watch?v=I0lhZc25Sro

It's covered in the YouTube tutorial. Inside the AppData folder of the letsencrypt docker (/appdata/letsencrypt/nginx/proxy-confs)

 

I think i got it working inside my network with deleting the proxy pass.

Link to comment
Wanted to let you guys know that i did not get it to work with Linksys 3200ACM. I bought another router from netgear that gets here tomorrow and ill post if i got it working.
How much did you pay for that?

I mean if you paid $150 for it you probably could have build a pfsense box and have a powerful firewall.

Just saying

Sent from my SM-N960U using Tapatalk

  • Like 1
Link to comment
10 hours ago, ijuarez said:

How much did you pay for that?

I mean if you paid $150 for it you probably could have build a pfsense box and have a powerful firewall.

Just saying

Sent from my SM-N960U using Tapatalk
 

Is not a bad idea. However, I don't want to be always trying to figure out why the pfsense is not working or why isn't it doing what i want it to do. Also, one turn key solution is better in my opinion. However, I was looking around and the wi-fi capabilities are a hit or miss on what wifi card you get. I read that it does not support AC protocol. This unraid is already a diy kind of server and don't want to complicate it any more. The netgear that i just bought says it has nat loopback and openVPN on their wireless router plus AC capabilities. Hopefully after i get the port forwarding done on the netgear router is going to work. I have reinstall the Letsencrypt and change the DNS on both nextcloud and Letsencrypt to make sure i don't forget how to set it up. Letsencrypt works now i just need the wireless router to get this to work. Ill will post my finding so later on it can help someone. You never know.

Link to comment
Is not a bad idea. However, I don't want to be always trying to figure out why the pfsense is not working or why isn't it doing what i want it to do. Also, one turn key solution is better in my opinion. However, I was looking around and the wi-fi capabilities are a hit or miss on what wifi card you get. I read that it does not support AC protocol. This unraid is already a diy kind of server and don't want to complicate it any more. The netgear that i just bought says it has nat loopback and openVPN on their wireless router plus AC capabilities. Hopefully after i get the port forwarding done on the netgear router is going to work. I have reinstall the Letsencrypt and change the DNS on both nextcloud and Letsencrypt to make sure i don't forget how to set it up. Letsencrypt works now i just need the wireless router to get this to work. Ill will post my finding so later on it can help someone. You never know.
I'm a big fan of Pfsense and have a self built Pfsense machine, but actually I think you've made the right decision, if it does what you need it to do, and you don't want to learn Pfsense, then it's the correct option

Sent from my Mi A1 using Tapatalk

  • Like 1
Link to comment

Thanks for your answers and sorry for my late response.

On 5/30/2019 at 11:41 PM, ijuarez said:

From your graphic it looks like you're double natting?

Yes. Could this be causing the issue? I have to keep my ISP router on as it provides the TV connection.

My pfsense box is in the DMZ of the ISP router. With this setting, I don't need to forward the ports from the ISP to the pfsense box.

On 5/31/2019 at 12:39 AM, saarg said:

Did you also enable the dns resolver?

Yes

On 5/31/2019 at 2:54 AM, CHBMB said:

The issue looks to me to be that of NAT reflection/Hairpin NAT.

 

@Lynxphp Try adding this in pfsense in the custom options of DNS resolver.
 


server:
local-zone: "xxx.duckdns.org" redirect
local-data: "xxx.duckdns.org 3600 IN A 19.16.17.101"

 

Thanks for the tip. I tried it. Still no luck getting local access... My Custom options in the DNS Resolver (which is enabled) now look like this:

server:
private-domain: "unraid.net"
local-zone: "nextcloud.XXX.duckdns.org" redirect
local-data: "nextcloud.XXX.duckdns.org 3600 IN A 19.16.17.101"

Are there any other troubleshooting steps I could take? Or steps to provide you guys with more accurate information regarding my issue ?

 

On 5/31/2019 at 3:42 AM, jonathanm said:

Regardless of whether it works for you or not, it's not good to use somebody else's IP addresses in your private network. It can make for some confusing troubleshooting, The 19.16.17.X block of addresses is owned by Ford Motor Company in the USA.

 

I'd advise using blocks of addresses that are reserved for private use, the 192.168.X.X, 10.X.X.X, etc.

oh.

I guess I'll have to change that :(. Thanks for the heads up.

 

Link to comment
nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)

nginx: [error] lua_load_resty_core failed to load the resty.core module from https://github.com/openresty/lua-resty-core; ensure you are using an OpenResty release from https://openresty.org/en/download.html (rc: 2, reason: module 'resty.core' not found:

no field package.preload['resty.core']
no file './resty/core.lua'
no file '/usr/share/luajit-2.1.0-beta3/resty/core.lua'
no file '/usr/local/share/lua/5.1/resty/core.lua'
no file '/usr/local/share/lua/5.1/resty/core/init.lua'
no file '/usr/share/lua/5.1/resty/core.lua'
no file '/usr/share/lua/5.1/resty/core/init.lua'
no file '/usr/share/lua/common/resty/core.lua'
no file '/usr/share/lua/common/resty/core/init.lua'
no file './resty/core.so'
no file '/usr/local/lib/lua/5.1/resty/core.so'
no file '/usr/lib/lua/5.1/resty/core.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './resty.so'
no file '/usr/local/lib/lua/5.1/resty.so'
no file '/usr/lib/lua/5.1/resty.so'
no file '/usr/local/lib/lua/5.1/loadall.so')

Are this errors normal? Anybody else having this errors? My nextcloud was working a few days ago then suddenly doesnt work anymore. :(

Link to comment
1 hour ago, karlpox said:

nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)

nginx: [error] lua_load_resty_core failed to load the resty.core module from https://github.com/openresty/lua-resty-core; ensure you are using an OpenResty release from https://openresty.org/en/download.html (rc: 2, reason: module 'resty.core' not found:

no field package.preload['resty.core']
no file './resty/core.lua'
no file '/usr/share/luajit-2.1.0-beta3/resty/core.lua'
no file '/usr/local/share/lua/5.1/resty/core.lua'
no file '/usr/local/share/lua/5.1/resty/core/init.lua'
no file '/usr/share/lua/5.1/resty/core.lua'
no file '/usr/share/lua/5.1/resty/core/init.lua'
no file '/usr/share/lua/common/resty/core.lua'
no file '/usr/share/lua/common/resty/core/init.lua'
no file './resty/core.so'
no file '/usr/local/lib/lua/5.1/resty/core.so'
no file '/usr/lib/lua/5.1/resty/core.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './resty.so'
no file '/usr/local/lib/lua/5.1/resty.so'
no file '/usr/lib/lua/5.1/resty.so'
no file '/usr/local/lib/lua/5.1/loadall.so')

Are this errors normal? Anybody else having this errors? My nextcloud was working a few days ago then suddenly doesnt work anymore. :(

For the love of all things holy do a search on Github or on this thread, it's discussed or mentioned by someone every 4 or 5 posts......

Link to comment

hi, i am trying to get nextcloud to work from outside network and all the time i get this error

nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)
nginx: [error] lua_load_resty_core failed to load the resty.core module from https://github.com/openresty/lua-resty-core; ensure you are using an OpenResty release from https://openresty.org/en/download.html (rc: 2, reason: module 'resty.core' not found: no field package.preload['resty.core']
no file './resty/core.lua'
no file '/usr/share/luajit-2.1.0-beta3/resty/core.lua'
no file '/usr/local/share/lua/5.1/resty/core.lua'
no file '/usr/local/share/lua/5.1/resty/core/init.lua'
no file '/usr/share/lua/5.1/resty/core.lua'
no file '/usr/share/lua/5.1/resty/core/init.lua'
no file '/usr/share/lua/common/resty/core.lua'
no file '/usr/share/lua/common/resty/core/init.lua'
no file './resty/core.so'
no file '/usr/local/lib/lua/5.1/resty/core.so'
no file '/usr/lib/lua/5.1/resty/core.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './resty.so'
no file '/usr/local/lib/lua/5.1/resty.so'
no file '/usr/lib/lua/5.1/resty.so'
no file '/usr/local/lib/lua/5.1/loadall.so')
Server ready

 

 

anyone can please help ? i dont have knowledge on how to fix this thinkgs

Edited by Danuel
Link to comment
19 minutes ago, Danuel said:

hi, i am trying to get nextcloud to work from outside network and all the time i get this error

nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)
nginx: [error] lua_load_resty_core failed to load the resty.core module from https://github.com/openresty/lua-resty-core; ensure you are using an OpenResty release from https://openresty.org/en/download.html (rc: 2, reason: module 'resty.core' not found: no field package.preload['resty.core']
no file './resty/core.lua'
no file '/usr/share/luajit-2.1.0-beta3/resty/core.lua'
no file '/usr/local/share/lua/5.1/resty/core.lua'
no file '/usr/local/share/lua/5.1/resty/core/init.lua'
no file '/usr/share/lua/5.1/resty/core.lua'
no file '/usr/share/lua/5.1/resty/core/init.lua'
no file '/usr/share/lua/common/resty/core.lua'
no file '/usr/share/lua/common/resty/core/init.lua'
no file './resty/core.so'
no file '/usr/local/lib/lua/5.1/resty/core.so'
no file '/usr/lib/lua/5.1/resty/core.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './resty.so'
no file '/usr/local/lib/lua/5.1/resty.so'
no file '/usr/lib/lua/5.1/resty.so'
no file '/usr/local/lib/lua/5.1/loadall.so')
Server ready

 

 

anyone can please help ? i dont have knowledge on how to fix this thinkgs

What does the post above yours say about the errors?

Do you guys care to investigate anything yourself, or do you just reply to the thread without even searching and reading expecting others to figure out everything?

  • Like 1
Link to comment

I'm sorry but I have to agree with @saarg here, come on guys, this is a thread for reference, please try and at least search for your issue rather than just post, think of it this way, we're volunteers, we're not paid for this, if you can't be bothered to search and/or read, give us one good reason why we should be bothered to try and help.

Edited by CHBMB
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.