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

    Can't ping to gateway

    Scheduled Pinned Locked Moved General pfSense Questions
    8 Posts 4 Posters 1.8k 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.
    • R
      rjshrjndrn
      last edited by

      Hi,
      I am using pfsense 2.3 stable 32 bit version. My public up is in 218.x.x.x/28 and gateway is in 172.x.x.x. But the problem is every time I try to assign it via pfsense it says that gateway is in wrong subnet. But web ui accepted it without any problem. But I didn't had Internet access. So I logged in to the shell and tried to ping the gateway. But it shows that no route to host. What should I do? Or is there anything I missed in the setting?

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

        218.x.x.x/28 and gateway is in 172.x.x.x.

        Yeah that most likely not right… A gateway should be in the same network as your IP..

        Where did you get this info?

        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
        • C
          cmb
          last edited by

          You sure that's right? Your gateway is almost certainly within your /28.

          1 Reply Last reply Reply Quote 0
          • R
            rjshrjndrn
            last edited by

            But i can use this config with my ubuntu machine and  everything is perfect.

            Sorry but is it is necessary to be the gateway in same subnet? It's just a gateway right?

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

              Youtube Video

              1 Reply Last reply Reply Quote 0
              • C
                cmb
                last edited by

                @rjshrjndrn:

                Sorry but is it is necessary to be the gateway in same subnet? It's just a gateway right?

                Generally your gateway is always in a directly-connected subnet, yes, that's the nature of networking. Systems generally shouldn't ARP something outside a directly-connected subnet.

                There is the "use non-local gateway" checkbox on the gateways page to use a gateway outside a directly-connected subnet if that's your situation. But that's very rarely necessary, usually if you're trying to use a gateway outside your subnet you're confused on what your gateway IP should really be.

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

                  System/routing/-edit/add gateway (bottom of page)

                  But dont do it. Chances of it working are close to zero

                  1 Reply Last reply Reply Quote 0
                  • R
                    rjshrjndrn
                    last edited by

                    I found that under gateway > settings > advanced options
                    I enabled it and I got net access in ma pfsense machine.
                    But for lan its not loading any web pages.
                    I cant ping to the given gateway (via pfsense console), but can ping Google. and when I traceroute  Google, It shows * after the public ip (in the gateway portion) and then traced Google.

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