Score:1

can't ping or nslookup outside the LAN

in flag

Ubuntu 18.04 cannot ping or nslookup outside the LAN.

When I do nslookup www.google.comit hangs for a while and returns ;; connection timed out; no servers could be reachedI cannot ping www.google.com but I can ping 10.100.10.1, my gateway. The server is using netplan. When I do a netplan apply, I don't get errors. Here is my netplan config file.

network:
  version: 2
  ethernets:
          ens160:
            dhcp4: no
            dhcp6: no
            addresses: [10.100.10.26/24]
            gateway4: 10.100.10.1
            nameservers:
               addresses: [8.8.8.8, 8.8.4.4]

Here is my resolv.conf:

nameserver 8.8.8.8
nameserver 8.8.4.4

I can't install apps because it cannot resolve DNS.

This is an image from a ESXI implementation. Other images in the network respond to all network requests except this linux client.

Nikita Kipriyanov avatar
za flag
Show not a configuration file but `ip addr` and `ip route` from the running system. Last should display a line similar to `default via 10.100.10.1 dev ens160`; try `ping 10.100.10.1` (or whatever your actual default route is) and see if *that* works.
bjoster avatar
cn flag
And check if there is a firewall blocking your outbound requests.
Score:0
in flag

It was related to the firewall, there are two types of NAT that can be figured on the firewall: 1 to 1 with Nat, or 1 to many with NAT.

What worked was 1 to many with NAT.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.