Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - cyberspace

Pages: 1 2 3 [4] 5 6 ... 15
46
Updates / Re: The Future of CentOS Stream with CWP
« on: October 22, 2024, 10:24:21 AM »
Hi,

This post is correct and outdated at the same time because it was created on "December 13, 2020". Currently, the recommended distro for CWP is Almalinux 8.

47
Postfix / Re: connection refused to a domain on another virtual machine
« on: October 21, 2024, 03:26:36 PM »
thank u very much for your help

No problem. I wish you to find root of the problem and solve it to get maximum from your infrastructure and CWP panel.

48
Postfix / Re: connection refused to a domain on another virtual machine
« on: October 21, 2024, 11:06:08 AM »
If you disabled CSF/Firewall, dig, nslookup show correct answers but you can't connect to the port 25 of another VM then there is some networking problem. It could be your router or some other device used to manage traffic. I am afraid the CWP community is unable to help you with it because it requires deeper understanding of your infrastructure and network configuration.

49
Postfix / Re: connection refused to a domain on another virtual machine
« on: October 20, 2024, 10:09:14 PM »
1. Did you disable CSF/Firewall on both VMs ? Does it try to access the VM2 from VM1 using public or private IP ?

2. What did the test 2 show exactly when it failed ?

3. does "nslookup MX.DOMAIN.COM"  (replace MX.DOMAIN.COM with the actual MX record of the domain hosted on VM2) executed on VM1 shows the same result as "dig" ?

50
Postfix / Re: connection refused to a domain on another virtual machine
« on: October 20, 2024, 05:28:06 PM »
Disable CSF/IPtables and run tests 2,3 again. If the tests are passed with the disabled CSF/iptables then check your CSF/iptables  rules.

51
Postfix / Re: connection refused to a domain on another virtual machine
« on: October 20, 2024, 03:14:40 PM »
Remove any extra lines from /etc/hosts added by you:

1. On VM1 can you resolve the MX records of the domain hosted on VM2 ?
2. Can you connect to the port 25 from VM1 to the host/IP resolved in p1 ?
3. Does the traceroute command executed on VM1 to the host/ip resolved in p1 look good (VM2 is accessible) ?

52
Postfix / Re: connection refused to a domain on another virtual machine
« on: October 20, 2024, 01:06:21 PM »
Dude, just forget about outgoing emails to yahoo, gmail, etc because they have correcet MX records and can be resolved from any correctly configured and working host.

Your VMs are behind NAT. So:

1. Check the MX records of your domains, make sure they are correct and working.
2. Check resolvers on your VMs. The resolvers can resolve the IP address of the MX records.
3. Check if routing from one VM to MX record of the domain hosted on another VM is ok.

53
CentOS 7 Problems / Re: Auto reset up time
« on: October 18, 2024, 06:27:03 AM »
I don't see anything. Your VPS operated and then boot process was initiated. It looks like someone pressed "Reset":

Code: [Select]
Oct 17 21:43:17 vps kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=56:00:03:33:e5:be:fe:00:03:33:e5:be:08:00 SRC=103.102.230.5 DST=217.163.28.168 LEN=40 TOS=0x00 PREC=0x00 TTL=241 ID=54321 PROTO=TCP SPT=59339 DPT=8728 WINDOW=65535 RES=0x00 SYN URGP=0
Oct 17 21:43:51 vps kernel: Initializing cgroup subsys cpuset
Oct 17 21:43:51 vps kernel: Initializing cgroup subsys cpu
Oct 17 21:43:51 vps kernel: Initializing cgroup subsys cpuacct
Oct 17 21:43:51 vps kernel: Linux version 3.10.0-1160.119.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Tue Jun 4 14:43:51 UTC 2024
Oct 17 21:43:51 vps kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-3.10.0-1160.119.1.el7.x86_64 root=/dev/vda1 ro consoleblank=0 crashkernel=auto rhgb quiet LANG=en_US.UTF-8
Oct 17 21:43:51 vps kernel: e820: BIOS-provided physical RAM map:

Therefore, I recommend you run "last" in shell as root, review output and then contact your provider for investigation on their side. Show them the same piece of log.

54
CentOS 7 Problems / Re: Auto reset up time
« on: October 17, 2024, 09:03:30 PM »
You can find answer on your question in:
Code: [Select]
/var/log/messages

55
SSL / Re: How to create wildcard Certificate?
« on: October 17, 2024, 12:59:58 PM »
Review this thread:
https://forum.centos-webpanel.com/ssl/want-to-install-wildcard-ssl-in-cwp/msg30593/#msg30593
Hope it contains answer on your question.

56
CentOS 8 Problems / Re: PHP Version Switcher stuck on Compiling PHP
« on: October 17, 2024, 12:57:56 PM »
1. Log into SSH of your server as root
2. Open less, vi, nano or another editor:
Code: [Select]
/var/log/php-rebuild.logand review it to investigate the problem.

In case there is nothing then check processes running on your server/vps when you run the php compilation process.

57
1. Log into CWP admin area as root:
https://xxx.xxx.xxx.xxx:2031/

2. Click on "New account" of the section "User Accounts".

That's it.


58
Excellent! However, I recommend to use the second variant of "return()":

Code: [Select]
return ("Failed Roundcube login attempt from IP: $1",$1,"roundcubelogin","5","80,443,2095,2096","300","0");
because Roundcube/webmail can be accessed in different ways. Therefore the ports 80,443,2095,2096 must be blocked for the abuser.

59
If the above "return()" doesn't work then change it to:

Code: [Select]
return ("Failed Roundcube login attempt from IP: $1",$1,"roundcubelogin","5","80,443,2095,2096","300","0");
and test again (we block the ports 80,443,2095,2096 for the abuser).

60
I think to catch the IP address you can use the following regexp:

Code: [Select]
$line =~ /Failed login.*X-Real-IP:\s(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}),X-Forwarded-For/
and the function return should look like:

Code: [Select]
return ("Failed Roundcube login attempt from IP: $1",$1,"roundcubelogin","5","2095,2096","300","0");
Additionally, I think you need to pay attention to "CUSTOM1_LOG", set it to the correct CUSTOMX_LOG.


Pages: 1 2 3 [4] 5 6 ... 15