SOLVED Does FreeNAS 9.3 Have Internet Access?

Status
Not open for further replies.

mhumm2

Explorer
Joined
Jul 12, 2015
Messages
69
I'm trying to create and configure a Jail for OpenVPN, but I'm not having any success. I went back to reading applicable posts and one member asked another, "Does FreeNAS have access to the internet?" Then he said, "Make sure you have BIND turned on."

Okay, so I can I tell if my FreeNAS computer has internet access? I know it has LAN access and I know my other computers on the LAN have internet access, but I do not know if my FreeNAS server has internet access.

I think the member was asking because the person asking the questions was unable to get a Jail template (Unable to find template) and that's one of my challenges too. I assume FreeNAS pulls the needed templates from the net.

BTW, here is the reference I found to create and configure an OpenVPN Jail in FreeNAS 9.3, but I can't get past the first step without being able to get to the templates: https://www.kirkg.us/posts/building-an-openvpn-server-inside-a-freenas-jail/
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
can you 'ping google.com'? if now then you need to configure you network settings in the networking tab for freenas.
 

mhumm2

Explorer
Joined
Jul 12, 2015
Messages
69
Yes, I can ping google. So yes, my server does have internet access. Then why, when I try to create a Jail for OpenVPN, do I get the error message: Unable to find template?
 

brando56894

Wizard
Joined
Feb 15, 2014
Messages
1,537
Did you select the FREEBSD template? There are only two available, FREEBSD and Virtual Box

Sent from my Nexus 6 using Tapatalk
 

mhumm2

Explorer
Joined
Jul 12, 2015
Messages
69
No, the only template I see in advanced mode is the VirtualBox template. And I tried to use the VB template and I still received the "Unable to find template" error message. So what am I missing? I have the path cited as "/mnt/Volume-1" because that's the path to my datasets. I did not create a dataset for the jail because I read that it is created automatically when I create the jail. All I have to do is point with the path.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,458
No, there are two templates visible in advanced mode, but the standard one is rather confusingly denoted with just "-------" in the dropdown. There have been some other threads about this problem--a search may help out.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
What do your network settings look like?
 

mhumm2

Explorer
Joined
Jul 12, 2015
Messages
69
Yes, I can ping google. So yes, my server does have internet access.
Other than knowing that, what exactly do you want to know SweetAndLow?

I do not have a "--------" template available on my server. Is it possible to load the template back in since I do have internet access?
 

Attachments

  • templates avail.jpg
    templates avail.jpg
    24.8 KB · Views: 256

rogerh

Guru
Joined
Apr 18, 2014
Messages
1,111
Have you tried: Jails/Jails/Add Jail? It is when you press this "Add Jail" button you get a choice of template, '------' or 'VirtualBox ..' If you haven't already got the template it wants I think it then downloads it.
 

mhumm2

Explorer
Joined
Jul 12, 2015
Messages
69
Yes. In advanced mode, I left template as '-----' and it made no difference. After receiving the error message, "Unable to find template," I still had only the VB template listed under Jail/Jails/Templates. I don't understand why it is so difficult to create a jail.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,458
I have several jails installed on my FreeNAS 9.3 server (some installed under legacy 9.2.something builds, some installed under 9.3.something), and the only template listed under Jails -> Templates is the virtualbox template. Not sure why, and it's not really something I've thought about.

So, you're getting an error message when you try to create a jail. Is there anything in the logs? Under Jails -> Configuration -> Advanced Mode, what's your "collection URL"? My system has http://download.freenas.org/jails/9.3/x64 for that; if yours is different that may be the issue.
 

mhumm2

Explorer
Joined
Jul 12, 2015
Messages
69

mhumm2

Explorer
Joined
Jul 12, 2015
Messages
69

Attachments

  • Unable to find template.jpg
    Unable to find template.jpg
    10.4 KB · Views: 260

mhumm2

Explorer
Joined
Jul 12, 2015
Messages
69
Okay, I corrected the url and tested it in my browser. The link works, but when I try to create a jail, I get the same error message. Maybe it's time to look at some other settings that would affect the creation of a jail. What logs would be helpful?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,458
Start with the ones that should appear at the bottom of your FreeNAS web GUI. If you click on that portion, the log viewer will expand to fill most of the window. That streams the most recent additions to /var/log/messages.
 

SmallGuy

Guru
Joined
Jun 7, 2013
Messages
560
From the FreeNAS shell, What's the output of 'ping download.freenas.org' ?
 

mhumm2

Explorer
Joined
Jul 12, 2015
Messages
69
[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).
 

Attachments

  • jail url-1.jpg
    jail url-1.jpg
    7 KB · Views: 248

mhumm2

Explorer
Joined
Jul 12, 2015
Messages
69
I've gone over the guide again and again. It would be much better, I think, if the guide started each section with the "big picture" or end result instead of starting off with step-by-step directions.

I'm just making huge assumptions, and if I'm wrong, please correct me.

Do I have to have a dataset created first for a jail or does the "add jail" do that for me? I do have the Jail Root defined as: /mnt/Volume-1/ which is where I want a jail dataset to be created one level down so it looks like:
/mnt/Volume-1/OpenVPN-1

since OpenVPN-1 is the name of the jail I'm trying to create.

FreeNAS has to be able to go out and download from http://download.freenas.org/latest/RELEASE/x64/jails
to get the needed templates so I changed the Jails > Configuration > Collection URL to
http://download.freenas.org/jails/9.3/x64/ and I verified the link is good because I pointed my browser at it and it opened the files page. I can see the plugin jail tgz, and mtree as well as the standard tgz and mtree files.

What else is required? What else am I missing?
 
Status
Not open for further replies.
Top