How Would You Set This Up - Server/Admin/Reseller Relationship

Jayson Wonder

Verified User
Joined
May 27, 2015
Messages
22
Hey,

Just curious about the best way to setup my server. It is a VPS on CentOS 6 with DirectAdmin as a panel. I am new to the panel so wondered how other users with time in on the panel would approach the setup for the sites I intent to host. I'm just looking at best practices and the approaches different admins might take to the setup.

I may be out to lunch in even thinking there is more than one way to set this up but based on what I have read and see, it seems like you could do it in a couple of ways.

Here is what I have...
- A VPS Cloud running CentOS 6 with DirectAdmin
- 2 IP address
- 5 sites to host (1 is a reseller site and 4 user sites)

What I plan to do...
Option 1
- Setup an admin account with an email account, no website needed
- Setup a reseller account to host the 4 other sites
- Use both IP's as nameservers (NS1.NS2)
- the primary 1 IP for the server, NS1 & share for reseller and hosted sites
- the secondary IP free (used only for NS.2)
or
Option 2
- Use both IP's as nameservers (NS1.NS2)
- the primary 1 IP for the server and NS1
- the secondary IP for NS2 and reseller & hosted sites
or
Option 3
- Link the secondary IP to the primary IP
- Run all sites and namersevers of the primary

Not sure if there are any advantages or disadvantages to either method. Is there a right way or just personal taste.

Curious about your thoughts.
 
There are many ways to do it.

Jeff aka NoBaloney had a pretty good setup that he passed along to me when he "passed on"

If you like I can help you out. Just shoot me a PM
 
USe 2 IP's

Ok well I have been trying to figure this DirectAdmin IP address setup thing out on my own with no great success. Any support or direction would be very helpful.

I have 2 IP's
xxx.xxx.xxx.1
xxx.xxx.xxx.2

xxx.xxx.xxx.1 is owned by the SERVER and Admin I assume. I want to keep it that way and have it for access to the server but there will be no need for a site / domain there. I will only use this IP to access the root / VPS and DirectAdmin Panel.

xxx.xxx.xxx.2 will be a shared IP and by all of my sites / domains 5 in total, 1 resellers and 4 users.

I currently have the 1 and only reseller account created but it is using the xxx.xxx.xxx.1 ip sharing it with "server". I want it to use and share xxx.xxx.xxx.2 with all the other sites not attached to the xxx.xxx.xxx.1

How can I do this? I assume I might need some sort of a link between the 2 IP's. I am so confused.

Please help
 
Hello,

Admin login into Directadmin -> IP Management -> Assign the IP xxx.xxx.xxx.2 to your reseller.
As a reseller -> IP Management -> Mark the IP xxx.xxx.xxx.2 as shared
As a reseller change IP of your users from xxx.xxx.xxx.1 to xxx.xxx.xxx.2

And finally if you need it as admin you can remove xxx.xxx.xxx.1 from your reseller.
 
Hello,

Admin login into Directadmin -> IP Management -> Assign the IP xxx.xxx.xxx.2 to your reseller.
As a reseller -> IP Management -> Mark the IP xxx.xxx.xxx.2 as shared
As a reseller change IP of your users from xxx.xxx.xxx.1 to xxx.xxx.xxx.2

And finally if you need it as admin you can remove xxx.xxx.xxx.1 from your reseller.

The problem is when I login as a reseller the xxx.xxx.xxx.2 is not available there. All I can see is the xxx.xxx.xxx.1 which is is attached to.

If I login as admin I see xxx.xxx.xxx.1 | server | no reseller | 2 users | ns1.example.com | 255.255.255.0
If I login as admin I see xxx.xxx.xxx.2 | shared | myreseller | 4 users | ns2.example.com | 255.255.255.0

So xxx.xxx.xxx.1 is the server and the users on it must be admin and myreseller and xxx.xxx.xxx.2 has my 4 users sites on it.

Is this because the myreseller account was setup initially on xxx.xxx.xxx.1??? I go in to the myreseller account to change the IP and xxx.xxx.xxx.2 is not there as an option it only shows 2 selection options, xxx.xxx.xxx.1 as current IP and xxx.xxx.xxx.1 as shareed IP. I did not ever make xxx.xxx.xxx.1 a shared IP. what gives?

Thanks,
 
As root via SSH go to /usr/local/directadmin/data/users/myreseller/ip.list and /usr/local/directadmin/data/users/myreseller/ and change xxx.xxx.xxx.1 to xxx.xxx.xxx.2 in all files under that directory.

Run:

Code:
cd /usr/local/directadmin/custombuild
./build update
./build rewrite_confs

Then go to Directadmin and change IP for your users.
 
As root via SSH go to /usr/local/directadmin/data/users/myreseller/ip.list and /usr/local/directadmin/data/users/myreseller/ and change xxx.xxx.xxx.1 to xxx.xxx.xxx.2 in all files under that directory.

Run:

Code:
cd /usr/local/directadmin/custombuild
./build update
./build rewrite_confs

Then go to Directadmin and change IP for your users.

It did not work. This seems strange. what you have suggested seems like the perfect solution. Perhaps it is the cache messeing things up again but the rebuild should have taken care of that I would think. Is there a way to troubleshoot this. At this point it is only the "myreseller" that I can't move to xxx.xxx.xxx.2. It says it is shared as the other sites are on it....
 
Solved

Hey again,

I went back and looked at it again did a full reboot of the server and all was good. The desired changes are in affect and working.

Thanks again for your time and knowledge.
 
Back
Top