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

SOLVED - Can't make firewall/nat to work

Scheduled Pinned Locked Moved General pfSense Questions
8 Posts 4 Posters 1.2k 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 Offline
    Peppe
    last edited by Apr 7, 2017, 11:19 AM Mar 24, 2017, 10:30 AM

    Please feel free to move this post - I'm unsure if it belongs to nat or firewall.

    I have a pfsense with three interfaces;

    WAN (connected to internet)
    DMZ (webserver connected)
    LAN (just for administration for the pfsense box)

    I have set up the WAN interface with ipadress,subnetmask,gateway (x.x.x.254/28 x.x.x.241)
    The DMZ is set up with ipadress and subnet natmask (172.17.100.250/24)
    I have set up an virtual ipadress which is the same as the wan  interface (x.x.x.254/32 WAN other)
    I have set up a nat 1:1 with the wan adress and the dmz adress of the server (WAN x.x.x.254  172.17.100.22)
    And, I have added a firewall rule on the wan interface to the dmz ipadress of the server (* * 172.17.100.22 80 * none)
    (The above x.x.x correspond to a public ipadress I don't want to post on this forum).

    I have searched and I can't get this to work.
    Attached screenshots of the configuration of the above parts.
    What am I doing wrong?
    Thanks in advance!
    Regards

    Dmz.png
    Dmz.png_thumb
    FirewallDmz.png
    FirewallDmz.png_thumb
    FirewallLan.png
    FirewallLan.png_thumb
    FirewallWan.png
    FirewallWan.png_thumb
    Lan.png
    Lan.png_thumb
    Nat.png
    Nat.png_thumb
    Wan.png
    Wan.png_thumb
    VirtualIP.png
    VirtualIP.png_thumb

    1 Reply Last reply Reply Quote 0
    • H Offline
      heper
      last edited by Mar 24, 2017, 11:29 AM

      using the same ip twice? (on wan & vip)

      1 Reply Last reply Reply Quote 0
      • P Offline
        Peppe
        last edited by Mar 24, 2017, 1:54 PM

        Thanks for the quick reply,

        Added a new external adress för WAN x.x.x.248
        The adress x.x.x.254 is the external address för the webserver

        From Pfsense I can ping from both DMZ & WAN to the internet.
        I can ping the server (172.17.100.22) from pfsense DMZ interface to the webserver.
        However, I can NOT ping 172.17.100.250 from the webserver to the DMZ interface.

        Wan.PNG
        Wan.PNG_thumb

        1 Reply Last reply Reply Quote 0
        • C Offline
          chpalmer
          last edited by Mar 24, 2017, 3:56 PM

          Your pictures show no firewall rules on your "DMZ" interface to allow any traffic to be initiated from anything behind that interface. Therefore..

          Triggering snowflakes one by one..
          Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

          1 Reply Last reply Reply Quote 0
          • P Offline
            Peppe
            last edited by Mar 27, 2017, 8:43 AM

            Added firewall settings to the DMZ.
            Added screenshots of the DMZ firewalll rule, network settings from the server, and the ping results.
            Still unable to access the servers website.

            dmzfw.png
            dmzfw.png_thumb
            dmzinterface.PNG
            dmzinterface.PNG_thumb
            ping.PNG
            ping.PNG_thumb

            1 Reply Last reply Reply Quote 0
            • P Offline
              Peppe
              last edited by Apr 4, 2017, 1:34 PM

              Bump

              1 Reply Last reply Reply Quote 0
              • J Online
                johnpoz LAYER 8 Global Moderator
                last edited by Apr 4, 2017, 8:07 PM

                Why would you think you could ping anything from DMZ when all you allowed in your rules was TCP.. "Ping" is ICMP not TCP..

                And your also only allowing it to talk to your wan IP??

                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 25.07.1 | Lab VMs 2.8.1, 25.07.1

                1 Reply Last reply Reply Quote 0
                • P Offline
                  Peppe
                  last edited by Apr 7, 2017, 11:19 AM

                  Thanks everyone that helped with this.
                  My setup was a Proxmox box with Pfsense installed as a virtual server and it turns out that the external interface either was misconfigured or faulty.
                  So I set up another box without Proxmox and installed Pfsense and that worked fine.
                  You guys rock! :)

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