Cannot connect to outside internet

Status
Not open for further replies.

moo083

Dabbler
Joined
Nov 9, 2015
Messages
28
I tinkered a bit with the network settings (I created a Network Interface with the GUI) and then deleted it from the direct interface when I could no longer access the GUI. I can get to the GUI now, but now the server cannot access the internet. For example:
[mneumark@moonas ~]$ curl -v google.com
* Rebuilt URL to: google.com/
* Hostname was NOT found in DNS cache
* Trying 74.125.224.135...
* Immediate connect fail for 74.125.224.135: Network is unreachable
* Trying 74.125.224.131...
* Immediate connect fail for 74.125.224.131: Network is unreachable
* Trying 74.125.224.134...
* Immediate connect fail for 74.125.224.134: Network is unreachable
* Trying 74.125.224.130...
* Immediate connect fail for 74.125.224.130: Network is unreachable
* Trying 74.125.224.142...
* Immediate connect fail for 74.125.224.142: Network is unreachable
* Trying 74.125.224.133...
* Immediate connect fail for 74.125.224.133: Network is unreachable
* Trying 74.125.224.132...
* Immediate connect fail for 74.125.224.132: Network is unreachable
* Trying 74.125.224.137...
* Immediate connect fail for 74.125.224.137: Network is unreachable
* Trying 74.125.224.136...
* Immediate connect fail for 74.125.224.136: Network is unreachable
* Trying 74.125.224.129...
* Immediate connect fail for 74.125.224.129: Network is unreachable
* Trying 74.125.224.128...
* Immediate connect fail for 74.125.224.128: Network is unreachable
* Trying 2607:f8b0:4007:804::1006...
* Immediate connect fail for 2607:f8b0:4007:804::1006: No route to host
* Closing connection 0
curl: (7) Couldn't connect to server

So now a number of my services do not work anymore (those that need an outside connection) and I cannot do updates et cetera.

More info:
[mneumark@moonas ~]$ netstat -rn
Routing tables

Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.1.1 UGS 0 39 em0
127.0.0.1 link#6 UH 0 7937 lo0
192.168.1.0/24 link#1 U 0 11324 em0
192.168.1.2 link#1 UHS 0 0 lo0

Internet6:
Destination Gateway Flags Netif Expire
::/96 ::1 UGRS lo0
::1 link#6 UH lo0
::ffff:0.0.0.0/96 ::1 UGRS lo0
fe80::/10 ::1 UGRS lo0
fe80::%lo0/64 link#6 U lo0
fe80::1%lo0 link#6 UHS lo0
ff01::%lo0/32 ::1 U lo0
ff02::/16 ::1 UGRS lo0
ff02::%lo0/32 ::1 U lo0

Any ideas?
 

moo083

Dabbler
Joined
Nov 9, 2015
Messages
28
Also, just realized, I can access the internet from a jail:
[mneumark@plexmediaserver_1 ~]$ curl google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>

So thats definitely interesting.
 

moo083

Dabbler
Joined
Nov 9, 2015
Messages
28
Much like many problems, I figured this one out eventually. I was missing the default route to the gateway. Added that and like magic, everything is working again.
 
Status
Not open for further replies.
Top