I posted this to the FreeNAS 7 forums but got no answers. I think it might be the same issue in FreeNAS 8, so I'm posting here as well:
I have a FreeNAS machine that's been working fine for me for a while, it has 0.7.2 Sabanda (revision 5543) running. It has 1 NIC in it that does everything - connects to the network, serves NFS/AFP/SMB shares, etc. I added a second NIC, and that seems to work fine as well. That NIC is connecting to a different network. What I want to do is the following - use NIC1 for http configuration/ admin (the web interface), SMB/AFP/SSH/NFS/etc. NIC2 should be the webserver for HTTP/HTTPS access to files. So, in other words, if I connect to nic1name.domain.com it should take me to the web admin interface, and if I try to SSH to nic1name.domain.com it should let me connect. This part works now. Then if I connect to nic2name.domain.com it should take me to the HTTP server to a specific directory (set in the webserver admin settings) where I can have a webpage, files, etc.
Is this possible? If not, is there any variant of this that you can imagine is possible, using different ports or something?
As a small note, what I've found is that if I turn on the second NIC and get it an address via DHCP, the machine stops responding to the first. So once I plug in the cable for NIC2, the machine stops responding to any requests (SSH/HTTP/etc) on NIC1. Any thoughts?
Thanks.
I have a FreeNAS machine that's been working fine for me for a while, it has 0.7.2 Sabanda (revision 5543) running. It has 1 NIC in it that does everything - connects to the network, serves NFS/AFP/SMB shares, etc. I added a second NIC, and that seems to work fine as well. That NIC is connecting to a different network. What I want to do is the following - use NIC1 for http configuration/ admin (the web interface), SMB/AFP/SSH/NFS/etc. NIC2 should be the webserver for HTTP/HTTPS access to files. So, in other words, if I connect to nic1name.domain.com it should take me to the web admin interface, and if I try to SSH to nic1name.domain.com it should let me connect. This part works now. Then if I connect to nic2name.domain.com it should take me to the HTTP server to a specific directory (set in the webserver admin settings) where I can have a webpage, files, etc.
Is this possible? If not, is there any variant of this that you can imagine is possible, using different ports or something?
As a small note, what I've found is that if I turn on the second NIC and get it an address via DHCP, the machine stops responding to the first. So once I plug in the cable for NIC2, the machine stops responding to any requests (SSH/HTTP/etc) on NIC1. Any thoughts?
Thanks.