Alternate ethernet device

AC-Jay

Verified User
Joined
Nov 20, 2009
Messages
9
I realize DA requires the licensed IP to be on the ethernet device of the box on which DA is installed, but will DA also function if there is a 2nd ethernet card with an internal IP?

I ask because we serve pages internal to our LAN (as well as external) and I want to be able to reference my websites (and DA administration) via the local IP (as well as the public IP if I am out of my building).

Thanks in advance,
Jay
 
You would have to email directadmin sales and ask.
 
Hello,

Yes, you can use 2 network devices with DA. One can be a LAN, as long as the other is an external IP device.

However, if you want a website to work internally resolving to a LAN IP.... and have that same website working externally, resolving to a public IP, that might be more difficult, but is possible.

For that case, you'd have to customize your named.conf and have different zones referenced based on the connecting IP type.. so that if a LAN IP queries for the IP, they get a LAN IP.. but if an external IP queries for the IP, they get the public IP.

For dns, this could get messy.. so you might just want to use your "/etc/hosts" file on the LAN machines instead of thrashing through the named.conf and changing things.
If you're on windows, the hosts file is at:
C:\WINDOWS\system32\drivers\etc\hosts

so you can change that to make the domain resolve to whatever you'd like, for each machine, which is by far smipler, but just less centralized, so you'd only want to be doing this for a few boxes... since it's manual.

So that would solve the dns.. then you'd have to worry about apache.
For this, you'll need to change the VirtualHosts to accept both IPs (internal and external). This is the guide to modify the VirtualHosts:
http://help.directadmin.com/item.php?id=2

What might be easiest here is to change:
Code:
<VirtualHost |IP|:80>
to be:
Code:
<VirtualHost *:80>
.... Or to:
Code:
<VirtualHost |IP|:80 192.168.0.2:80>
or whatever LAN IP you have.

You'd need then to make changed to your /etc/httpd/conf/ips.conf to adjust the NameVirtualHost to either add the extra LAN IP.. or change it to be NameVirtualHost *:80.
Read this for more info on VirtualHosts:
http://httpd.apache.org/docs/2.0/mod/core.html#namevirtualhost

John
 
I have internal DNS so everything should be fine. Just wanted to clarify that it'd work.

Thanks!
 
John, I'm not sure you fully answered the question; AC-Jay has also asked if DirectAdmin's interface answers on the LAN.

Jeff
 
looks like it directadmin binds to all interfaces

Looks like it's binded to all interfaces, i would guess it works even on a lan


~ # netstat -plant | grep direct
tcp 0 0 0.0.0.0:2222 0.0.0.0:* LISTEN 2896/directadmin


( the plant! never forget the plant! ) ;)
 
Back
Top