<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=5490&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Web server - a setting off somewhere ...]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=5490</link>
		<description><![CDATA[The most recent posts in Web server - a setting off somewhere ....]]></description>
		<lastBuildDate>Thu, 26 Jan 2023 03:50:01 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Web server - a setting off somewhere ...]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40585#p40585</link>
			<description><![CDATA[<p>A few questions, to help figure out where the problem lies...<br />The local-network address of the webserver is 192.168.50.3 ?<br />If so, can another computer on the network successfully open the site <a href="http://192.168.50.3/" rel="nofollow">http://192.168.50.3/</a>?&#160; It does appear that your web-server is listening for connections, but if this step isn&#039;t working then you may have a firewall that is blocking the connection.&#160; So... do you have a software firewall (such as ufw) installed?&#160; You may need to configure it to allow incoming traffic on ports 80 and 443.<br />Also, are you behind a NAT/router?&#160; If so, you&#039;ll probably need to set up port forwarding for TCP ports 80 and 443, if you haven&#039;t done so already.&#160; This would make your webserver accessible to the outside internet (<a href="http://www.realupnow.com" rel="nofollow">http://www.realupnow.com</a>).&#160; The process to do this varies, but it should be found somewhere on your router&#039;s admin page.</p>]]></description>
			<author><![CDATA[dummy@example.com (rbit)]]></author>
			<pubDate>Thu, 26 Jan 2023 03:50:01 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40585#p40585</guid>
		</item>
		<item>
			<title><![CDATA[Re: Web server - a setting off somewhere ...]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40513#p40513</link>
			<description><![CDATA[<div class="quotebox"><cite>chris2be8 wrote:</cite><blockquote><div><p>Having a quick look from outside:<br />$ host www.realupnow.com<br />www.realupnow.com has address 66.172.90.106</p><p>But I can&#039;t tell what 66.172.90.106 is. Could that be your router&#039;s external IP address? Or the server&#039;s external IP address?</p></div></blockquote></div><p>That&#039;s my WAN IP/static IP address.</p><p>EDIT 1:</p><p>So, Traceroute gets to the WAN IP, and using SSH I can log into the server 192.168.50.3.</p><p>What, specifically (I&#039;m hoping someone has a checklist for troubleshooting), would prevent connecting via html?</p><p>EDIT 2:</p><p>I can see /var/www/html/index.html via a browser on the server http://www.realupnow.com but not my laptop, on the same network.</p><p>EDIT 3:</p><p>Looking at the Answer halfway down this page <a href="https://unix.stackexchange.com/questions/650009/how-to-reset-sessions-in-nat-table" rel="nofollow">https://unix.stackexchange.com/question … -nat-table</a> might installing and using conntrack to reset things be advised (since I&#039;m using nftables and I&#039;ve copied over some things from my prior working setup)?</p>]]></description>
			<author><![CDATA[dummy@example.com (dcolburn)]]></author>
			<pubDate>Mon, 23 Jan 2023 20:56:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40513#p40513</guid>
		</item>
		<item>
			<title><![CDATA[Re: Web server - a setting off somewhere ...]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40509#p40509</link>
			<description><![CDATA[<p>I can SSH in.</p><p>Might I have a nftables problem?</p><p>I think this is supposed to show nf_tables_inet, nf_tables_ipv6, nf_tables_ipv4, nf_netlink, nf_chain ...</p><div class="codebox"><pre><code>root@devuan1:~# lsmod | grep nf_tables
nf_tables             253952  0
libcrc32c              16384  1 nf_tables
nfnetlink              20480  1 nf_tables
root@devuan1:~# </code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (dcolburn)]]></author>
			<pubDate>Mon, 23 Jan 2023 17:44:38 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40509#p40509</guid>
		</item>
		<item>
			<title><![CDATA[Re: Web server - a setting off somewhere ...]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40508#p40508</link>
			<description><![CDATA[<p>Having a quick look from outside:<br />$ host www.realupnow.com<br />www.realupnow.com has address 66.172.90.106</p><p>$ ping www.realupnow.com<br />PING www.realupnow.com (66.172.90.106) 56(84) bytes of data.<br />64 bytes from 66.172.90.106: icmp_seq=1 ttl=47 time=110 ms<br />64 bytes from 66.172.90.106: icmp_seq=2 ttl=47 time=109 ms</p><p>$ sudo traceroute -T www.realupnow.com<br />traceroute to www.realupnow.com (66.172.90.106), 30 hops max, 60 byte packets<br />&lt;snip&gt;<br />13&#160; 168.182.127.17 (168.182.127.17)&#160; 114.734 ms&#160; 118.489 ms&#160; 116.881 ms<br />14&#160; 168.182.127.1 (168.182.127.1)&#160; 110.179 ms&#160; 110.515 ms&#160; 113.517 ms<br />15&#160; 168.182.127.98 (168.182.127.98)&#160; 118.143 ms&#160; 116.080 ms&#160; 117.728 ms<br />16&#160; 66.172.90.106 (66.172.90.106)&#160; 115.229 ms&#160; 109.814 ms&#160; 111.151 ms<br />17&#160; 66.172.90.106 (66.172.90.106)&#160; 3117.564 ms !H&#160; 3111.648 ms !H&#160; 3109.469 ms !H</p><p>But I can&#039;t tell what 66.172.90.106 is. Could that be your router&#039;s external IP address? Or the server&#039;s external IP address?</p><p>NB. <span class="bbc">traceroute -T</span> uses a SYN packet as it&#039;s probe, to port 80 by default.</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Mon, 23 Jan 2023 17:16:41 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40508#p40508</guid>
		</item>
		<item>
			<title><![CDATA[Re: Web server - a setting off somewhere ...]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40507#p40507</link>
			<description><![CDATA[<p>OK. I have internal working - when I run realupnow.com I get https://realupnow.com and the default nginx welcome page displays.</p><p>If I try to force realupnow.com/index.html or info.php I get <span class="bbc">404 Not Found</span></p><p>If I try from a different computer, on the same network, I get ...</p><div class="codebox"><pre><code>Unable to connect

An error occurred during a connection to www.realupnow.com</code></pre></div><p>I&#039;ll have a look at the router - I haven&#039;t changed anything on it since this was working a few weeks ago ...</p>]]></description>
			<author><![CDATA[dummy@example.com (dcolburn)]]></author>
			<pubDate>Mon, 23 Jan 2023 15:01:51 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40507#p40507</guid>
		</item>
		<item>
			<title><![CDATA[Re: Web server - a setting off somewhere ...]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40504#p40504</link>
			<description><![CDATA[<p>looks like network issue. http/https ports are filtered, not accessible from outside. <br />could be router/ISP or firewall issue. ping seems to work ok, but ports 22,80,443,631 look filtered. <br />so, resolve network issues first... then look at web server for possible issues... (might be fine just as is).</p>]]></description>
			<author><![CDATA[dummy@example.com (xinomilo)]]></author>
			<pubDate>Mon, 23 Jan 2023 07:22:13 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40504#p40504</guid>
		</item>
		<item>
			<title><![CDATA[Re: Web server - a setting off somewhere ...]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40499#p40499</link>
			<description><![CDATA[<p>Does the absence of a url in this output mean something isn&#039;t working?<br />Any suggestions as to where to look?<br />[Context: Devuan nginx php-fpm nftables]</p><div class="codebox"><pre><code>root@devuan1:/etc# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 0.0.0.0:http            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:ssh             0.0.0.0:*               LISTEN     
tcp        0      0 localhost:ipp           0.0.0.0:*               LISTEN     
tcp        0      0 localhost:smtp          0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:https           0.0.0.0:*               LISTEN     
tcp        0      0 localhost:4101          0.0.0.0:*               LISTEN     
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN     
tcp6       0      0 localhost:ipp           [::]:*                  LISTEN     
tcp6       0      0 localhost:smtp          [::]:*                  LISTEN     
tcp6       0      0 localhost:4101          [::]:*                  LISTEN     
tcp6       0      0 [::]:sane-port          [::]:*                  LISTEN     
udp        0      0 0.0.0.0:631             0.0.0.0:*                          
udp        0      0 0.0.0.0:mdns            0.0.0.0:*                          
udp        0      0 0.0.0.0:42163           0.0.0.0:*                          
udp6       0      0 [::]:mdns               [::]:*                             
udp6       0      0 [::]:52198              [::]:*                             
raw6       0      0 [::]:ipv6-icmp          [::]:*                  7   </code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (dcolburn)]]></author>
			<pubDate>Mon, 23 Jan 2023 01:22:52 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40499#p40499</guid>
		</item>
		<item>
			<title><![CDATA[Re: Web server - a setting off somewhere ...]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40495#p40495</link>
			<description><![CDATA[<p>Anything in either of these flag a problem?</p><div class="codebox"><pre><code>root@devuan1:/etc/nginx# sudo netstat -plutn | grep nginx
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      4991/nginx: master  
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      4991/nginx: master  
root@devuan1:/etc/nginx# </code></pre></div><p>nftables.conf</p><div class="codebox"><pre class="vscroll"><code># !/usr/sbin/nft -f

flush ruleset

# table inet filter {
#	chain input {
#		type filter hook input priority 0;
#	}
#	chain forward {
#		type filter hook forward priority 0;
#	}
#	chain output {
#		type filter hook output priority 0;
#	}
# }

table inet firewall {

	chain_inbound ipv4 {
	icmp type echo-request limit rate 5/second accept
	}

    chain inbound {
        type filter hook input priority filter; policy drop;
        ct state established,related accept
        ct state invalid drop
        iif &quot;lo&quot; counter packets accept
        ip protocol icmp accept
        ip6 nexthdr ipv6-icmp accept
        ip protocol igmp accept
#        iif &quot;lo&quot; counter packets 0 bytes 0 accept
#        ip protocol icmp limit rate 4/second accept
#        ip6 nexthdr ipv6-icmp limit rate 4/second accept
#        ip protocol igmp limit rate 4/second accept
        tcp dport { 22, 80, 443 accept
        log
    }

    chain FORWARD {
        type filter hook forward priority filter; policy drop;
    }

    chain OUTBOUND {
       type filter hook output priority filter; policy drop;

       # Allow traffic from established and related packets, drop invalid
            ct state vmap { established : accept, related : accept, invalid : drop }
   
       # Allow loopback
            oif &quot;lo&quot; accept

       # Accepted ports out (DNS / DHCP / TIME / WEB for package updates / SMTP)
            ct state new tcp dport {22, 80, 443} accept
            log prefix &quot;DROP_output: &quot; limit rate 3/second
   }
}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (dcolburn)]]></author>
			<pubDate>Sun, 22 Jan 2023 22:54:44 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40495#p40495</guid>
		</item>
		<item>
			<title><![CDATA[Web server - a setting off somewhere ...]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40469#p40469</link>
			<description><![CDATA[<p>I&#039;m not getting nginx errors and I can ping 127.0.0.1 and 192.168.50.3 from the server.</p><p>I can ping 192.168.50.3 from another computer on the same network.</p><p>I cannot ping 192.168.50.4 (for which I have a prior note that it may be the nginx internal ip)</p><p>I also can&#039;t access realupnow.com</p><p>Looking at the following is there anything obvious which I have incorrectly configured, please?</p><p>This is nginx.conf</p><div class="codebox"><pre class="vscroll"><code>user www-data;
error_log logs/error.log notice;
worker_processes auto;
pid /run/nginx.pid;
load_module modules/ndk_http_module.so;
load_module modules/ngx_http_lua_module.so;
# include conf.d/http;
# include conf.d/stream;
# include conf.d/exchange-enhanced;

events {
	worker_connections 768;
	# multi_accept on;
}

http {

	##
	# Basic Settings
	##

	sendfile on;
	tcp_nopush on;
	types_hash_max_size 2048;
	# server_tokens off;

	# server_names_hash_bucket_size 64;
	# server_name_in_redirect off;

	include /etc/nginx/mime.types;
	default_type application/octet-stream;

	##
	# SSL Settings
	##

	ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
	ssl_prefer_server_ciphers on;

	##
	# Logging Settings
	##

	access_log /var/log/nginx/access.log;
	error_log /var/log/nginx/error.log;

	##
	# Gzip Settings
	##

	gzip on;

	# gzip_vary on;
	# gzip_proxied any;
	# gzip_comp_level 6;
	# gzip_buffers 16 8k;
	# gzip_http_version 1.1;
	# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

	##
	# Virtual Host Configs
	##

	include /etc/nginx/conf.d/*.conf;
	include /etc/nginx/sites-enabled/*;
}

#mail {
#	# See sample authentication script at:
#	# http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
#
#	# auth_http localhost/auth.php;
#	# pop3_capabilities &quot;TOP&quot; &quot;USER&quot;;
#	# imap_capabilities &quot;IMAP4rev1&quot; &quot;UIDPLUS&quot;;
#
#	server {
#		listen     localhost:110;
#		protocol   pop3;
#		proxy      on;
#	}
#
#	server {
#		listen     localhost:143;
#		protocol   imap;
#		proxy      on;
#	}
#}</code></pre></div><p>EDIT: realupnow.com in sites-available updated with corrections ...</p><p>This is realupnow.com&#160; in /etc/nginx/sites-available and symlinked to sites-enabled</p><div class="codebox"><pre class="vscroll"><code>##
# Virtual Host configuration for realupnow.com
#
# Be sure to symlink this to ~/sites-enabled/ to enable it.
# sudo ln -s /etc/nginx/sites-available/realupnow.com /etc/nginx/sites-enabled/realupnow.com
#

server {
    listen 80;
#    root /var/www/realupnow.com;
    root /var/www/html;
    index index.php index.html index.htm index.nginx-debian.html;
    server_name realupnow.com www.realupnow.com;

#    root /var/www/html/domain.com/public_html;

    listen 443 ssl;

	location / {
		try_files $uri $uri/ =404;
	}

	# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
	location ~ \.php$ {
		include snippets/fastcgi-php.conf;
		fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
	}

    # RSA certificate
    ssl_certificate /etc/letsencrypt/live/realupnow.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/realupnow.com/privkey.pem;
    ssl_dhparam /etc/ssl/certs/dhparam.pem;

	include /etc/letsencrypt/options-ssl-nginx.conf;

    # Redirect non-https traffic to https
    if ($scheme != &quot;https&quot;) {
        return 301 https://$host$request_uri;
    }
}</code></pre></div><p>This is etc/hosts</p><div class="codebox"><pre><code>127.0.0.1	localhost
127.0.1.1	devuan1.realupnow.com	devuan1

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters</code></pre></div><p><span class="bbc">/var/www/html</span> contains two files <span class="bbc">index.nginx-debian.html</span> and <span class="bbc">info.php</span></p>]]></description>
			<author><![CDATA[dummy@example.com (dcolburn)]]></author>
			<pubDate>Sat, 21 Jan 2023 23:31:17 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40469#p40469</guid>
		</item>
	</channel>
</rss>
