MRatWork Forum by Mustafa Ramadhan

General Discussions => GNU/Linux Helps => Topic started by: ItzJustinN on 2015-03-31, 04:35:49

Title: some issues
Post by: ItzJustinN on 2015-03-31, 04:35:49
hello again!

i have installed kloxo 7 on centos vps w/ dynamic ip.

first problem i have is that apache doesnt seem to listen on local ip when using bind for dns.
when i modify binddns records to the public ip, the websites are resolving,
but since my ip is dynamic, i would prefer apache to listen on local ip.

the next problem i have is with lxguard.  in 6.5 i didnt have to do anything to it,
i just modify the attempts to 3, and it does it's thing.
on the new installation however, after making the same configuration,
lxguard does not appear to do anything at all.
i cannot even see my ssh logins in the raw connections log.


i look forward to your responces, and thanks for making such a great free panel!
Title: Re: some issues
Post by: MRatWork on 2015-03-31, 06:28:02
1. You mean dynamic IP from DHCP?.
2. I will investigate about lxguard.
Title: Re: some issues
Post by: ItzJustinN on 2015-03-31, 15:14:55
yes, i receive ip from ISP through DHCP.  (24.x.x.x)
I have local lan ip assigned static. (192.168.1.5)

when dns records pointed to 192.168.1.5, connection timed out
but when pointed to public ip, everything worked fine.
Title: Re: some issues
Post by: MRatWork on 2015-03-31, 15:20:49
Kloxo-MR 7.0 is no issue for dhcp ip and will detected. So, you don't need local IP trick.
Title: Re: some issues
Post by: ItzJustinN on 2015-03-31, 15:41:24
im not sure what i did wrong then.
when bind dns give the record to local ip,
connection is timed out.
Title: Re: some issues
Post by: MRatWork on 2015-03-31, 15:57:42
Did you see in 'IP Address' appear public IP (from DHCP)?. If yes, just setup your dns using this public IP.
Title: Re: some issues
Post by: ItzJustinN on 2015-03-31, 17:15:05
the only ip that kloxo show is the local static ip.
if i try to add the ip to kloxo = "another host is using this ip address"
Title: Re: some issues
Post by: MRatWork on 2015-03-31, 18:12:58
Something wrong your DHCP IP. Ask to your provider.

Or, inform here your 'ip addr show'.
Title: Re: some issues
Post by: ItzJustinN on 2015-03-31, 19:11:18
nothing wrong with the internet provider
server is hosted on a dynamic home connection
i have one public ip for all my devices


show ip:

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 08:00:27:8d:69:7c brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.5/24 brd 192.168.1.255 scope global eth0
Title: Re: some issues
Post by: ItzJustinN on 2015-03-31, 19:16:12
maybe its not issue with apache listening ip,
but when dns updated to 192.168.1.5,
webserver cannot  be found.


no issue with configuration on standalone apache2.2 with 192.168.1.5
Title: Re: some issues
Post by: ItzJustinN on 2015-03-31, 19:22:39
i found i can change dns template ip to public ip, and this give new websites the public ip which resolves, however if my ip change (since dynamic) i still need rebuild all records for dns which is not ideal.
Title: Re: some issues
Post by: MRatWork on 2015-03-31, 19:31:03
No CP can handle your issue. Need fix IP but doesn't matter static or dhcp IP.
Title: Re: some issues
Post by: ItzJustinN on 2015-03-31, 19:33:20
can you tell me where i can find config files for kloxo apache and bind
Title: Re: some issues
Post by: MRatWork on 2015-03-31, 19:41:35
Copy domains.conf.tpl to custom.domains.conf.tpl inside /opt/configs/<apache/bind>/tpl. And then modified this custom files. After that, run 'sh /scipt/fix-all; sh /script/restart-all'.
Title: Re: some issues
Post by: ItzJustinN on 2015-04-01, 18:30:32
im just going to use the public ip and rebuild the records if needed.

can you tell me about lxguard though?
Title: Re: some issues
Post by: MRatWork on 2015-04-01, 18:35:20
Lxguard only read /var/log/secure log file for detecting ssh and ftp login.
Title: Re: some issues
Post by: ItzJustinN on 2015-04-01, 18:45:54
right.


and var/log/secure showing many break in attempts and also my own ssh logins,
but lx guard still show nothing.
Title: Re: some issues
Post by: MRatWork on 2015-04-01, 18:53:19
right.


and var/log/secure showing many break in attempts and also my own ssh logins,
but lx guard still show nothing.
Did you click 'show all' in listing?
Title: Re: some issues
Post by: ItzJustinN on 2015-04-01, 18:58:45
there is no connections listed to show.

please see attached screenshot.

http://i.imgur.com/ykgR1Rl.png
Title: Re: some issues
Post by: MRatWork on 2015-04-01, 19:46:32
Nothing wrong in my servers (using Kloxo-MR 7.0). Already listed except for 'success' login.
Title: Re: some issues
Post by: ItzJustinN on 2015-04-01, 19:52:14
not sure then.
in my server it didnt work.
also using kloxo 7.


is new server, only installed kloxo, no other packages/systems

i guess i will use fail2ban...
Title: Re: some issues
Post by: MRatWork on 2015-04-02, 08:05:53
Sometimes any trouble with rsyslog. Rsyslog not logging process. Try 'service rsyslog restart'.