CLOSED: Access to web-apps externally is erratic
Posted: Wed Oct 28, 2015 12:40 am
Hello
I am having issues accessing web-apps from outside my network. It works for some and not for others and I cannot figure why.
I have couchpotato, sabnzbd, sickbeard and owncloud. For the first three, I can access web-apps from outside my network by using. When I check the listening ports by using i can see the respective ports are listening (for example I get this for sickbeard XXXX/tcp open blackice-icecap)
Owncloud, on the other hand is a difficult beast as I cannot get it to be accessible externally...
I have tried to use the wiki section titled "Hosting Webapps (Change Port)" but no luck. Owncloud worked internally but not externally
I then tried the customer options outlined in the wiki section "Web App Packaging Notes@ by editing the ports access as by editing the .conf file in /etc/httpd/conf.d folder as follows (note - XXXX are the port numbers) nb the router ports are forwarding correctly to the HDA.
Still no luck. I tried to do both (i.e. Listen and proxypass) but nothing.
I then tried to add a rule on the the iPtables, but systemctl status iptables gives me:
and when I do iptables -L i get the following:
Based on this, i didnt make any changes to the iptables as (a) no-one seems to talk about this as a solution, so figured it wasnt a good idea and (b) it looks like totally open or inactive.
So now I am properly stuck.
I am having issues accessing web-apps from outside my network. It works for some and not for others and I cannot figure why.
I have couchpotato, sabnzbd, sickbeard and owncloud. For the first three, I can access web-apps from outside my network by using
Code: Select all
http//username.yourhda.com:XXXX #where XXXX is the port of the app
Code: Select all
nmap -sT -O localhost
Owncloud, on the other hand is a difficult beast as I cannot get it to be accessible externally...
I have tried to use the wiki section titled "Hosting Webapps (Change Port)" but no luck. Owncloud worked internally but not externally
I then tried the customer options outlined in the wiki section "Web App Packaging Notes@ by editing the ports access as by editing the .conf file in /etc/httpd/conf.d folder as follows (note - XXXX are the port numbers) nb the router ports are forwarding correctly to the HDA.
Code: Select all
<VirtualHost *:80>
ServerName owncloud8
ServerAlias owncloud8.amahi.net
ProxyPass / http://localhost:XXXX/
ProxyPassReverse / http://localhost:XXXX/
DocumentRoot /var/hda/web-apps/owncloud8/html
<Directory "/var/hda/web-apps/owncloud8/html">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/hda/web-apps/owncloud8/logs/error_log
CustomLog /var/hda/web-apps/owncloud8/logs/access_log combined env=!dontlog
</VirtualHost>
Still no luck. I tried to do both (i.e. Listen and proxypass) but nothing.
I then tried to add a rule on the the iPtables, but systemctl status iptables gives me:
Code: Select all
● iptables.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
Code: Select all
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
So now I am properly stuck.