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

    [SOLVED] Access from LAN to DMZ(OPT1)

    Scheduled Pinned Locked Moved Firewalling
    23 Posts 3 Posters 3.6k 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.
    • T
      theboda
      last edited by

      @NogBadTheBad:

      The TEST net is actually just an interface I set up so I could post firewall rules without using the inverse match, it confuses people and some people say don't use the inverse match as it's prone to issues.

      Is that your DMZ rule you've posted ?

      Yes it is.
      Okay I'll try to copy your setup.

      1 Reply Last reply Reply Quote 0
      • T
        theboda
        last edited by

        These are my DMZ settings now.
        Should work.. But I still can't ping my webserver in the DMZ

        dmz.png
        dmz.png_thumb

        1 Reply Last reply Reply Quote 0
        • NogBadTheBadN
          NogBadTheBad
          last edited by

          Post your lan rules.

          What's your LAN doing as a source on the DMZ interface !

          pfSense is stateful.

          https://doc.pfsense.org/index.php/Firewall_Rule_Basics

          https://en.wikipedia.org/wiki/Stateful_firewall

          Andy

          1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

          1 Reply Last reply Reply Quote 0
          • T
            theboda
            last edited by

            The LAN rules are just the standard ones.

            lan.png
            lan.png_thumb

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

              You would need zero rules on the dmz interface for something from lan with the default any any to get there.

              If your not able to ping the dmz device even.  Points to firewall on the dmz device if you ask me.  Do a simple sniff on the dmz interface on pfsense.. ping from your lan to your dmz IP.  Do you see the icmp go to the dmz IP you pinged..  If so pfsense did its job and the box not answering has nothing to do with pfsense.

              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
              • T
                theboda
                last edited by

                Ok I deleted all rules for the DMZ interface.
                Left the LAN interface with the default rules.
                Tried to ping the device in the DMZ, did a packet capture on the DMZ interface –> got no output at all.

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

                  Is your device on lan using pfsense as gateway?  Can you ping the dmz interface IP of pfsense?

                  Did you maybe set a /32 mask on the pfsense dmz IP vs say /24?

                  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
                  • T
                    theboda
                    last edited by

                    Yes my lan device has the gateway 192.168.1.1 which is the LAN gateway of the pfsense.
                    Tried to ping 192.168.3.1, but can't ping the dmz interface either.

                    ping 192.168.3.1
                    PING 192.168.3.1 (192.168.3.1) 56(84) bytes of data.
                    From 192.168.1.105 icmp_seq=1 Destination Host Unreachable
                    
                    1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator
                      last edited by

                      well if you can not ping the dmz IP of pfsense from lan - then your never going to get to a device on the dmz.  Ae you using a vpn client on pfsense and sending all traffic out the vpn?

                      Did you set a /32 on the dmz IP?

                      Are you using a vpn client on the lan device?

                      Post up the interface settings of your lan and dmz in pfsense.  This really is clickity clickity worky sort of stuff.

                      Did you put some rule in your floating tab that would be blocking it?

                      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
                      • T
                        theboda
                        last edited by

                        No vpns at all on the systems.
                        The dmz IP is set on a /32

                        ![Lan interface.png](/public/imported_attachments/1/Lan interface.png)
                        ![Lan interface.png_thumb](/public/imported_attachments/1/Lan interface.png_thumb)
                        ![dmz interface.png](/public/imported_attachments/1/dmz interface.png)
                        ![dmz interface.png_thumb](/public/imported_attachments/1/dmz interface.png_thumb)

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

                          Why would you be getting back that from .105?  pfsense lan IP was .1 you stated.

                          LAN IGB1 192.168.1.1

                          Do you have some host routes setup on this lan box?

                          you sure your lan mask is /24 and not maybe say /22 or larger?  Is this lan device windows box?  If so post output of ipconfig /all and route print.

                          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
                          • johnpozJ
                            johnpoz LAYER 8 Global Moderator
                            last edited by

                            your /32 is BROKEN…  Set that to /24 how it normally would be..

                            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
                            • T
                              theboda
                              last edited by

                              Set it to /24, still not working.
                              The laptop is a linux machine.
                              I don't have host routes set up, not that I know of.

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

                                well do a netstat -nr on it..

                                So you can see your routes… This will also validate what mask you have... When you ping you an IP on a different network you sure shouldn't be getting back from a different host

                                From 192.168.1.105 icmp_seq=1 Destination Host Unreachable

                                On your own network that is not your gateway that it can not get there.

                                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
                                • T
                                  theboda
                                  last edited by

                                  here is my netstat output

                                  netstat.png
                                  netstat.png_thumb

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

                                    your mask is /16 so 192.168.3 is on the same network…  So no never going to sent traffic to pfsense to get there.

                                    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
                                    • T
                                      theboda
                                      last edited by

                                      Thank you!!  ::)

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

                                        np - knew it had to be something silly.. If you would of been dhcp on the client never could of happened.

                                        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
                                        • NogBadTheBadN
                                          NogBadTheBad
                                          last edited by

                                          Glad your sorted :)

                                          BTW you have IPv6 track interface on your lan interface and no IPv6 firewall rules, if you dont use IPv6 disable it.

                                          Andy

                                          1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

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