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

    Cannot access device in LAN2 from LAN, no apparent fw rule in action

    Scheduled Pinned Locked Moved Firewalling
    12 Posts 4 Posters 988 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.
    • P
      Pontiac_CZ
      last edited by

      Hello,

      I need an advice. I am not able to access an AP in LAN2, but I used to be. I still have the bookmark in my browser. Network configuration:

      LAN: 10.0.0.254/24 (source PC has IP 10.0.0.39)
      LAN2: 10.0.1.254/24 (target AP has IP 10.0.1.1)

      Both networks are connected to my pfSense, pfSense box NICs always have .254 in its IP.

      I want to connect to an administration of an access point with IP 10.0.1.1 port 80. Connection cannot be established. The AP cannot even be pinged. Other devices in 10.0.1.x subnet are pingable, for instance my phone with 10.0.1.140. I even tried to run FTP server on my phone and could sucessfully connect to it from the PC so generally the pfSense routing works.

      In firewall on LAN tab I only have three blocking rules, none of them relevant.

      Now the most interesting part: pfSense has tools Ping and Test Port in Diagnostics.

      Ping: I entered 10.0.1.1, with source addresss left to "automatically selected" or LAN2 everything goes well - ping under 1 ms. But when I set source address to LAN I get 100% packet loss. (?!)
      Test Port: just the same case. With "automatically selected" or LAN2 I get "Port test to host: 10.0.1.1 Port: 80 successful." With LAN there's no response again.

      What could be wrong?

      pfSense 2.3.4-RELEASE-p1 (i386)

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

        Correct the default gateway on the AP.

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

          What are you using for AP.. If some soho router just using as AP many of them do not allow for setting a gateway on their lan interface.  So you would need to use some 3rd party firmware on it that allows for that.  Or you would have to source nat your traffic so AP thinks traffic is from its local network 10.0.1

          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
          • P
            Pontiac_CZ
            last edited by

            It's TP-LINK TL-WR702N.

            You are probably right with the missing gateway setting. It's really not there. I tried changing the LAN interface static IP address to DHCP assigned hoping that pfSense would give it the gateway IP as well. But that did not help.

            I am just wondering how come it used to work since I have that bookmark in my browser…  :o

            TP-LINK_LAN.png
            TP-LINK_LAN.png_thumb
            TP-LINK_working_mode.png
            TP-LINK_working_mode.png_thumb

            1 Reply Last reply Reply Quote 0
            • DerelictD
              Derelict LAYER 8 Netgate
              last edited by

              I am just wondering how come it used to work since I have that bookmark in my browser…  :o

              Were you accessing it from the 10.0.1.0/24 network at the time?

              Chattanooga, Tennessee, USA
              A comprehensive network diagram is worth 10,000 words and 15 conference calls.
              DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
              Do Not Chat For Help! NO_WAN_EGRESS(TM)

              1 Reply Last reply Reply Quote 0
              • P
                Pontiac_CZ
                last edited by

                No, always from my PC with IP 10.0.0.39.

                FYI - the screenshots now taken using laptop connected to the AP.

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

                  A workaround for your issue would be a source-NAT rule translating source IPs of packets destined to the AP to the interface address. You can do this by an outbound rule in pfSense.

                  1 Reply Last reply Reply Quote 0
                  • P
                    Pontiac_CZ
                    last edited by

                    I studied the documentation about how outbound NAT works but I have troubles with understanding.

                    The outbound NAT documentation (https://doc.pfsense.org/index.php/Outbound_NAT) says: "Outbound NAT does not control which interface traffic will leave, only how traffic is handled as it exits."

                    So if I get it right, when connecting the AP I need to have the source address of my packets translated to the pfSense LAN2 interface so the AP can reply to an address inside its subnet. That way it does not need a gateway.

                    I set it up as you can see in the attached screenshot but still cannot connect with the AP.

                    2017-10-17_pfSense_outbound_NAT.png
                    2017-10-17_pfSense_outbound_NAT.png_thumb

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

                      Your source nat is not enabled.. Its grayed out.

                      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
                      • P
                        Pontiac_CZ
                        last edited by

                        I noticed that too but the rule does not seem to be disabled…(?)

                        2017-10-17_rule_enabled.png
                        2017-10-17_rule_enabled.png_thumb

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

                          Well your in automatic mode, not hybrid mode!

                          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
                          • P
                            Pontiac_CZ
                            last edited by

                            That was it, thank you.  :) I've set it to hybrid and instantly regained the communication with my AP which does not support gateways! It's been a great lesson about using outbound NAT in pfSense.

                            Thank you all very much for help!

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