Results 1 to 20 of 110

Thread: DirectSlave/GO 3 - public beta

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2005
    Location
    Ukraine, Kiev
    Posts
    127

    DirectSlave/GO 3 - public beta

    Original DirectSlave thread: http://forum.directadmin.com/showthread.php?t=43924

    UPDATE: login form is vulnerable to XSS attack.
    Please apply this fix ASAP -- https://directslave.com/download/dir...-HOTFIX.tar.gz
    (see https://directslave.com/download)

    DirectSlave Updated to version 3.2-Advanced!

    All versions in one place -- https://directslave.com/

    Web interface demo available -- https://directslave.com:2224 demo:demo123

    For updating, see this post http://forum.directadmin.com/showthr...070#post289070

    Hi everybody!

    A long time ago in a galaxy far far away ...
    I was released a DirectSlave software. Many of forum users helped me a lot to debug and improve DS and bring this software to really corporate production level.

    But now, it's time for something new!

    So, I proudly introduce you a new DirectSlave/GO (GO - because it's writen in GoLang and setup is easy as 1.. 2.. 3.. GO!):

    + Binary!
    + Rock solid
    + Statically linked
    + Cross-platform
    + TLS 1.2 and HTTP/2 onboard
    + /CMD_EMAIL_POP support
    + Less memory footprint (can be used on tiny virtual instances with < 512Mb RAM)
    + Less CPU usage
    + A lot of improvements in speed
    + No more dependencies / perl modules
    + Setup is easy as 1.. 2.. 3.. GO!
    + Available for Linux i386/x32_64/arm & FreeBSD i386/amd64 (all in single archive distribution).

    Download it here -- https://regme.in/download/directslav...eta-all.tar.gz

    First time installing: see README
    Updating from 2.x: see UPDATING

    Also, feel free to contact me.

    Have a nice expirience with brand new DirectSlave/GO!

    1.. 2.. 3.. GO!
    Last edited by roman_m; 07-17-2018 at 02:19 AM. Reason: directslave.com up and running

  2. #2
    Thank you, surely I will need it for my hosting services.
    100% Cloud SSD Hosting starting from $1.12

    Now accept Bitcoin payment!

    https://hostingkernel.com

  3. #3
    Join Date
    May 2005
    Location
    Ukraine, Kiev
    Posts
    127
    Feel free to use it, but remember - this is a beta, so in kind of any bugs all the reports are welcome!

  4. #4
    Hi,

    Just installed it on Ubuntu 16.04.

    run /usr/local/directslave/bin/directslave --check everything is OK

    After create test.com domain on DA for testing, only /etc/named/secondary/named.conf file created, there is no test.com.db zone file.

    error.log
    Code:
    2017/07/07 19:16:51 DEBUG: &{Method:POST URL:/CMD_API_DNS_ADMIN?action=rawsave&domain=test.com Proto:HTTP/1.0 ProtoMajor:1 ProtoMinor:0 Header:map[Authorization:[Basic YWRtaW46R2lARHV5NzI3NQ==] Content-Length:[867]] Body:0xc420019f40 GetBody:<nil> ContentLength:867 TransferEncoding:[] Close:true Host: Form:map[action:[rawsave] domain:[test.com]] PostForm:map[] MultipartForm:<nil> Trailer:map[] RemoteAddr:104.207.135.112:52941 RequestURI:/CMD_API_DNS_ADMIN?action=rawsave&domain=test.com TLS:<nil> Cancel:<nil> Response:<nil> ctx:0xc4200e7980}
    2017/07/07 19:16:51 DEBUG: &{Method:POST URL:/CMD_API_DNS_ADMIN?action=rawsave&domain=test.com Proto:HTTP/1.0 ProtoMajor:1 ProtoMinor:0 Header:map[Authorization:[Basic YWRtaW46R2lARHV5NzI3NQ==] Content-Length:[1356]] Body:0xc4201803c0 GetBody:<nil> ContentLength:1356 TransferEncoding:[] Close:true Host: Form:map[domain:[test.com] action:[rawsave]] PostForm:map[] MultipartForm:<nil> Trailer:map[] RemoteAddr:104.207.135.112:60540 RequestURI:/CMD_API_DNS_ADMIN?action=rawsave&domain=test.com TLS:<nil> Cancel:<nil> Response:<nil> ctx:0xc4200e7e90}
    2017/07/07 19:16:57 exit status 1
    action.log
    Code:
    2017/07/07 19:16:50 Authorization passed for admin from 104.207.135.112
    2017/07/07 19:16:50 Checking test.com from 104.207.135.112
    2017/07/07 19:16:50 Domain test.com not exists
    2017/07/07 19:16:50 Authorization passed for admin from 104.207.135.112
    2017/07/07 19:16:50 Checking test.com from 104.207.135.112
    2017/07/07 19:16:50 Domain test.com not exists
    2017/07/07 19:16:51 Authorization passed for admin from 104.207.135.112
    2017/07/07 19:16:51 Domain test.com added with primary 104.207.135.112
    2017/07/07 19:16:51 Authorization passed for admin from 104.207.135.112
    2017/07/07 19:16:51 Reloaded test.com from master 104.207.135.112
    2017/07/07 19:16:57 RNDC queue triggered with 2 events
    2017/07/07 19:16:57 RNDC output:
    access.log
    Code:
    2017/07/07 19:16:50 [104.207.135.112] "GET /CMD_API_DNS_ADMIN?action=exists&domain=test.com HTTP/1.0"
    2017/07/07 19:16:50 [104.207.135.112] "GET /CMD_API_DNS_ADMIN?action=exists&domain=test.com HTTP/1.0"
    2017/07/07 19:16:51 [104.207.135.112] "POST /CMD_API_DNS_ADMIN?action=rawsave&domain=test.com HTTP/1.0"
    2017/07/07 19:16:51 [104.207.135.112] "POST /CMD_API_DNS_ADMIN?action=rawsave&domain=test.com HTTP/1.0"
    2017/07/07 19:16:51 [104.207.135.112] "POST /CMD_API_DNS_ADMIN?action=rawsave&domain=test.com HTTP/1.0"
    2017/07/07 19:16:51 [104.207.135.112] "POST /CMD_API_DNS_ADMIN?action=rawsave&domain=test.com HTTP/1.0"
    100% Cloud SSD Hosting starting from $1.12

    Now accept Bitcoin payment!

    https://hostingkernel.com

  5. #5
    Join Date
    Apr 2006
    Location
    Netherlands
    Posts
    80
    CentOS 7:
    Trying to run directslave --password, but I am getting:

    DEBUG: Running as root (0), dropping privileges to 25:25
    panic: runtime error: invalid memory address or nil pointer dereference
    [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x596ca4]

    goroutine 1 [running]:
    log.(*Logger).Output(0x0, 0x2, 0xc4200422d0, 0x41, 0x0, 0x0)
    /usr/local/go/src/log/log.go:149 +0x54
    log.(*Logger).Fatal(0x0, 0xc4200379a0, 0x1, 0x1)
    /usr/local/go/src/log/log.go:188 +0x6a
    main.UpdatePasswordFile()
    /export/store/Project/home/golang/directslave/directslave.go:860 +0x247
    main.RunWithOption(0x7fffa6eff793, 0xa)
    /export/store/Project/home/golang/directslave/directslave.go:283 +0x22f
    main.main()
    /export/store/Project/home/golang/directslave/directslave.go:98 +0xfd
    Last edited by DhoTjai; 07-10-2017 at 03:07 PM.

  6. #6
    Join Date
    Apr 2006
    Location
    Netherlands
    Posts
    80
    Quote Originally Posted by DhoTjai View Post
    CentOS 7:
    Trying to run directslave --password, but I am getting:

    DEBUG: Running as root (0), dropping privileges to 25:25
    panic: runtime error: invalid memory address or nil pointer dereference
    [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x596ca4]

    goroutine 1 [running]:
    log.(*Logger).Output(0x0, 0x2, 0xc4200422d0, 0x41, 0x0, 0x0)
    /usr/local/go/src/log/log.go:149 +0x54
    log.(*Logger).Fatal(0x0, 0xc4200379a0, 0x1, 0x1)
    /usr/local/go/src/log/log.go:188 +0x6a
    main.UpdatePasswordFile()
    /export/store/Project/home/golang/directslave/directslave.go:860 +0x247
    main.RunWithOption(0x7fffa6eff793, 0xa)
    /export/store/Project/home/golang/directslave/directslave.go:283 +0x22f
    main.main()
    /export/store/Project/home/golang/directslave/directslave.go:98 +0xfd
    path to rndc was wrong, changed the path to rndc and it's working now

  7. #7
    Join Date
    Apr 2006
    Location
    Netherlands
    Posts
    80
    Quote Originally Posted by Hosting Kernel View Post
    Hi,

    Just installed it on Ubuntu 16.04.

    run /usr/local/directslave/bin/directslave --check everything is OK

    After create test.com domain on DA for testing, only /etc/named/secondary/named.conf file created, there is no test.com.db zone file.

    error.log
    Code:
    2017/07/07 19:16:51 DEBUG: &{Method:POST URL:/CMD_API_DNS_ADMIN?action=rawsave&domain=test.com Proto:HTTP/1.0 ProtoMajor:1 ProtoMinor:0 Header:map[Authorization:[Basic YWRtaW46R2lARHV5NzI3NQ==] Content-Length:[867]] Body:0xc420019f40 GetBody:<nil> ContentLength:867 TransferEncoding:[] Close:true Host: Form:map[action:[rawsave] domain:[test.com]] PostForm:map[] MultipartForm:<nil> Trailer:map[] RemoteAddr:104.207.135.112:52941 RequestURI:/CMD_API_DNS_ADMIN?action=rawsave&domain=test.com TLS:<nil> Cancel:<nil> Response:<nil> ctx:0xc4200e7980}
    2017/07/07 19:16:51 DEBUG: &{Method:POST URL:/CMD_API_DNS_ADMIN?action=rawsave&domain=test.com Proto:HTTP/1.0 ProtoMajor:1 ProtoMinor:0 Header:map[Authorization:[Basic YWRtaW46R2lARHV5NzI3NQ==] Content-Length:[1356]] Body:0xc4201803c0 GetBody:<nil> ContentLength:1356 TransferEncoding:[] Close:true Host: Form:map[domain:[test.com] action:[rawsave]] PostForm:map[] MultipartForm:<nil> Trailer:map[] RemoteAddr:104.207.135.112:60540 RequestURI:/CMD_API_DNS_ADMIN?action=rawsave&domain=test.com TLS:<nil> Cancel:<nil> Response:<nil> ctx:0xc4200e7e90}
    2017/07/07 19:16:57 exit status 1
    action.log
    Code:
    2017/07/07 19:16:50 Authorization passed for admin from 104.207.135.112
    2017/07/07 19:16:50 Checking test.com from 104.207.135.112
    2017/07/07 19:16:50 Domain test.com not exists
    2017/07/07 19:16:50 Authorization passed for admin from 104.207.135.112
    2017/07/07 19:16:50 Checking test.com from 104.207.135.112
    2017/07/07 19:16:50 Domain test.com not exists
    2017/07/07 19:16:51 Authorization passed for admin from 104.207.135.112
    2017/07/07 19:16:51 Domain test.com added with primary 104.207.135.112
    2017/07/07 19:16:51 Authorization passed for admin from 104.207.135.112
    2017/07/07 19:16:51 Reloaded test.com from master 104.207.135.112
    2017/07/07 19:16:57 RNDC queue triggered with 2 events
    2017/07/07 19:16:57 RNDC output:
    access.log
    Code:
    2017/07/07 19:16:50 [104.207.135.112] "GET /CMD_API_DNS_ADMIN?action=exists&domain=test.com HTTP/1.0"
    2017/07/07 19:16:50 [104.207.135.112] "GET /CMD_API_DNS_ADMIN?action=exists&domain=test.com HTTP/1.0"
    2017/07/07 19:16:51 [104.207.135.112] "POST /CMD_API_DNS_ADMIN?action=rawsave&domain=test.com HTTP/1.0"
    2017/07/07 19:16:51 [104.207.135.112] "POST /CMD_API_DNS_ADMIN?action=rawsave&domain=test.com HTTP/1.0"
    2017/07/07 19:16:51 [104.207.135.112] "POST /CMD_API_DNS_ADMIN?action=rawsave&domain=test.com HTTP/1.0"
    2017/07/07 19:16:51 [104.207.135.112] "POST /CMD_API_DNS_ADMIN?action=rawsave&domain=test.com HTTP/1.0"
    I am not sure if this will help, but I added allow-transfer and allow-notify in /etc/bind/named.conf.options (directadmin server) and pointed to the IP address of the slave.

    allow-transfer { 1.2.3.4; };
    allow-notify { 1.2.3.4; };
    notify yes;


    Is your named-workdir /etc/named/secondary ? Make sure bind/named has access to directory /etc/named/secondary/.
    Last edited by DhoTjai; 07-10-2017 at 03:27 PM.

  8. #8
    Quote Originally Posted by DhoTjai View Post
    I am not sure if this will help, but I added allow-transfer and allow-notify in /etc/bind/named.conf.options (directadmin server) and pointed to the IP address of the slave.

    allow-transfer { 1.2.3.4; };
    allow-notify { 1.2.3.4; };
    notify yes;


    Is your named-workdir /etc/named/secondary ? Make sure bind/named has access to directory /etc/named/secondary/.
    I update DA config and re-check the bind permission OK, but still no .db zone file in named-workdir.
    100% Cloud SSD Hosting starting from $1.12

    Now accept Bitcoin payment!

    https://hostingkernel.com

  9. #9
    Join Date
    Apr 2006
    Location
    Netherlands
    Posts
    80
    Quote Originally Posted by Hosting Kernel View Post
    Hi,

    Just installed it on Ubuntu 16.04.

    run /usr/local/directslave/bin/directslave --check everything is OK

    After create test.com domain on DA for testing, only /etc/named/secondary/named.conf file created, there is no test.com.db zone file.
    Change named_workdir (in directslave.conf) to: /var/cache/bind
    Restart directslave (and bind9)

    See file: /etc/apparmor.d/usr.sbin.named
    Code:
      # /etc/bind should be read-only for bind
      # /var/lib/bind is for dynamically updated zone (and journal) files.
      # /var/cache/bind is for slave/stub data, since we're not the origin of it.
      # See /usr/share/doc/bind9/README.Debian.gz
      /etc/bind/* r,
      /var/lib/bind/** rw,
      /var/lib/bind/ rw,
      /var/cache/bind/** lrw,
      /var/cache/bind/ rw,
    Last edited by DhoTjai; 07-11-2017 at 09:04 AM.

  10. #10
    Thank you! it works now, like magic <3
    100% Cloud SSD Hosting starting from $1.12

    Now accept Bitcoin payment!

    https://hostingkernel.com

  11. #11
    Join Date
    Jan 2007
    Posts
    12
    Quote Originally Posted by DhoTjai View Post
    Change named_workdir (in directslave.conf) to: /var/cache/bind
    Restart directslave (and bind9)

    See file: /etc/apparmor.d/usr.sbin.named
    Code:
      # /etc/bind should be read-only for bind
      # /var/lib/bind is for dynamically updated zone (and journal) files.
      # /var/cache/bind is for slave/stub data, since we're not the origin of it.
      # See /usr/share/doc/bind9/README.Debian.gz
      /etc/bind/* r,
      /var/lib/bind/** rw,
      /var/lib/bind/ rw,
      /var/cache/bind/** lrw,
      /var/cache/bind/ rw,
    Hello all,

    Got the same error, so directadmin.inc is filled with the domain but no DB creation.
    Tried above solution but didn;t work, different is also im using Centos7 and above is Ubuntu.

    Did not see or find any error logging, maybe someone got an solution?

Tags for this Thread

Posting Permissions

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