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

    SOLVED : accessing internal network from wan side

    NAT
    3
    28
    9.4k
    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.
    • H
      hchady
      last edited by

      hello,

      i have a pfsense box connected to a campus network (by WAN 134.214.116.X/22) to serve wireless client with captive portal login.
      all pc are configured by static dhcp (192.168.10.0/24), and register static dhcp in dns forwarded is checked.

      now, wireless client behind pfsense can see and communicate (windows networking) each others and all other pcs on the campus network.
      but the problem is that wireless users are not reachable from any of the campus network

      any idea to resolve this  ?

      thanks

      chady

      1 Reply Last reply Reply Quote 0
      • H
        hoba
        last edited by

        Is this a NAT or Routing setup? If it's a natting setup you would need a lot of IPs to 1:1 nat them and allow access to them. However it's getting quite confusing as their campus IP would be different from their private IP. If you do routing you only have to add firewallrules. However all clients at the campus network then would need a route back to your subnet.

        1 Reply Last reply Reply Quote 0
        • H
          hchady
          last edited by

          pfsense is acting as a gateway… so it is a NAT setup
          i have tried to 1:1 NAT for some IP (i have add also virtual IP), in this way internal ip is seen as a public ip and i can ping from lan to outside. but pings are not possible from a pc on the campus to the pulic ip used for 1:1 NAT

          1 Reply Last reply Reply Quote 0
          • H
            hoba
            last edited by

            Probably a firewallrule issue- Check your rules and status>systemlogs, firewall tab for blocked traffic.

            1 Reply Last reply Reply Quote 0
            • H
              hchady
              last edited by

              may be, i cannot also ping the server wan adress from outside

              1 Reply Last reply Reply Quote 0
              • H
                hoba
                last edited by

                By default the pfSense doesn't answer to anything at WAN. You have to add rules for everything that should be allowed. Not answering to pings is default behaviour.

                1 Reply Last reply Reply Quote 0
                • H
                  hchady
                  last edited by

                  hi,
                  i have add a rule on wan interface : any to any but pfsense still not pingeable

                  1 Reply Last reply Reply Quote 0
                  • P
                    Perry
                    last edited by

                    My way (default pfSense install ) echo from wan

                    ping.JPG
                    ping.JPG_thumb

                    /Perry
                    doc.pfsense.org

                    1 Reply Last reply Reply Quote 0
                    • H
                      hchady
                      last edited by

                      still not working here

                      1 Reply Last reply Reply Quote 0
                      • H
                        hoba
                        last edited by

                        Do you see the blocked traffic at status>systemlogs, firewall? If yes your rules are not correct. If no something in front of you allready is filtering the traffic.

                        1 Reply Last reply Reply Quote 0
                        • H
                          hchady
                          last edited by

                          i see a lot of blocked rules /IP

                          the actual rule i have now on WAN interface is
                          Intergace : WAN
                          Source : Any
                          Destination : LAN subnet

                          What should i change ?


                          pfsense WAN IP : 134.214.116.244
                          VIP : 134.214.116.30
                          NAT 1:1 : 134.214.116.30 to internal IP : 192.168.10.200

                          1 Reply Last reply Reply Quote 0
                          • H
                            hchady
                            last edited by

                            now and after a reboot, only the WAN IP adress is pingeable from outside but not Virtual IPs.

                            system log show that ping requests are blocked at wan side

                            rules
                            Interface : WAN
                            Source : Any
                            Destination : 134.214.116.30

                            and

                            Interface : WAN
                            Source : Any
                            Destination : WAN adress

                            protocol : Any in both cases

                            1 Reply Last reply Reply Quote 0
                            • H
                              hoba
                              last edited by

                              What version are you running? Sounds like 1.0 which had a rule apply bug under some circumstances. I recommend upgrading.

                              1 Reply Last reply Reply Quote 0
                              • H
                                hchady
                                last edited by

                                I am running the 27-02- Snapshot.
                                I am sure that it is a firewall problem because I see in syslogs that ping to my VIP are blocked…

                                1 Reply Last reply Reply Quote 0
                                • H
                                  hoba
                                  last edited by

                                  Btw, we do not redirect protocol ICMP, so this won't be natted. In case you want to make the VIP pingable you have to use type CARP (currently the only virtual IP that allows for ICMP) and add an firewall rule at WAN for protocol ICMP, source any, destination virtual WAN IP.

                                  1 Reply Last reply Reply Quote 0
                                  • H
                                    hchady
                                    last edited by

                                    that is exactely what i have done but with Proxy ARP.

                                    if i move to crap, I get this error message :
                                    Sorry, we could not locate an interface with a matching subnet for 134.214.116.30/32. Please add an ip in this subnet on a real interface

                                    1 Reply Last reply Reply Quote 0
                                    • H
                                      hoba
                                      last edited by

                                      CARP IPs have to use the real interfaces subnet, not /32.

                                      1 Reply Last reply Reply Quote 0
                                      • H
                                        hchady
                                        last edited by

                                        the same message :
                                        Sorry, we could not locate an interface with a matching subnet for 134.214.116.30/22. Please add an ip in this subnet on a real interface

                                        note that on wan i use 134.214.116.x/22 subnet and on lan side : 192.168.10.x/24

                                        1 Reply Last reply Reply Quote 0
                                        • H
                                          hoba
                                          last edited by

                                          Is your WAN VIP part of the original WAN subnet? If not CARP won't be an option here.

                                          1 Reply Last reply Reply Quote 0
                                          • H
                                            hchady
                                            last edited by

                                            yes
                                            my main internet IP adress is 134.214.116.244 /22 … in the same range

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