SOLVED Does FreeNAS 9.3 Have Internet Access?

Status
Not open for further replies.

rogerh

Guru
Joined
Apr 18, 2014
Messages
1,111
[root@Familynas ~]# ping download.freenas.org
ping: cannot resolve download.freenas.org: Host name lookup failure
[root@Familynas ~]#

I don't know how to resolve a host name from FreeNAS so I ran nslookup from my kubuntu computer:\
mark@AMD64-LTS:~$ nslookup download.freenas.org
Server: 127.0.1.1
Address: 127.0.1.1#53

Non-authoritative answer:
Name: download.freenas.org
Address: 64.62.136.38

So I tried to ping that ip address:
[root@Familynas ~]# ping 64.62.136.38
PING 64.62.136.38 (64.62.136.38): 56 data bytes
^C
--- 64.62.136.38 ping statistics ---
21 packets transmitted, 0 packets received, 100.0% packet loss

FreeNAS is able to ping one of the google IP addresses:
[root@Familynas ~]# ping 64.233.176.113
PING 64.233.176.113 (64.233.176.113): 56 data bytes
64 bytes from 64.233.176.113: icmp_seq=0 ttl=44 time=48.669 ms
64 bytes from 64.233.176.113: icmp_seq=1 ttl=44 time=45.578 ms
64 bytes from 64.233.176.113: icmp_seq=2 ttl=44 time=45.923 ms
64 bytes from 64.233.176.113: icmp_seq=3 ttl=44 time=46.309 ms
64 bytes from 64.233.176.113: icmp_seq=4 ttl=44 time=45.854 ms
64 bytes from 64.233.176.113: icmp_seq=5 ttl=44 time=46.252 ms
64 bytes from 64.233.176.113: icmp_seq=6 ttl=44 time=45.780 ms
64 bytes from 64.233.176.113: icmp_seq=7 ttl=44 time=46.207 ms
64 bytes from 64.233.176.113: icmp_seq=8 ttl=44 time=45.685 ms
64 bytes from 64.233.176.113: icmp_seq=9 ttl=44 time=46.187 ms
^C
--- 64.233.176.113 ping statistics ---
10 packets transmitted, 10 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 45.578/46.244/48.669/0.844 ms

As I posted a few posts up, I did correct the url of the freenas jail templates (see attached screenshot).
The failure to ping the IP address is irrelevant, because the server is apparently not responding to ping requests. A legitimate choice by the admin, but a nuisance! Try "curl 64.62.136.38" (without the inverted commas). If that produces a chunk of html it suggests your problem is resolving the IP address rather than contacting the server. You apparently do not have a proper DNS server available to FreeNAS. Is your FreeNAS IP supplied by DHCP or typed in by you? What is in the gateway and DNS boxes in the GUI 'Network/Global Configuration' dialogue?

Edit: What is the exact output of "nslookup download.freenas.org" on the FreeNAS box?
 

mhumm2

Explorer
Joined
Jul 12, 2015
Messages
69
Okay, below is an excerpt of what the curl command spit out. It's obviously html code so that means "[my] problem is resolving the IP address rather than contacting the server."

rogerh, I assigned the IP address to my freenas machine making sure that the IP address was in the range of my DHCP. I thought it better to have everything on static IP, but I may not have done that correctly either. My freenas mobo IPMI is on 192.168.1.100, and my freenas gui is on '101. I uploaded some screenshots you asked to see/may help.

I have a DNS that I got from NO-IP, but it's not linked yet to anything since I haven't forwarded any ports on my router. I didn't want to give my server internet access (receive) until I setup OpenVPN and some level of security. That was the next step after getting a jail configured with OpenVPN.

Code:
                  
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="9.3/">9.3/</a></td><td align="right">22-Aug-2015 13:
28  </td><td align="right">  - </td><td>&nbsp;</td></tr>                                                                           
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="10/">10/</a></td><td align="right">15-Apr-2015 15:46
  </td><td align="right">  - </td><td>&nbsp;</td></tr>                                                                             
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="buildvms/">buildvms/</a></td><td align="right">26-Ja
n-2015 17:56  </td><td align="right">  - </td><td>&nbsp;</td></tr>                                                                 
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="distfiles/">distfiles/</a></td><td align="right">23-
Jul-2015 14:18  </td><td align="right">  - </td><td>&nbsp;</td></tr>                                                               
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="documentation/">documentation/</a></td><td align="ri
ght">17-Oct-2014 15:16  </td><td align="right">  - </td><td>&nbsp;</td></tr>                                                       
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="errata/">errata/</a></td><td align="right">05-Aug-20
15 08:07  </td><td align="right">  - </td><td>&nbsp;</td></tr>                                                                     
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="grubtest/">grubtest/</a></td><td align="right">09-Ju
n-2014 12:19  </td><td align="right">  - </td><td>&nbsp;</td></tr>                                                                 
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="jails/">jails/</a></td><td align="right">17-Jun-2014
22:20  </td><td align="right">  - </td><td>&nbsp;</td></tr>                                                                       
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="latest/">latest/</a></td><td align="right">24-Aug-20
15 18:23  </td><td align="right">  - </td><td>&nbsp;</td></tr>                                                                     
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="plugins/">plugins/</a></td><td align="right">24-Jul-
2013 21:10  </td><td align="right">  - </td><td>&nbsp;</td></tr>                                                                   
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="upload/">upload/</a></td><td align="right">29-May-20
15 15:46  </td><td align="right">  - </td><td>&nbsp;</td></tr>                                                                     
<tr><th colspan="5"><hr></th></tr>                                                                                                 
</table>                                                                                                                           
</body></html>
 

Attachments

  • fnas-1.jpg
    fnas-1.jpg
    172 KB · Views: 242
  • fnas-2.jpg
    fnas-2.jpg
    165.2 KB · Views: 259

rogerh

Guru
Joined
Apr 18, 2014
Messages
1,111
You should not need to give your server 'receive' access. All it needs for your current purposes is the ability to initiate a connection, like other PCs on your network. I presume your other networked computers and router all have addresses in the 192.168.1.* network they all have the same netmask (probably /24 or 255.255.255.0) as does your FreeNAS box. Why not find out what your other computers are using for DNS servers (eg in /etc/resolv.conf in your Ubuntu box, or network connections in Windows) and insert these IPs (or one if you can only find one) in the FreeNAS settings. I don't know what NO-IP is and whether its DNS settings should work, but they obviously aren't. What does 'nslookup download.freenas.org' from the command line in the FreeNAS box give you?

Important edit: I have just managed to see your 'Network" tab screenshot (slow connection here!) and you do not have any DNS servers set here in the Global Config tab. You do need the DNS server IPs here!

Edit: the FreeNAS IP should be in the same subnet as your DHCP server is using but preferably outside the range (hopefully only part of the subnet) that the DHCP server is set to allocate. But this is probably not a big issue at the moment if you can contact the FreeNAS server from other computers on your network.

Another Edit: I am sure you have set the FreeNAS IP in the Network-Interfaces-<select your interface here>-edit dialogue. What netmask did you use?
 
Last edited:

SmallGuy

Guru
Joined
Jun 7, 2013
Messages
560
You need nameserver in your FreeNAS network configuration.
How do you want Freenas resolve DNS without it?
8.8.8.8 and 8.8.4.4 are the most known (Google).
 

mhumm2

Explorer
Joined
Jul 12, 2015
Messages
69
Well the bottom line is I'm obviously more of a noob than you guys first thought <grin>. I typed the nameserver 1, 2, and 3 IP addresses into the network config screen and tried nslookup www.google.com and download.freenas.org. The terminal screen stuttered several times and acted oddly refusing to echo some of the letters I typed. Finally, I rebooted the server and I now get a nice response from nslookup so I tried to create a jail for OpenVPN and viola! It seems to be working. At least it's taking a lot longer than it did when it told me it was "Unable to find template."

So if I understand this correctly, my FreeNAS server is using that freeBSD template it can now get to (download.freenas.org) to actually create a new freeBSD system in the new jail I created and called OpenVPN-1. If so, that explains why it's taking so long. I'm going to bed and let the server finish whatever it's doing.

If I don't have any error messages when I check, I'll mark this post as solved. You guys have been great (even when your advice is over my head). At least it provides me good google queries to look up and learn about. Thank you very much.
 
Status
Not open for further replies.
Top