Results 1 to 8 of 8

Thread: Jail Migration

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2011
    Posts
    5

    Jail Migration

    Hi

    I migrated a FreeBSD 8.x jail with Directadmin FROM server with
    Public ip directed routed, TO server with nat (private ip on jail)

    I know that Directadmin staff doesn't support this way.. but..

    Now I can download licence key by:
    ./getLicense.sh XXXX XXXX XXX
    and work file (i see licence key in: /usr/local/directadmin/conf/directadmin.conf)

    but when I run ./directadmin b200 I see:
    The ip of this machine (172.16.xx.6xx1) does not match the ip in the license file.<br>
    Check the value of your ethernet_dev=em0 setting in your /usr/local/directadmin/conf/directadmin.conf file and the output of /sbin/ifconfig<br>

    the ethernet_dev value is correct (correct nic).

    How can I do to tell to directadmin to use public ip to check in licence key?

    (I read http://www.directadmin.com/lan.shtml but it work for setup not for moving)

    Thanks for any help

  2. #2
    Join Date
    Apr 2011
    Posts
    5

    errata corige

    Quote Originally Posted by bsd3000 View Post
    Hi
    ......
    Now I can download licence key by:
    ./getLicense.sh XXXX XXXX XXX
    and work file (i see licence key in: /usr/local/directadmin/conf/directadmin.conf)
    .......
    I mean... /usr/local/directadmin/conf/license.key

  3. #3
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,145
    Hello,

    There is no way to make directadmin to check any other Ethernet devices, but change its name in /usr/local/directadmin/conf/directadmin.conf. The defined ethernet_dev should be accessible from a jail and should be listed in ifconfig output, otherwise you'll get the error, you've mentioned above.
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  4. #4
    Join Date
    Apr 2011
    Posts
    5
    Quote Originally Posted by zEitEr View Post
    Hello,

    There is no way to make directadmin to check any other Ethernet devices, but change its name in /usr/local/directadmin/conf/directadmin.conf. The defined ethernet_dev should be accessible from a jail and should be listed in ifconfig output, otherwise you'll get the error, you've mentioned above.

    The em0 is accessible from jail but the ip assigned is private one
    (the public ip is in NAT 1:1 in the real world )

    So the dev is correct, the ip used to check licence file is wrong
    (I need directadmin to use public ip to check licence key)

    Kind regards

  5. #5
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,145
    ethernet_dev should have a public IP. There is no way to make directadmin to work on private IP (172.16.xx.6xx1) .

    You might need to order an additional IP from your ISP and assign it to jail with DA.
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  6. #6
    Join Date
    Apr 2011
    Posts
    5
    I solved the problem in this way:

    my private ip is 172.16.xx.xx (assigned to nic of the server)
    public ip is 77.xx.xx.xx (nat 1:1 by the firewall)

    I change /usr/local/etc/rc.d/directadmin startup script
    to add 77.xx.xx in alias and remove it after starting directadmin

    Now its work

  7. #7
    Join Date
    Mar 2006
    Location
    Cambridge, UK - earlier Poznan, Poland
    Posts
    43
    Quote Originally Posted by bsd3000 View Post
    I change /usr/local/etc/rc.d/directadmin startup script
    to add 77.xx.xx in alias and remove it after starting directadmin
    Good one, Sir!
    Woyteck.

Similar Threads

  1. Jail PHP CGI
    By urbee in forum System-Level Technical Discussion
    Replies: 3
    Last Post: 12-14-2011, 12:52 AM
  2. How to jail php?
    By Dark in forum General Technical Discussion & Troubleshooting
    Replies: 15
    Last Post: 12-14-2008, 02:39 AM
  3. Jail(8)
    By dejine in forum FreeBSD 4.x
    Replies: 0
    Last Post: 09-30-2004, 05:10 AM
  4. Jail?
    By dacsoft in forum DirectAdmin General Discussion
    Replies: 10
    Last Post: 06-21-2004, 05:16 AM
  5. SSH Jail
    By jasonyates in forum DirectAdmin General Discussion
    Replies: 4
    Last Post: 11-22-2003, 03:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •