Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    No need for LAN to WAN enable rule?

    Scheduled Pinned Locked Moved Firewalling
    6 Posts 3 Posters 1.9k 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.
    • J Offline
      Javik
      last edited by

      I am doing a really simple router setup for an organization.

      I do not understand how it is that the internal webserver is able to reply to requests from the WAN, if there is no rule explicitly permitting traffic from the LAN to the WAN.

      The website firewall config generally looks like this:

      WAN section:
      Block RFC 1918
      Block Bogon
      Allow TCP Any port/address to HTTP / 10.0.0.10
      Allow ICMP Any port/address to Any port / 10.0.0.10
      (Default policy is to deny anything not explicitly permitted)

      LAN section:
      Anti lockout enabled
      Default allow any LAN to any is Disabled (everyone forced to use a proxy for web)
      (Default policy is to deny anything not explicitly permitted)

      NAT 1:1
      External 205.x.x.x to Internal IP 10.0.0.10, Destination IP *

      Access to the website from the WAN works fine, no problems. But as I understand it, it actually should not be working.

      I really only have the firewall half-configured, allowing only incoming traffic to the webserver from WAN to LAN. There is no corresponding rule allowing a reply from LAN to WAN.

      I am concerned there is an error somewhere here.

      Or does pfSense statefully and automatically create a response path for the WAN rule?

      Version:
      2.0.2-RELEASE (amd64)
      built on Fri Dec 7 22:39:16 EST 2012
      FreeBSD 8.1-RELEASE-p13

      1 Reply Last reply Reply Quote 0
      • chpalmerC Offline
        chpalmer
        last edited by

        Any solicited packet on an interface can be answered by the device on the destination interface without any kind of rule.

        Turn it around for a minute-  How does your web browser on the LAN receive the pages back even though there are no WAN rules?

        In your case- a client on the WAN solicited the response from the server. The firewall understands this and passes it.

        But try and web browse with that server…

        Triggering snowflakes one by one..
        Primary- Intel(R) Pentium(R) CPU G4400 @ 3.30GHz on an M470 WG box. pfSense+
        Lab Unit- Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box. pfSense CE 2.8.1

        1 Reply Last reply Reply Quote 0
        • J Offline
          Javik
          last edited by

          Okay, well I come from a Novell 6.5 background, and they were really tight if stateful filtering was not explicitly enabled for incoming WAN packets.

          So basically pfSense does stateful WAN to LAN packet filtering without requiring that to be selected anywhere… and actually you can't not choose it, I see..  :)

          1 Reply Last reply Reply Quote 0
          • chpalmerC Offline
            chpalmer
            last edited by

            On your firewall rule page, go down to advanced options and look around.  There is an option there to choose state type. One is none.  Unless someone corrects me this is what you speak?..

            Ill have to give it a try later.

            Triggering snowflakes one by one..
            Primary- Intel(R) Pentium(R) CPU G4400 @ 3.30GHz on an M470 WG box. pfSense+
            Lab Unit- Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box. pfSense CE 2.8.1

            1 Reply Last reply Reply Quote 0
            • J Offline
              Javik
              last edited by

              Ok, yes, that looks like it.

              I guess there's no reason to select "none" and then go through the bother of a LAN to WAN explicit rule, but good to know.

              1 Reply Last reply Reply Quote 0
              • C Offline
                cmb
                last edited by

                This is how every stateful firewall works. You never add rules to allow return traffic on any stateful firewall. You do not want no state in any circumstance like this, and virtually never in any circumstance at all unless you don't want a firewall. If you don't keep state, you need gaping firewall holes to permit reply traffic that will allow far more than is necessary.

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