I was having trouble pinging my Ubuntu host through a router so I removed the router and connecting directly via ethernet. Internet is working.
I have disabled the Ubuntu firewall. Still cant ping my public IP address from a different network.
Here are some output settings:
sudo lshw -C network
:
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:05:00.0
logical name: enp5s0
version: 0c
serial: 0a:e0:af:b5:00:2a
size: 1Gbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8168 driverversion=8.051.02-NAPI duplex=full ip=10.10.192.50 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:18 ioport:d000(size=256) memory:fbd00000-fbd00fff memory:f0300000-f0303fff
sudo dhclient -v enp5s0
:
Internet Systems Consortium DHCP Client 4.4.3
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/enp5s0/0a:e0:af:b5:00:2a
Sending on LPF/enp5s0/0a:e0:af:b5:00:2a
Sending on Socket/fallback
xid: warning: no netdev with useable HWADDR found for seed's uniqueness enforcement
xid: rand init seed (0x638ba1e0) built using gethostid
DHCPDISCOVER on enp5s0 to 255.255.255.255 port 67 interval 3 (xid=0xc37d5174)
DHCPDISCOVER on enp5s0 to 255.255.255.255 port 67 interval 8 (xid=0xc37d5174)
DHCPOFFER of 10.10.192.50 from 10.5.5.30
DHCPREQUEST for 10.10.192.50 on enp5s0 to 255.255.255.255 port 67 (xid=0x74517dc3)
DHCPACK of 10.10.192.50 from 10.5.5.30 (xid=0xc37d5174)
RTNETLINK answers: File exists
bound to 10.10.192.50 -- renewal in 119 seconds
sudo ethtool enp5s0
:
Settings for enp5s0:
...
Speed: 1000Mb/s
Duplex: Full
Auto-negotiation: on
...
Link detected: yes
ip addr
:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 0a:e0:af:b5:00:2a brd ff:ff:ff:ff:ff:ff
inet 10.10.192.50/17 brd 10.10.255.255 scope global dynamic enp5s0
valid_lft 78sec preferred_lft 78sec
inet6 fe80::8bbf:d3a2:ccc0:70d8/64 scope link noprefixroute
valid_lft forever preferred_lft forever
I also have an nginx server running on port 80 which I can reach on the host via localhost
but cant reach from the outside using the public IP.
I figured I need to resolve the ping failure before I can get to troubleshooting that.
Does anybody know whats going on here?