• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

How to edit this firewall rule to allow tcp/ip connection?

Scheduled Pinned Locked Moved Firewalling
10 Posts 4 Posters 646 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.
  • I
    ilovechickennuggets
    last edited by Feb 20, 2023, 7:55 PM

    How do I properly edit my current firewall rule to resolve this error below. I'm trying to get pgadmin to run a sql database server and this is the error I got:
    1.JPG

    settings1.JPG

    settings2.JPG

    I am more than happy to provide further information if needed.

    J 1 Reply Last reply Feb 20, 2023, 8:58 PM Reply Quote 0
    • J
      Jarhead @ilovechickennuggets
      last edited by Feb 20, 2023, 8:58 PM

      @ilovechickennuggets Where are you trying to access it from?
      The error says localhost, this would have nothing to do with the firewall and means the service isn't running on the server itself.

      I 1 Reply Last reply Feb 20, 2023, 9:06 PM Reply Quote 1
      • I
        ilovechickennuggets @Jarhead
        last edited by Feb 20, 2023, 9:06 PM

        @jarhead I am accessing the server from my own computer. I did a fresh install of PG Admin to start a new SQL project. The TCP/IP error has me stumped.

        V J 2 Replies Last reply Feb 20, 2023, 9:24 PM Reply Quote 0
        • V
          viragomann @ilovechickennuggets
          last edited by Feb 20, 2023, 9:24 PM

          @ilovechickennuggets
          You're trying to access a PG on your PC itself. If the server is not running there enter its correct IP.

          If PG is running on your PC the access will not pass pfSense.

          1 Reply Last reply Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator @ilovechickennuggets
            last edited by Feb 20, 2023, 9:32 PM

            @ilovechickennuggets localhost would never be anything than the actual local host the service is running. Unless your actually running this on pfsense, pfsense has zero to do with whatever issue you think you having.

            I mean the error your given is pretty clear - why would you think pfsense has anything to do with connecting to the loopback/localhost address of 127.0.0.1 - this is never anything be the local device your running on..

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            I 1 Reply Last reply Feb 20, 2023, 9:39 PM Reply Quote 1
            • I
              ilovechickennuggets @johnpoz
              last edited by Feb 20, 2023, 9:39 PM

              @johnpoz Thank you for your confirmation! Now I know it's not a problem caused by my firewall. I appreciate everyone's effort to help!

              J 1 Reply Last reply Feb 20, 2023, 9:50 PM Reply Quote 0
              • J
                Jarhead @ilovechickennuggets
                last edited by Feb 20, 2023, 9:50 PM

                @ilovechickennuggets That doesn't really sound too confident that you know what the problem is though.
                Yes, it isn't the firewall yet, because you aren't trying to connect to the actual server.
                In the hostname/address field, you have to put in the address of the server.
                If that doesn't work there may be a firewall issue but it wouldn't be on the NOTSAFE rules, it would be on the interface you're trying to access it from.

                I 1 Reply Last reply Feb 20, 2023, 9:56 PM Reply Quote 1
                • I
                  ilovechickennuggets @Jarhead
                  last edited by Feb 20, 2023, 9:56 PM

                  @jarhead You're right that I'm not quite sure how to go about solving the issue. I was just trying to learn SQL and followed the documentation on how to install and set up. The error stopped me from continuing to set up my server for local use. I did try to use my computer's IP address instead of localhost, but that gave the same error. Anyways, I realize this is off topic and scope of pfsense. Thank you for your help!

                  V 1 Reply Last reply Feb 20, 2023, 10:06 PM Reply Quote 0
                  • V
                    viragomann @ilovechickennuggets
                    last edited by Feb 20, 2023, 10:06 PM

                    @ilovechickennuggets
                    If you have installed Postgre on your PC check out if the service is running. Presumably it isn't.

                    Did you even install PostgreSQL, or did you only install pgadmin?
                    The latter is just a client. You would need to install a server also.

                    If it's installed, but not running find out the reason by checking the log.

                    I 1 Reply Last reply Feb 20, 2023, 10:12 PM Reply Quote 1
                    • I
                      ilovechickennuggets @viragomann
                      last edited by Feb 20, 2023, 10:12 PM

                      @viragomann OMG you just saved me so much troubleshooting time! I didn't know PostgreSQL and PG admin needed to both be installed. I only had PG Admin and thought I can just jump right into doing stuff with databases. I can finally get everything up and running. Thank you!

                      1 Reply Last reply Reply Quote 0
                      10 out of 10
                      • First post
                        10/10
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received