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

    No internet access from DMZ(OPT1)

    Scheduled Pinned Locked Moved Firewalling
    39 Posts 8 Posters 31.5k 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.
    • K
      kejianshi
      last edited by

      Two things.

      First, can you go back into your opt1 rule and change protocol to "any", source to opt1 net, then save and apply.

      Then go to Status > filter reload.

      Then test again.

      Second, can you post a pic of your firewall > NAT > Outbound rules

      1 Reply Last reply Reply Quote 0
      • A
        atakacs
        last edited by

        Thanks for your suggestions.

        1. Tried to change the FW rule per your instructions - doesn't help.

        2. Here is outbound rule (using automatic outbound NAT rule generation).

        Guess it's time to delve in the logs…

        1 Reply Last reply Reply Quote 0
        • K
          kejianshi
          last edited by

          I also noticed that no one so far has asked about your IP assignments for LAN, which must be correct or you wouldn't be able to see the internet, and OPT1 which obviously has some issue.

          Under Interfaces:
          What is the LAN IP, subnet and range?  Like 192.168.1.1 and 192.168.1.0/24 for subnet?

          Should have a similar setting for OPT1 interface.  Like 192.168.2.1 and 192.168.2.0/24 for subnet?

          AND - I feel dumb for not asking sooner. 
          Buttttttt….

          Did you go into services > DHCP server and activate DHCP on OPT1 interface?  Thats a show stopper if you haven't.

          1 Reply Last reply Reply Quote 0
          • K
            kejianshi
            last edited by

            I feel sorta bad that this didn't occur to me earlier.  I have this habit when working with pfsense of assigning new interface cards and new IPs and subnets from the text menu on pfsense.

            For instance, I'll drop in a new card.  Then I will go to the command line interface.  I'll select the # in the menu for assign interfaces.  From there, I'll assign the wan interface, lan and opt1.

            Then I will go to the menu # for assign interface IPs.

            I'll leave wan alone.  It picks up IP by DHCP by default.
            I'll set LAN IP like 192.168.1.1, select 24 for subnet, and set IP range for DHCP like 192.168.1.100 - 192.168.1.200

            then I'll assign OPT1 interface IP at the command interface also.
            I'll set LAN IP like 192.168.2.1, select 24 for subnet, and set IP range for DHCP like 192.168.2.100 - 192.168.2.200

            (Its actually better if you pick IPs other than 192.168.x.x because they are so common but for this example, I used them because they are familiar to all)

            The reason I assign my interfaces again from the command interface is because it FORCES me to do all the things I should at once.

            If you did not use the command interface menu but instead use web gui, then you must:

            1.  install the card
            2.  Add the interface and check the MAC to be sure the interface you added has MAC matching the card you expect.
            3.  Activate the interface and set as static and set interface IP (192.168.2.1) and /24
            4.  Go to services > DHCP server - Click the Tab for OPT1 and activate DHCP and set the range like 192.168.2.100 - 192.168.2.200

            Only after doing these steps are you ready to set up your OPT1 firewall rule to pass all.
            That rule should apply to protocol all, interface OPT1, source OPT1 net…  I think that part is already correct on your machine.

            1 Reply Last reply Reply Quote 0
            • A
              atakacs
              last edited by

              Thanks for your patience…

              Yes DHCP is up on OPT and I do get an IP in the expected IP range:

              But can't ping the gateway (which is the OPT IP).

              One additional potential issue is that we are here in a virtual (VMware) environment and the OPT NIC is completely virtual (i.e. "host only", connected to pfS and the Windows VM only, no physical NIC) but this has always worked fine so far for me (although these are my first steps with pfS).

              If (virtually) connect the very same VM on the LAN card it works just fine.

              1 Reply Last reply Reply Quote 0
              • K
                kejianshi
                last edited by

                "Can't ping the gatway which is the OPT IP"?

                Shouldn't the gateway be the WAN IP?

                Are you attempting to use OPT1 like a LAN interface or another WAN interface?

                If you get internet through WAN and you plan to connect hosts via OPT1 then it should be set up nearly identically to your LAN interface.
                That means that under interfaces > OPT1 you should have a static IP assigned and gateway should be set to "none".

                So, maybe I am misunderstanding your reference to OPT and Gateway, but to me, it seems odd.  Could you clarify?

                1 Reply Last reply Reply Quote 0
                • A
                  atakacs
                  last edited by

                  "Can't ping the gatway which is the OPT IP"?
                  Shouldn't the gateway be the WAN IP?

                  My understanding is that within the context of the OPT subnet the gateway should be the OPT interface IP (and that's how it is set up by the DHCP server - 172.16.35.254 in my case, see my previous screenshot). As far as my networking knowledge goes any non local packets will be sent to 172.16.35.254 where they should be relayed further - presumably to the WAN gateway. Obviously if I can't ping 172.16.35.254 something is not working as expected…

                  Are you attempting to use OPT1 like a LAN interface or another WAN interface?

                  As another LAN.

                  If you get internet through WAN and you plan to connect hosts via OPT1 then it should be set up nearly identically to your LAN interface. That means that under interfaces > OPT1 you should have a static IP assigned and gateway should be set to "none".

                  That's what I'm having as far as I can tell:

                  1 Reply Last reply Reply Quote 0
                  • K
                    kejianshi
                    last edited by

                    Just wondering here, because I have never done it the way you have it and I'm not sure if its an issue or not.

                    you have the static IP of that OPT1 interface set as 172.16.35.254.  Is your LAN set up similarly with a .254 in the last digit?

                    I'm not sure if that makes a difference at all with pfsense, but I have always placed the static IP at .1

                    like 172.16.35.1 /24

                    1 Reply Last reply Reply Quote 0
                    • S
                      Supermule Banned
                      last edited by

                      Have you enabled outbound NAT from the OPT1 interface?

                      1 Reply Last reply Reply Quote 0
                      • K
                        kejianshi
                        last edited by

                        Earlier, he has a post of the outbound nat set to auto.
                        I don't use AUTO anymore, but instead use on manual and set up outbound NAT for each LAN interface manually.
                        I was going to go there next if changing static IP to .1 vs .254 had no effect.

                        However, supposedly on "auto", outbound NAT should handle its self.

                        1 Reply Last reply Reply Quote 0
                        • A
                          atakacs
                          last edited by

                          Ok I have changed the OPT IP to .1 to no avail (it was picked up correctly by the DHCP client after a renew).

                          I have also tried to create a manual outbound NAT rule:

                          Still no cigar…

                          That being said - and I would certainly not call myself an expert in this area - I would think that even if outbound NAT was fully turned off the .1 address should still ping ?

                          Oh BTW my ARP tables:

                          172.16.35.100 00:0c:29🆎48:b0 ManagementVM   OPT1
                          172.16.10.210 00:0c:29:6c:f8:91 pfSdc.local LAN
                          172.16.35.1 00:0c:29:6c:f8:9b OPT1
                          172.16.10.62 3c:07:54:27:ff:55 LAN
                          #.#.46.18 00:0c:29:6c:f8:87 WAN
                          #.#.46.17 78:19:f7:f5:ed:c1 WAN

                          Seems correct (last two are my WAN addresses that I have anonymised).

                          172.16.35.100 is the DHCP client on the OPT network - correct
                          172.16.10.210 is the LAN IP for the firewall - correct
                          172.16.35.1 is the OPT IP for the firewall - correct
                          172.16.10.62 is the LAN IP for the client machine I am using to configure - also correct

                          Anyway... what's next ?

                          1 Reply Last reply Reply Quote 0
                          • K
                            kejianshi
                            last edited by

                            Oh my.

                            Well, if it were me, I would have made:

                            interface:  WAN

                            NAT Address * (any)

                            Source is Fine.  172.16.35.0/24

                            You would need one of those to pass the LAN traffic also

                            interface: WAN

                            NAT Address * (any)

                            Source LAN subnet

                            1 Reply Last reply Reply Quote 0
                            • A
                              atakacs
                              last edited by

                              Something like that then:

                              ?

                              Still no go :(

                              What do you make of my remark regarding ping vs. NAT ? Am I wrong to assume that ping should work regardless of NAT setup ?

                              1 Reply Last reply Reply Quote 0
                              • K
                                kejianshi
                                last edited by

                                I would have made NAT address ANY.  You can lock it down later when it starts working.

                                "What do you make of my remark regarding ping vs. NAT ? Am I wrong to assume that ping should work regardless of NAT setup ?"

                                As far as should the address ping, that depends.  Where are you pinging from?  What interface?  LAN?

                                If so, I'd have to see your LAN firewall rules to know if traffic is allowed from the LAN to OPT1.

                                1 Reply Last reply Reply Quote 0
                                • A
                                  atakacs
                                  last edited by

                                  I would have made NAT address ANY.  You can lock it down later when it starts working.

                                  Hmm.. how would you do that in the following screen ?

                                  1 Reply Last reply Reply Quote 0
                                  • K
                                    kejianshi
                                    last edited by

                                    What you have there looks correct on outbound NAT.

                                    1 Reply Last reply Reply Quote 0
                                    • A
                                      atakacs
                                      last edited by

                                      ok. It translates in the NAT WAN address setting you see in my 02:14:22 message.

                                      And I am pinging within the 172.16.35.0 subnet (from the 172.16.35.100  machine). Interestingly I can't seem to ping that machine from the firewall either:

                                      PING 172.16.35.100 (172.16.35.100) from 172.16.35.1: 56 data bytes

                                      –- 172.16.35.100 ping statistics ---
                                      3 packets transmitted, 0 packets received, 100.0% packet loss

                                      Whatever my issue I honestly don't think it's NAT forwarding...

                                      1 Reply Last reply Reply Quote 0
                                      • K
                                        kejianshi
                                        last edited by

                                        I agree that even with no outbound NAT configured you should be able to see the OPT1 interface from either the pfsense command prompt or a computer on the OPT1 LAN.   You say this is a VM?  What model of network card is your virtual interface assigned to OPT1 emulating?

                                        1 Reply Last reply Reply Quote 0
                                        • K
                                          kejianshi
                                          last edited by

                                          With this VM, what version of pfsense are you running?  Is this like a 2.1 snapshot?

                                          Is there any reason you couldn't load a stable release and configure the interfaces immediately from the bootup on the console?

                                          Reason I bring it up is that if you have inadvertantly clicked some tiny nit-noid setting that is breaking everything, that would clear it.

                                          Also, if its a pfsense problem because you are living on the bleeding edge of releases, that might also fix your issue.

                                          Just wondering about the options.

                                          1 Reply Last reply Reply Quote 0
                                          • B
                                            biggsy
                                            last edited by

                                            … bleeding edge of releases ...

                                            Unlikely to be the problem.

                                            atakacs

                                            • Is it ESXi you're using?  If so, does your network diagram pretty much look like the image below?
                                            • Windows firewall off in the VM?
                                            • After making firewall rule changes did you reset states or reboot pfSense

                                            pfs_esxi_5_8.png
                                            pfs_esxi_5_8.png_thumb

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