Setup Direct Admin In Internal Network

phancuong

New member
Joined
Jan 27, 2019
Messages
1
Hi expert,

I'm trying to setup Direct Admin on my local IP address: 192.168.1.103
And IP listen is: 1.1.2.86 (IP has changed for hide).

https://www.directadmin.com/lan.shtml

I have setup everything OK except step 4, it just said
Cannot Execute Your Request
Details
Cannot find IP

I have ignore this step and try to setup reverse proxy by nginx for resolve specific domain for directadmin instead 1.1.2.86:2222

I choose shorewall and nginx to handle this. From now, everything fine. It's working well.

But I started to login the admin account, it disconnect everything when I click to the feature. I have seen the debug log here:
0: accept-encoding: gzip, deflate, br
1: accept-language: en-US,en;q=0.5
2: accept: */*
3: Connection: close
4: cookie: __cfduid=dee69f4dd24b9127595f0702473238b4d1543658064; session=2kegxdw5rFT0RDHdXymicM3KS958fdBhLqLIRHMJUpHv0WXXUJD7fGP5PVC46NjP
5: Host: da-prod01.safedata.vn
6: referer: https://da-prod01.xxx.vn/
7: user-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0
8: X-Forwarded-For: 123.20.189.232
9: X-Forwarded-Proto: https
10: X-Real-IP: 123.20.189.232
Checking referer https://da-prod01.xxx.vn/ to da-prod01.xxx.vn:2222
Referer port (443) does not match DA's (2222): https://da-prod01.xxx.vn/
Referer check failed for 192.168.1.1. See error.log
** incorrect login
Send::sendLogin(): not logged in. json_out=0
Sockets::handshake - begin
Sockets::handshake - end
/CMD_AJAX_GET_COUNTS
GET string: plugin_updates=yes&program=yes&rand=0.9703789276037992
0: accept-encoding: gzip, deflate, br
1: accept-language: en-US,en;q=0.5
2: accept: */*
3: Connection: close
4: cookie: __cfduid=dee69f4dd24b9127595f0702473238b4d1543658064
5: Host: da-prod01.xxx.vn
6: referer: https://da-prod01.xxx.vn/
7: user-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0
8: X-Forwarded-For: 123.20.189.232
9: X-Forwarded-Proto: https
10: X-Real-IP: 123.20.189.232
didn't find the encrytped text
** incorrect login
Send::sendLogin(): not logged in. json_out=0
Sockets::handshake - begin
Sockets::handshake - end

Yes, it logout everytime. and I can not do anything when login many many time like that.


So my question is:


1. How can I use directadmin without login like that? I just Nginx and Shorewall. Does I can solve this as config directadmin level?

2. If (1) works, then when I create a domains? Does it the DNS server resolve all of domains? I cannot define for firewall nginx for match with directadmin apache (or nginx).

Please help me. I'm a newbie come from VN, If bad english please understanding in my situation.

Thank you.
 
Hello,

You really need to link your IPs, i.e. complete step #4 otherwise you might have various issues.

Before linking you should add the both internal and external IPs into your nic using Directadmin interface.
 
Back
Top