ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Nginx questions

    Scheduled Pinned Locked Moved IT Discussion
    nginx
    25 Posts 5 Posters 1.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DonahueD
      Donahue
      last edited by

      I can tell port 80 is forwarding, If I put in my external ip, I hit the Nginx test page. Can I test https without a cert, or do I have to just wait?

      scottalanmillerS 1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        Added a tag.

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          To test if ports are open....

          1. Query the OS and ask it if you are listening...

            netstat -tulpn

          2. Query your firewall and ask it if the ports are open.

          3. Use telnet from another system to see if the port responds.

          1 Reply Last reply Reply Quote 1
          • scottalanmillerS
            scottalanmiller @Donahue
            last edited by

            @Donahue said in Nginx questions:

            I can tell port 80 is forwarding, If I put in my external ip, I hit the Nginx test page. Can I test https without a cert, or do I have to just wait?

            Same way.

            1 Reply Last reply Reply Quote 0
            • ObsolesceO
              Obsolesce
              last edited by

              Can you put an entry in your hosts file awhile to test instead of waiting on your DNS provider?

              scottalanmillerS 1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @Obsolesce
                last edited by

                @Obsolesce said in Nginx questions:

                Can you put an entry in your hosts file awhile to test instead of waiting on your DNS provider?

                But to test the port you don't need that, only need the IP address.

                ObsolesceO 1 Reply Last reply Reply Quote 0
                • ObsolesceO
                  Obsolesce @scottalanmiller
                  last edited by

                  @scottalanmiller said in Nginx questions:

                  @Obsolesce said in Nginx questions:

                  Can you put an entry in your hosts file awhile to test instead of waiting on your DNS provider?

                  But to test the port you don't need that, only need the IP address.

                  Right, I wasn't addressing the port part of the OP, the second part. Quote fail on my part.

                  1 Reply Last reply Reply Quote 1
                  • DonahueD
                    Donahue
                    last edited by

                    telnet cannot connect via 443, but the firewall says it is enabled. I am trying the internal IP first.

                    DashrenderD 1 Reply Last reply Reply Quote 0
                    • DonahueD
                      Donahue
                      last edited by

                      also, Who is a good DNS provider? I am getting tired of waiting for them to respond.

                      DashrenderD 1 Reply Last reply Reply Quote 0
                      • DashrenderD
                        Dashrender @Donahue
                        last edited by

                        @Donahue said in Nginx questions:

                        also, Who is a good DNS provider? I am getting tired of waiting for them to respond.

                        Cloudflare and it’s free

                        1 Reply Last reply Reply Quote 2
                        • DashrenderD
                          Dashrender @Donahue
                          last edited by

                          @Donahue said in Nginx questions:

                          telnet cannot connect via 443, but the firewall says it is enabled. I am trying the internal IP first.

                          If you are trying internally what firewall is blocking you?

                          Also why are you trying 443? SMTP is port 25.

                          DashrenderD DonahueD 2 Replies Last reply Reply Quote 0
                          • DashrenderD
                            Dashrender @Dashrender
                            last edited by

                            @Dashrender said in Nginx questions:

                            @Donahue said in Nginx questions:

                            telnet cannot connect via 443, but the firewall says it is enabled. I am trying the internal IP first.

                            If you are trying internally what firewall is blocking you?

                            Also why are you trying 443? SMTP is port 25.

                            Aww I see you’re testing https, not smtp

                            1 Reply Last reply Reply Quote 0
                            • DonahueD
                              Donahue @Dashrender
                              last edited by

                              @Dashrender said in Nginx questions:

                              @Donahue said in Nginx questions:

                              telnet cannot connect via 443, but the firewall says it is enabled. I am trying the internal IP first.

                              If you are trying internally what firewall is blocking you?

                              Also why are you trying 443? SMTP is port 25.

                              I turned off windows firewall and still cannot get through. I am trying to telnet 443 into my Nginx VM. The Nginx firewall says 443 is open.

                              1 Reply Last reply Reply Quote 0
                              • 1
                                1337
                                last edited by

                                1. Use nmap to scan ports to see what is open/closed/blocked.
                                1 Reply Last reply Reply Quote 1
                                • DonahueD
                                  Donahue
                                  last edited by

                                  Its working. My DNS updated and externally, its going to https. I am not sure why telnet was not working.

                                  1 Reply Last reply Reply Quote 0
                                  • DonahueD
                                    Donahue
                                    last edited by

                                    I've still got a few loose ends though. I want to set my cert to auto renew, but I dont know quite what to do on this step:

                                    @JaredBusch said in Install Nginx as a Reverse Proxy on Fedora 27:

                                    Don't forget to automate the cert renew
                                    Create a cron job to run the renew everyday. Certbot will not actually do anything if it does not see any certs needing renew within 30 days. So you can run this as often as you want. Cerbot themselves recommends running it twice a day with this.
                                    Use crontab -e to edit your crontab.

                                    0 0,12 * * * python -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew 
                                    

                                    If I try and run crontab -e, it says:

                                    [root@nginx ~]# crontab -e
                                    -bash: crontab: command not found
                                    
                                    DonahueD 1 Reply Last reply Reply Quote 0
                                    • DonahueD
                                      Donahue
                                      last edited by

                                      I am also getting the following error on NC on my iPhone
                                      ACC0055E-780D-4163-8ECF-67AB912D67A5.png

                                      scottalanmillerS 1 Reply Last reply Reply Quote 0
                                      • scottalanmillerS
                                        scottalanmiller @Donahue
                                        last edited by

                                        @Donahue any chance you forget the https ?

                                        DonahueD 1 Reply Last reply Reply Quote 0
                                        • DonahueD
                                          Donahue @scottalanmiller
                                          last edited by

                                          @scottalanmiller said in Nginx questions:

                                          @Donahue any chance you forget the https ?

                                          nope

                                          1 Reply Last reply Reply Quote 0
                                          • DonahueD
                                            Donahue
                                            last edited by

                                            could this be a DNS propagation issue? like wait and see?

                                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post