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

    unable to access webserver with static ip and port from pfsense only

    Scheduled Pinned Locked Moved DHCP and DNS
    26 Posts 4 Posters 1.0k 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.
    • S
      Samuelking @johnpoz
      last edited by

      @johnpoz @viragomann thanks for replies, now i changed the rules to default but still can't access the webserver with ip i dont know what is going wrong......

      30bc7bec-4757-42b1-94de-a79245cd1d0f-image.png

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @Samuelking
        last edited by

        @Samuelking
        What exactly do you get in the browser, when trying to access the website.

        Did you sniff the traffic on WAN while trying that as @johnpoz suggested?
        It's quite easy. Diagnostic > Packet Capture. Select WAN interface, enter the specific port used into the port filter box and start the capture. Then try to access the website and check if you can see the packets.

        S 1 Reply Last reply Reply Quote 0
        • S
          Samuelking @viragomann
          last edited by

          @viragomann no packets are captured when trying to access this webserver

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @Samuelking
            last edited by Gertjan

            @Samuelking

            That's your answer : no traffic, with destination = your web server, reached your WAN interface.
            You can stop looking if the issue is related to a pfSense settings as the issue is upstream.

            Is your WAN IP a RFC1918 or not ?
            Same question : is your upstream device an ISP router ?

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            S 1 Reply Last reply Reply Quote 0
            • S
              Samuelking @Gertjan
              last edited by Samuelking

              @Gertjan said in unable to access webserver with static ip and port from pfsense only:
              yes upstream device an ISP router but it is in bridged mode
              issue is only with pfsense when i replace it with tplink router i can access easily

              V GertjanG 2 Replies Last reply Reply Quote 0
              • V
                viragomann @Samuelking
                last edited by

                @Samuelking
                As there are no relating packets on WAN, sniff on LAN with filtering to the destination port only, to get sure, that the packets even are routed to pfSense.

                Possibly your testing device uses not pfSense as upstream gateway.

                1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan @Samuelking
                  last edited by Gertjan

                  @Samuelking

                  Normally, packet capturing isn't even needed.

                  Here are my WAN firewall rules, some of them are part of a NAT rule :

                  80a1e4f1-717d-4277-896a-af7afb0d2081-image.png

                  For example (the line marked green), is not a web server (port 80 or 443) but a SSH server on port 22, my diskstation ( = alias diskstation2), living on my LAN, IP 192.168.1.32.

                  You see the counters marked green ? That means traffic was handled by that rule, which means matching traffic, send to my diskstation2 device, entered the WAN interface.

                  Is your WAN IP a RFC1918 or not ?

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

                  johnpozJ 1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator @Gertjan
                    last edited by johnpoz

                    @Gertjan I thought he was going outbound to something on the internet.. Not inbound from the internet to pfsense.

                    @Samuelking your on a client behind pfsense.. And your trying to go to what public IP, please pm me this IP your trying to go to... Or are you trying to let people out on the internet get to some server your running behind pfsense on this port?

                    If your trying to go outbound to the internet - sniff on the lan side interface do you see your client send the traffic? So you see the traffic get to pfsense lan interface?

                    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.8, 24.11

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      Samuelking @johnpoz
                      last edited by

                      @Gertjan you were right i am trying to access a webserver on th internet has ip address with port from my network i was using tplink router it was (and is working fine can access webserver when remove pfsense) now i want to change my router to pfsense so that i have more advance features, every is working great can access any every thing but only this webserver causing issues pfsense.

                      GertjanG johnpozJ 2 Replies Last reply Reply Quote 0
                      • GertjanG
                        Gertjan @Samuelking
                        last edited by Gertjan

                        @Samuelking

                        Make sure that the WAN IP pfSesne is using is the same one as the TPlonk was using ....
                        ( if possible )

                        No "help me" PM's please. Use the forum, the community will thank you.
                        Edit : and where are the logs ??

                        1 Reply Last reply Reply Quote 0
                        • johnpozJ
                          johnpoz LAYER 8 Global Moderator @Samuelking
                          last edited by

                          @Samuelking said in unable to access webserver with static ip and port from pfsense only:

                          i am trying to access a webserver on th internet has ip address with port from my network

                          So you are trying to do a reflection. This IP is your wan IP of pfsense, and your hitting it from some client behind pfsense - and you want to be forwarded to some rfc1918 address on your network..

                          This is handled with split dns - there really is little reason to hit your public IP if the ip is the box next you on the same network.. Or you have to setup nat reflection.

                          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.8, 24.11

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.