CentOS won't reach internet

Issues related to configuring your network
Post Reply
mpmendes
Posts: 1
Joined: 2018/11/26 19:56:43

CentOS won't reach internet

Post by mpmendes » 2018/11/29 14:03:22

Greetings,

I've got a network issue with my CentOS and I couldn't find any solution up until now. I have a LAN with windows clients and the CentOS as a file server using Samba. All windows clients can access the internet but my CentOS server cannot. They're all configured with the same gateway (PFSense), i've checked the routes, ip tables, dns and everything seems to be configured properly but I can't reach google for example.

PFSense reachable

Code: Select all

[root@SRV-FS-300315 ~]# ping 10.1.130.250
PING 10.1.130.250 (10.1.130.250) 56(84) bytes of data.
64 bytes from 10.1.130.250: icmp_seq=1 ttl=64 time=0.241 ms
64 bytes from 10.1.130.250: icmp_seq=2 ttl=64 time=0.214 ms
--- 10.1.130.250 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.214/0.227/0.241/0.020 ms
Google Ping

Code: Select all

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
--- 8.8.8.8 ping statistics ---
13 packets transmitted, 0 received, 100% packet loss, time 11999ms
resolv.conf

Code: Select all

# Generated by NetworkManager
nameserver 8.8.8.8
nameserver 8.8.4.4
netstat -rn

Code: Select all

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         10.1.130.250    0.0.0.0         UG        0 0          0 eth0
10.1.130.0      0.0.0.0         255.255.255.0   U         0 0          0 eth0
ETH0

Code: Select all

[root@SRV-FS-300315 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
TYPE="Ethernet"
BOOTPROTO=none
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="no"
IPV6_AUTOCONF="no"
IPV6_DEFROUTE="no"
IPV6_FAILURE_FATAL="no"
NAME="eth0"
UUID="01517cac-1a85-4f03-8bcc-b1873a593cdb"
DEVICE="eth0"
ONBOOT="yes"
DNS1="8.8.8.8"
DNS2="8.8.4.4"
IPV6_PEERDNS=no
IPV6_PEERROUTES=no
IPV6_PRIVACY=no
IPADDR=10.1.130.5
PREFIX=24
GATEWAY=10.1.130.250
trace

Code: Select all

[root@SRV-FS-300315 ~]# tracepath 8.8.8.8
 1?: [LOCALHOST]                                         pmtu 1500
 1:  gateway                                               0.213ms
 1:  gateway                                               0.412ms
 2:  gateway                                               0.402ms pmtu 1480
 2:  no reply
 3:  no reply
 4:  no reply
 5:  no reply
 6:  no reply
 7:  no reply
 8:  no reply
 9:  no reply
10:  no reply
Any help is appreciated.

Thanks in advance.

jeffsmith82
Posts: 21
Joined: 2018/11/29 14:29:36

Re: CentOS won't reach internet

Post by jeffsmith82 » 2018/11/29 14:50:24

You probably need to add a rule to your LAN in pfsense that allow icmp traffic out.

Try adding a rule for any protocol to anywhere temporarily and see if that helps.

Post Reply