Recent Questions - Server Fault |
- Reverse DNS and Apache virtual host
- How to configure NGINX as proxy for local SMTP server?
- Redirecting HTTP to HTTPS without DNS or static IP
- Kali VM IPTable not loading
- >150Million records insert select query canceled after 12 hours AWS RDS
- How to stop the swatchdog scipt running in the background?
- Where is the client.conf file located on a MacOS client for OpenVPN?
- Hp can i plug into a wall socket?
- What AWS S3 actions produce Decrypt events in CloudTrail?
- DL360 G9 fans run when powered down?
- Separate connections over 1 network cable
- Need help connecting Old USB Harmon/Kardon SoundSticks and new 2021 Dell XPS laptop
- ClamAV not creating sock file
- Google Cloud Certificate provisioning_failed but domain active - Serverless NEG
- Create my own proxy server by using AWS Linux EC2 instance, Error: The connection has timed out
- Unable to User Enroll iOS devices
- SMB3 mounted on linux / Debian - qemu-img Failed to get "resize" lock
- RDP farm automatic session reconnect
- Azure load balancer does not forward HTTPS requests to Servers
- rewrite rule on nginx for css js files not work
- Zabbix and logrt.count doesn't get data
- AD Connect changed primary SMTP on O365 - how to fix it?
- Getting IP address like "10.8.0.33/-1" when setting static IP address with OpenVPN
- Powershell take ownership of AD Objects
- PXE boot cannot find syslinux config file, where is it looking?
- Check `Restore on AC/Power Loss` from CMD/Powershell on windows 10
- Telnet: Unable to connect to remote host: Connection refused (Postfix - Ubuntu 14.04 VPS)
- php-fpm stuck at state: Finishing
- Get filename in the case stored on disk?
- Any experiences migrating from MDaemon to MS Exchange Online?
Reverse DNS and Apache virtual host Posted: 03 Apr 2021 09:46 PM PDT In short: Apache's VirtualHost doesn't work as intended when the reverse DNS is enabled. I'm managing a web service on a single CentOS server. It has a single IP address and multiple subdomains, and each subdomain has a different webroot setting by Apache's VirtualHost configuration. The *.conf file is located under /etc/httpd/conf.d. The objective of this is to control incoming access like this:
Simple enough. It had been working without any problem until I enable reverse DNS of this IP address to reduce the risk of treated as spam when the system sends emails. After the reverse DNS was enabled for the IP address and main-domain.com, access via main-domain.com is not referred to I guess some configuration's priority issue here, but I couldn't find any document explaining clearly about this. How can I make it work with the reverse DNS enabled? Apache version is 2.2. |
How to configure NGINX as proxy for local SMTP server? Posted: 03 Apr 2021 09:46 PM PDT I am doing some testing with the NodeJS smtp-server module. It exposes a listening SMTP server on any specified port. SMTP usually runs on port 25, but in order to run the Node app as a non-root user, I am prevented from binding to ports below 1000. Since I am already using nginx on this machine, I thought the simplest way to get around this would be to bind the server internally to a higher port, for example, 2500. Then use nginx to proxy the SMTP port (25) and directly pass through traffic to the internal listening port. How can I configure nginx to proxy/passthrough incoming SMTP connections on port 25 to the port on which smtp-server is listening? In this case, incoming TCP connections on port 25 should be directly forwarded to localhost:2500. Note that the smtp-server app already handles SMTP authentication, TLS, etc, so nginx should not attempt to do those operations. It should just pass the traffic directly through. |
Redirecting HTTP to HTTPS without DNS or static IP Posted: 03 Apr 2021 10:04 PM PDT I've setup web servers in the past, but now I'm working on an embedded Linux project that is a bit different. I need the embedded Linux device to
I'm a bit unsure how to do an HTTP to HTTPS redirect. What makes it tough is that I will not know the DNS or the IP. Is there a way for the mod-rewrite to dynamically detect the current IP and redirect to HTTP like this: Most of the traffic will be from the internal LAN, so I can't do some sort of firewall magic. If anyone else has any ideas to achieve this I would love to hear suggestions. It's a bit different than the way you'd ever want to setup most servers, so it has stumped me for the moment and most docs don't prepare you for this sort of use case. |
Posted: 03 Apr 2021 09:27 PM PDT I added these rules to my input table on my Kali VM but now its not showing my IPtable or letting pings go through. My ssh still runs through my host machine no problem though. iptables -A INPUT -i eth1 -s 10.0.3.0/24 -j ACCEPT iptables -A INPUT -i eth0 -s 10.0.2.0/24 -j ACCEPT iptables -A INPUT -i eth2 -s 192.168.0.0/24 -j ACCEPT iptables -P INPUT DROP |
>150Million records insert select query canceled after 12 hours AWS RDS Posted: 03 Apr 2021 09:08 PM PDT I have a AWS RDS t2.micro storing over 150 million records in a table from which i need to make a select insert query to another table, the purpose of this select query is to make a percentage calculation into second table. I tested this query in a testing db with less than 100 rows(same t2.micro) and it ran correctly. I think the query is being canceled because of the t2.micro capabilities. I'm considering upgrading the RDS from t2.micro to r6g.large, but im not sure if this will solve my problem, any suggestions? |
How to stop the swatchdog scipt running in the background? Posted: 03 Apr 2021 08:43 PM PDT Under Ubuntu 20 I have installed Swatchdog and started five daemon processes (running in the background). Now I wanted to stop the script, so I used However, as I could notice, this did not remove the background processes. What is the command to remove the swatchdog processes? I used I also found PS: I guess a server restart would work. But I like to do it without restart. |
Where is the client.conf file located on a MacOS client for OpenVPN? Posted: 03 Apr 2021 08:34 PM PDT I want to follow the advice of the following SO response.
However, I can't seem to find the |
Hp can i plug into a wall socket? Posted: 03 Apr 2021 06:08 PM PDT Hp bought new hp server,says warranty void if I plug into a wall socket !why not?what would happen?Since it has 2 redundant 800 watt power supplies,I'd need a ups of at least 1600 or better! So...why can't I plug it into a wall socket or power bar? Stupid setup!backup idea is great,but having to have a ups to boot server is stupid!ps having to have a "reputation"to ask a question is stupid! David |
What AWS S3 actions produce Decrypt events in CloudTrail? Posted: 03 Apr 2021 05:16 PM PDT What are all of the possible S3 actions that can produce a "Decrypt" event in CloudTrail? |
DL360 G9 fans run when powered down? Posted: 03 Apr 2021 04:54 PM PDT So I just setup a DL360 Gen 9... when the main server is switched off (but its still plugged in, so can access iLO etc.) The fans still run... They are not meant to right? I have had older gen servers and when powered down the fans all stopped. Can't find any info on it - any one have any ideas or do the newer ones actually do that? |
Separate connections over 1 network cable Posted: 03 Apr 2021 06:22 PM PDT Consider the following network setup Now the issue is there is only one cable run from the roof to the network rack on the ground floor. To get 2 connections out of this I have split the CAT6 cable up into 2x100 MBit using 4 wires each. So the network is as follows:
Now I can't say I really like this setup very much. The reasons this is set up this way is
So the question is: Can I achieve those goals without splitting the cable up into 2x100MBit, e.g. using a |
Need help connecting Old USB Harmon/Kardon SoundSticks and new 2021 Dell XPS laptop Posted: 03 Apr 2021 06:05 PM PDT I have some old USB Harmon Kardon SoundSticks that work fine; they were tested with other Windows and Mac laptops, a Windows PC, and even my Android phone (with a USB adapter)! I have a new Dell XPS laptop running Windows 10 with all of the current patches as well as Dell's firmware updates. I am unable to get the XPS and the SoundSticks to play together. FWIW, I have an HDMI monitor with speakers which works fine. The laptop plays the confirmation sound when I plug the SoundSticks into a USB port (using the adapter that comes with the laptop that was used when testing with my Android phone). I can see the sound sticks under Sound, video and game controllers in the device manager. When I run speccy (hardware monitor tool) I can see the Harmon/Kardon Soundsticks listed under Audio->Sound Cards The SoundSticks do not appear in available playback devices under the speaker icon in the windows taskbar so I am unable to select them. Any help would be most welcome! |
Posted: 03 Apr 2021 10:02 PM PDT Problem: ClamAV not creating sock file
I added group/other write permissions on /var/run/clamav, As well chowned clamav:clamav /var/run/clamav. But on reboot my added write permissions were gone and same was re chowned to root:clamav by system. And no socker entry in logs, neither socket file too. WHY? Info: Server Info AWS Micro RAM 1GiB SWAP 4GiB Linux Ubuntu 20.04 Server |
Google Cloud Certificate provisioning_failed but domain active - Serverless NEG Posted: 03 Apr 2021 07:15 PM PDT
I believe certificate generation for the api subdomain is my issue and perhaps I may've hit rate limits. I need this sub-domain working ASAP. How can I get this moving quick? Best Ukor |
Create my own proxy server by using AWS Linux EC2 instance, Error: The connection has timed out Posted: 03 Apr 2021 09:53 PM PDT I have tried to create my own proxy server by using AWS Linux EC2 instance. I followed the steps from this article and this article. (Here is all the details and screenshots of steps) But after create the instance and configure the Tinyproxy and then configure browser to this proxy, it shows me an error. When I open the browser and try to search, it shows me that |
Unable to User Enroll iOS devices Posted: 03 Apr 2021 09:37 PM PDT I'm trying to get iOS User Enrollment to work with Intune. I have done the following:
I have tested the enrollment process with two users on two devices. Here are the results: Device #1: Device has been in use by user for over a year. Installed Company Portal app. Signed in to MS account via Company Portal app. Agreed to download configuration profile. Activated configuration profile in Settings app. Asked to sign in to Managed Apple ID. Email field is greyed out and can't be changed, user must sign in with the same email address as their MS account. User enters same password as MS account. User informed that their credentials are incorrect. Device #2: Device has been factory reset due to exited employee. Set up as new device. Created new Apple ID. Installed Company Portal app. Signed in to MS account via Company Portal app. Agreed to download configuration profile. Activated configuration profile in Settings app. Agreed that company will have control over device. Device enrolled successfully. But it appears to be Device Enrollment, not User Enrollment. The user was not asked to sign in to a Managed Apple ID. Tested by using "Wipe" function in Intune. Device fully factory reset, including personal data. Does anyone have any suggestions of what I could be doing wrong? |
SMB3 mounted on linux / Debian - qemu-img Failed to get "resize" lock Posted: 03 Apr 2021 08:16 PM PDT I have a Windows 2016 SMB share mounted on a Debian 10 box. I am using qemu-img to convert an image file the target of which I wish to store on the SMB mount. When I run the command I get this error: error while converting qcow2: Failed to get "resize" lock This suggests that either qemu-img is misinterpreting the lock on the mount or that there is something incorrect with the mount itself. I note that qemu-img does not seem to support stdout, which is extremely frustrating! Are there any tunables I can use to bypass this error? Thanks! |
RDP farm automatic session reconnect Posted: 03 Apr 2021 07:05 PM PDT We have a RDP farm with 100+ users who are using Windows 10. Sometimes we have network problems like short network outages and packet losses. When network problems occur users are disconnected from RDP session with error: However when I am logged on random server (not member of RDP farm) and network problems occur - I have window that says: In connection properties of RDP when connecting to RDP farm the checkbox Reconnect if the connection is dropped is checked and grayed out: Why RDP doesn't try to reconnect itself in RDP farm and looses connection immediately? Are there any settings that control this behavior? Sometimes users are forced to manually reconnect to RDP farm several times per hour if network is unstable. If there is no such setting may be there is at least timeout setting that I can configure for higher values so that RDP session survive short network outages? |
Azure load balancer does not forward HTTPS requests to Servers Posted: 03 Apr 2021 04:01 PM PDT I have 2 VMs behind a load balancer on Azure. I have enabled HTTPS connection for the Websites i have deployed in those VMs using self signed ssl certificate. When I connect to that VM directly via IP I see the certificate loaded, but when i try to connect through load balancer over HTTPS, I get a page which specified "Your connection is not private" (as it is self signed certificate) and in Advanced i click on "proceed to site". For VMs it works, but when i use load balancer IP it will load the same page again and again specifying the same error. I couldn't find much material for implementing HTTPS as well. i implemented based on my understanding of Azure load balancer. Also can i achieve HTTPS using load balancer or do i need to implement Application Gateway? Privacy Error:
|
rewrite rule on nginx for css js files not work Posted: 03 Apr 2021 09:03 PM PDT I use laravel framework for my website on nginx server I need to apply rewrite rule on nginx its a sample: and I need to know How can I define rule to do it? my website root path is root directories: in my old server with apache .htaccess: I test this but not work: |
Zabbix and logrt.count doesn't get data Posted: 03 Apr 2021 05:08 PM PDT I'm running I've created a custom item with the following syntax: I'm trying to detect any log file in the format But no data is gathered with this item, even though there are some files in the directoty which does contain the word. Is there a way to manually run and test item on server with Zabbix agent running? |
AD Connect changed primary SMTP on O365 - how to fix it? Posted: 03 Apr 2021 07:05 PM PDT I've got a problem with AD Connect working in one of our customers systems. We first configured O365 and Exchange Online, then connected AD with AAD with AD Connect. when we did that, the local AD changed the primary SMTP for users, and we can't change it from O365 (it says, it has been configured by local AD service). Basically, the email address should be like john.smith@domain.com and username should be jsmith, but the system changed primary SMTP to jsmith@domain.com (which should be an alias). According to what I've been able to determine with customers IT team, the attributes in AD look ok (although I'm not 100% sure about that). The biggest problem is that I don't have an access to local AD at my customers environment, so I'm sort of working blind here. What should I look for? How to fix it? |
Getting IP address like "10.8.0.33/-1" when setting static IP address with OpenVPN Posted: 03 Apr 2021 08:06 PM PDT I'm trying to build an internal network with OpenVPN. Many services require static IPs so I referred to this However after configuring, when I tried to connect, the client displayed the following error: I can see that the client got an IP address "10.8.0.33/-1", which is invalid. Any ideas? All kinds of help would be highly appreciated. |
Powershell take ownership of AD Objects Posted: 03 Apr 2021 08:06 PM PDT I have a list of users, computer, and groups that random people are the owner of in AD. I'd like to clean them up for security reasons and just make domain admins the owner for all these objects. Can someone assist with a powershell script for this? I google searched without any luck. I found this old code but it doesn't seem to work, keep getting an error for the owner. Running as a domain admin, win10 machine. e.g. Running Also would like to have it run through a txt file with all the objects' samaccountnames, once I get the base script running. Thank you for any help, Fred |
PXE boot cannot find syslinux config file, where is it looking? Posted: 03 Apr 2021 10:01 PM PDT I am running a PXE server mock up in VMware Workstation. I have the DHCP and TFTP servers working and I can get my to grab an IP address and boot the firmware for their platform. Where I seem to be running into trouble is all clients are failing to find the configuration file for syslinux. I intend on using multiple platforms so I have each platform in its own folder. This is the error I am receiveing from the clients; From what I have read on the syslinux wiki it says the bootloader will try looking for a config file in a specific order. I am pretty sure its something to do with my configuration that is causing the failure. The issue I am stumped on what it would be. Since my each platform has its own folder I am think the context of `/mybootdir' has changed. The question is to what? You can see in the file tree I tried making a symlink as a workaround but it did not seem to make any difference. Any ideas what is wrong? UPDATE Here is what my DHCP config looks like; I copied some of it from a few examples I found on how to boot different platforms from the same DHCP scope and made it my own. |
Check `Restore on AC/Power Loss` from CMD/Powershell on windows 10 Posted: 03 Apr 2021 10:16 PM PDT I've set the Restore on AC/Power Loss from the windows Bios menu on computer startup for a few Windows machines. How can someone confirm (remotely) that I have done that, is there a way to do this from a remote desktop? Bonus points if you know how to change it remotely (if it can be done). What I've done:
|
Telnet: Unable to connect to remote host: Connection refused (Postfix - Ubuntu 14.04 VPS) Posted: 03 Apr 2021 09:03 PM PDT I have installed I looked at this answer of ServerFault but it couldn't help! Any clue how to fix this (or a link to another tutorial), I've been trying to install a servermail on my VPS for a week now, cannot get it to work! |
php-fpm stuck at state: Finishing Posted: 03 Apr 2021 05:08 PM PDT The site use nginx+php-fpm. Today, accessing some pages returns 502 state in a few seconds (different from 502 caused by php script timeout), while other pages stay in service. Status page of php-fpm shows all processes are I'm wondering why this happened, although it becomes well after I restart the |
Get filename in the case stored on disk? Posted: 03 Apr 2021 08:40 PM PDT I have a file ...then it returns "ReadMe.txt". I want to find out the actual name of the file on disk, including case. How do I get it to return "README.TXT"? I ask because I'm trying to track down a problem with case-insensitive filenames on Windows versus case-sensitive files on a Unix box, and I want to get the actual case used on the Windows box. More detail: I have a list of files (stored in a |
Any experiences migrating from MDaemon to MS Exchange Online? Posted: 03 Apr 2021 10:01 PM PDT I will probably be moving from MDaemon to Exchange Online shortly - MDaemon's interface to Outlook is just too slow for remote users. Does anyone have any experiences with the migration that they would care to share? I have 100 users on MDaemon, some with >4Gb mailboxes, most of them are using IMAP. |
You are subscribed to email updates from Recent Questions - Server Fault. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment