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

    How to pass a private ip 172.X.X.X in WAN.

    Scheduled Pinned Locked Moved General pfSense Questions
    13 Posts 4 Posters 1.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.
    • K
      krishan
      last edited by

      I need to pass or use a Private IP Address 172.X.X.X . So how can i set a rule for this IP address or pass it through Pfsense. I also don't want to disable the Block Bogon Network rule(default).

      1 Reply Last reply Reply Quote 0
      • JKnottJ
        JKnott
        last edited by

        Assuming you've got a real public address on the WAN side, what do you hope to accomplish? That address certainly won't go anywhere. If the WAN side is within one of the RFC 1918 blocks, then you don't want the Bogon filter.

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

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

          I am working on openVpn,. and connecing to cloud server 127.x.x.x

          JKnottJ 1 Reply Last reply Reply Quote 0
          • JKnottJ
            JKnott @krishan
            last edited by

            @krishan said in How to pass a private ip 172.X.X.X in WAN.:

            I am working on openVpn,. and connecing to cloud server 127.x.x.x

            I hope that's a typo and not 127.x.x.x, as that would really get you nowhere. 😉

            That bogon rule shouldn't be on the VPN.

            PfSense running on Qotom mini PC
            i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
            UniFi AC-Lite access point

            I haven't lost my mind. It's around here...somewhere...

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

              hahaha typed wrong 172.x.x.x. all i want to access this private network ip through pf sense but as the Bogon filtering rule i am unable to access it. So can you please help me out to make this IP Address Pass through pf sense. I am new to pfsense.

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                Bogons have nothing to do with private addresses like 172.16/12.

                Also the 'Block private networks' option only applies to incoming traffic. It does not block access to a private network from behind pfSense.

                And as JKnott said it's usually only on the WAN anyway so if you;re using an OpenVPN tunnel that does not apply at all.

                Steve

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

                  complete details : I have two WAN networks interface on LAN.
                  WAN 1 Public IP 14.x.x.x.x
                  WAN 2 DHCP 192.168.0.190
                  LAN 192.168.0.1

                  Rules
                  WAN 1 has bogon filter enabled
                  WAN 2 no rules (empty)
                  LAN Anti lock-out rule

                  OpenVpn server in AWS cloud and client side access that all I have.
                  disabling bogon filter from WAN 1 lets me access the aws server but enabling it cause server IP not found.

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

                    Block private networks and loopback addresses rule is also disabled and enabled with bogon filter*

                    1 Reply Last reply Reply Quote 0
                    • stephenw10S
                      stephenw10 Netgate Administrator
                      last edited by

                      So it stops the OpenVPN tunnel connecting?

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        @krishan said in How to pass a private ip 172.X.X.X in WAN.:

                        WAN 2 DHCP 192.168.0.190
                        LAN 192.168.0.1

                        If those are both /24 they are in the same subnet which is not valid.

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

                          LAN is on 24 and WAN is on 32

                          ljrL 1 Reply Last reply Reply Quote 0
                          • K
                            krishan
                            last edited by

                            can we chat

                            1 Reply Last reply Reply Quote 0
                            • ljrL
                              ljr @krishan
                              last edited by ljr

                              @krishan said in How to pass a private ip 172.X.X.X in WAN.:

                              LAN is on 24 and WAN is on 32

                              /32 is a subset of /24... There are exactly 256 /32s in a /24 block. Why would your WAN IP be in the same range as your LAN subnet? That is an invalid configuration. Is that assigned to you by your ISP's DHCP server (aka carrier grade NAT) or is it just an IP you pulled out of your arse? If it's the former, change your LAN range. If it's the latter, read a few networking books...

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