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

    WAN can ping 8.8.8.8 LAN can ping WAN and WANs gateway but cant ping 8.8.8.8

    Scheduled Pinned Locked Moved General pfSense Questions
    23 Posts 5 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.
    • N
      Nicolay1995
      last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        This should work right out of the box. Did you incorrectly specify a gateway for LAN? When you say 'reach Internet', what do you mean exactly? Can you ping 8.8.8.8 from LAN? Post screenshots of your WAN and LAN config with any public details (such as your WAN IP address) obscured.

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

          You should not need to setup NAT, the default auto outbound should work fine.

          It sounds like you may have configured outbound NAT for the WAN subnet as destination only?

          Steve

          1 Reply Last reply Reply Quote 0
          • N
            Nicolay1995
            last edited by

            I can not ping 8.8.8.8 from LAN no. OUTBOUND NAT is set up as Automatic.
            This is config for WAN and LAN.
            0_1551899597623_cc336bc8-12c0-4a79-98b3-a3952995cdf1-image.png (WAN gets DHCP so no IP adress to blure out)

            0_1551899641913_60eee3f2-5ed9-49b9-9f45-060697c5960f-image.png This is LAN set with 172.30.0.1

            1 Reply Last reply Reply Quote 0
            • M
              marvosa
              last edited by

              Agreed. LAN to any functionality works out of the box. You will need to check your ESXi setup and your networking in general.

              You can remove the Client Address to any rule, it's redundant.

              You will also want to verify what gateway and DNS your DHCP server is handing out.

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

                @nicolay1995 said in WAN can ping 8.8.8.8 LAN can ping WAN and WANs gateway but cant ping 8.8.8.8:

                OUTBOUND NAT is set up as Automatic.

                And lets see that it, it should be natting your lan(client) network to your wan interface.

                And wan gets a Public IP? Or it gets some IP that overlaps your 172.30/16 - just at a loss to how anyone thinks they need address space for 65K freaking IPs on their lan?

                If you can ping the wan gateway.. From your client your working - unless your not natting? But it should be natting out of the box... So lets see your outbound nat showing automatic and what it created.

                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
                • N
                  Nicolay1995
                  last edited by

                  It gets a public IP thats in the 128...... so not used by my LAN, and from the Ping tool in Pfsense i can ping from WAN to internett. So if Pfsense can reach internett, and all the VMS on my ESXI Vswitch is getting dhcp from my PFsense, i dont see how it can be a ESXI problem if the PFsense can reatch the internett.(Pfsense is VM in ESXI). But i might be thinking slighly wrong, im new to this....

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

                    lets see your automatic nat... Maybe it not creating the nats it should be creating.

                    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
                    • N
                      Nicolay1995
                      last edited by Nicolay1995

                      Seems to have created the LAN network.
                      0_1551901748942_8fdb3b5b-48da-467b-9aa0-86143c781314-image.png

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

                        What are all those other networks?

                        So none of those work? Why and the F do you have so many freaking /16s - do you have like a billion freaking VMs on this host? ;)

                        Where did your image go?

                        edit:
                        Why would you scratch out rfc1918? Do you have something on your lan side that overlaps your wan?

                        So sniff on wan while your trying to ping 8.8.8.8 from a client behind pfsense.. And validate you are natting to your wan.. And that the traffic leaves 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
                        • N
                          Nicolay1995
                          last edited by

                          Just some other things that are setup. ignore those. But the wierd thing, is. The wan has a gateway it gets from DHCP. I can ping that ip from the LAN, but i dont get further.

                          1 Reply Last reply Reply Quote 0
                          • M
                            marvosa
                            last edited by

                            It gets a public IP thats in the 128...... so not used by my LAN, and from the Ping tool in Pfsense i can ping from WAN to internett. So if Pfsense can reach internett, and all the VMS on my ESXI Vswitch is getting dhcp from my PFsense, i dont see how it can be a ESXI problem if the PFsense can reatch the internett.(Pfsense is VM in ESXI). But i might be thinking slighly wrong, im new to this....

                            At this point, we don't know if it's an ESXi issue, which is why it needs to be double checked.

                            Post the routing table from PFsense.

                            Post the routing table from a client PC

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

                              @nicolay1995 said in WAN can ping 8.8.8.8 LAN can ping WAN and WANs gateway but cant ping 8.8.8.8:

                              I can ping that ip from the LAN, but i dont get further.

                              And what is that exactly?

                              What I suggest you do is sniff on the wan while your pinging that IP from client behind pfsense.. Do you see this ping go out, was the IP changed to your public pfsense wan IP?

                              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
                              • KOMK
                                KOM
                                last edited by

                                I did ask him to ping 8.8.8.8 so he's probably referring to that.

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

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

                                  That is fine - but he says he can ping is wan gateway - what IP is that, what device is it.

                                  Here is the thing out of the box pfsense nats any lan side networks (that do not have gateways set on them) to your wan IP... As you can see in your outbound nat section.

                                  So if you say pfsense can ping your gateway, and your clients behind can ping pfsense gateway... Then its not pfsense problem.

                                  Please do a sniff on pfsense wan while you ping your gateway... For all we know you have some static route sending 8.8.8.8 out some other gateway... Lets see your route table, etc.

                                  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
                                  • KOMK
                                    KOM
                                    last edited by

                                    We don't even know if he has properly defined his vswitches, and then properly configured his pfSense VM to have WAN and LAN NICs on the appropriate switch.

                                    1 Reply Last reply Reply Quote 0
                                    • N
                                      Nicolay1995
                                      last edited by

                                      I change some ESxi V switch settings and now i am able to ping from LAN gateway to the internett.
                                      0_1551906008735_d10f81b7-5df2-4772-9d79-68a371f69a53-image.png

                                      But for some reason i still dont have network access. from my VM.... which has 172.30.0.1 as its gateway.

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        marvosa
                                        last edited by marvosa

                                        So, if all we get are high-level details, then all we can offer is high-level troubleshooting. Without more details, all we can tell you is check your networking... i.e. start at layer 1 and work your way up the stack. The fact that PFsense is virtualized just adds a layer of complexity that also needs to be investigated, so you will need to look at your vSwitch/vKernel configs as well as verifying that your VM's are configured for the correct port group, etc.

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

                                          Yeah when you run pfsense on vm it adds a whole new layer of complexity..

                                          It works just fine.. did did for years on multiple platforms.. But the problem we/I have here on the forums is lack of information.. It might take 14 posts to even find out pfsense is on vm vs hardware for example.

                                          We are all here to help you.. But its frustration as F!!! not having the full picture.. Here is the thing I have been installing and using pfsense for 10 some years.. It just WORKS!!! you actually have to try to break it..

                                          Every single thread comes down to this - lack of info given to what makes their setup different.. Because out of the box it just going to work.. So you have somthing you did or something unique in your environment that is causing you grief.. Pfsense on vm works on pretty much all platforms that I have played with out of the box - but there are some things you might have to do.. This is why you should RTFM!!! Lets stress that again RTFM!!!! for your specific deployment on a different vm platform..

                                          Out of the box there is like click the bouncing ball in 2 minutes your up and running.... What I see over the 10 some years I have been here is user after user after user shooting themselves in the foot!!! Installed X package, installed Y package out of the gate before they even validate it works.. Sorry but proxy, IPS, even the most popular pfblocker packages are all next level skill sets.. And yes you can shoot yourself in the foot..

                                          Please validate it works out of the box before you install XYZ, please up front let us know your on VM platform ABC... I have run pfsense on multiple VM platforms over the years and all work fine - but what I find is users are freaking STUPID!!! No offense here - but its what I have seen over the years.. No you can not have the same network on both your wan and lan..

                                          Here to help - but without info can not do that.. Don't take this as directed at you, but the user base at large ;)

                                          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 1
                                          • N
                                            Nicolay1995
                                            last edited by

                                            I figuret it out in the end, it was a Virtuel Switch issue in ESXI. Thank for help all.

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