Recent Questions - Server Fault |
- How to define a common location once in NGINX and share it across multiple server blocks?
- Azure NSG Flow Logs not logging as expected
- Blocking API requests from unknown "Origins"
- SSL authentication failed with 403.7 on windows server 2022
- ssmtp don't work and don't want to log
- Create new SubCA certificate fails with NTE_PROV_TYPE_NOT_DEF
- "random" subdomain is shown on invalid subdomain instead of error page [duplicate]
- check_kvm_support script failed to start error when attempting to create VM
- Do you Secure my VPS Server? [closed]
- What is the easiest way to create an image of an existing running Windows 10 or Windows Server system?
- frontend HTTPS access to http backend ngix
- Local Security Authority Process lsass.exe high cpu - not freeing cpu. windows server 2019 [closed]
- VMWAre OVFtool export fails with error "Failed to create directory"
- Samba/Winbind domain member authentication issue
- Azure Stack REST APIs
- How to send notifications to teams using azure devops pipeline?
- Managing Firewall Rules for Azure Analysis Services
- Enable SSL/LDAPS in openLDAP 2.4 on Ubuntu 16.04.5 LTS - ldap_result: Can't contact LDAP server (-1)
- Office 365 In-Place Hold preventing me from deleting user
- Apache HTTPd 2.2 is ignoring LocationMatch regex
- Connecting to remote server failed with the following error message : The user name or password is incorrect
- SSH issue - Disconnecting: Received data for nonexistent channel 0
- Moving a lot of files with robocopy and 7zip
- Test whether mod_security is actually working
- Draytek SSL VPN connection incorrect subnet mask and gateway
- Can not switch drbd to secondary
- Is it safe to set validateIntegratedModeConfiguration=false in order to continue using identity impersonate=true?
- Execute local (bash|python) script with mysql SQL
- backup solution for media company (large files)
- Cheap full-featured .NET 3.5 hosting in India?
How to define a common location once in NGINX and share it across multiple server blocks? Posted: 04 Jan 2022 04:04 AM PST I have several server blocks, each one corresponds to a different domain. All of them share a common location that has the purpose of renewing SSH certificates (for those familiar with this, it's the .well-known route that Letsencrypt uses for that purpose, just in case someone out here already solved this ;) ). I'd like to define this location once and share it across each different server block, but I can't seem to find an appropriate directive in the documentation. Any pointers are deeply appreciated :) |
Azure NSG Flow Logs not logging as expected Posted: 04 Jan 2022 03:43 AM PST incorrect post. Will delete soon. |
Blocking API requests from unknown "Origins" Posted: 04 Jan 2022 03:00 AM PST I have an API that I'd like to block from unknown origins in production. CORS would work when the API is accessed by a website/browser, but how can I prevent it from being accessed from another servers or Thank you! |
SSL authentication failed with 403.7 on windows server 2022 Posted: 04 Jan 2022 02:32 AM PST We have a list of web services & wcf project [Sslprotocols.TLS12 as hardcoded] configured with selfsigned certificates, which will be deployed in IIS & able to access the webservices successfully on the other windows server i.e windows server 2016, 2012, etc... But on Windows Server 2022 [v21H2 OS build 20348.230] with IIS [v10.0.20348.1], we get 403.7 forbidden with access denied error when access the URL via IE on windows server. and the exceptions are when access "https://localhost:8083/adminservice/admin.svc" via httpclient, As the MSDN states that TLS1.3 enabled by default, but the server should be compatible with the older versions if the client requests TLS1.2. Also, there is no registry key for Protocols [TLS1.2, TLS 1.3] when checked the registry keys under SCHANNEL. And added TLS1.2 registry key [client/server] manually & able to access the URL with HTTPS successfully & & **wondering why getting this error when access "https://localhost:8083/adminservice/admin.svc" [without having TLS1.2 enabled registry key] ** Could you please provide suggestions or solutions? |
ssmtp don't work and don't want to log Posted: 04 Jan 2022 02:14 AM PST I've configured SSMTP to send mail, but the problem is that i can't send mail from my webserver and there is no logs in My config : Debian 11, and webserver into a Docker container. This is my config of SSMTP : Into revaliases i've got : EDIT : This is the part in my Dockerfile where I install and configure SSMTP : For information, in CLI i can send emails while i'm on root account. What could be my problem ? Thanks for your help ! |
Create new SubCA certificate fails with NTE_PROV_TYPE_NOT_DEF Posted: 04 Jan 2022 01:45 AM PST I am trying to manually create a key and CSR for a new Windows AD CS Enterprise Subordinate CA (Windows Server 2019). I'd like to store the key in the modern Microsoft Software Key Storage Provider. It fails with The command I use is: The Troubleshooting StepsI checked that the CSP is valid by running It does not have a provider type, but nonetheless, I added I was able to use a very similar config to create my root certificate: The main difference is that with this config, I create a key and certificate instead of a key and CSR. The differences are: What is causing the sudden failure with the config for my sub CA? |
"random" subdomain is shown on invalid subdomain instead of error page [duplicate] Posted: 04 Jan 2022 12:29 AM PST So for example if I enter a non existing qwerty.mydomain.com the content of actual.mydomain.com is shown. I would expect an error page (or redirect to mydomain.com). Does the try_files clause play a role and is it important at which point it stands (order)? mydomain conf: subdomain conf: I have multiple subdomains configured but this is the one shown when an invalid one is used. |
check_kvm_support script failed to start error when attempting to create VM Posted: 03 Jan 2022 11:54 PM PST When I attempt to initialise a VM on Debian 10 instance I am getting an error : I checked virtualization parameters and the instance has Microsoft virtualization (not kvm): I have attempted to enable virtualization as per suggestions but it appears since I have Microsoft I cannot : I have tried the suggested fix command : and retried to initialize the VM but Im still getting the same error. My question - How do I enable virtualization when my underlying virtualization provider is of type Microsoft (and not kvm)? This is my system details : |
Do you Secure my VPS Server? [closed] Posted: 03 Jan 2022 11:44 PM PST 9 Ways To Keep Your VPS Secure These days, the content of web hosting security seems to be everyplace, a concern not only discussed among big companies but also individualities with an online presence. And for good reason. With stolen particular and financial information, client data loss, and destroyed website content, cyber pitfalls are veritably real and shouldn't be taken smoothly. In this composition, we 'll specifically address security measures regarding VPS Hosting, where we 've linked ways to keep yours redundant secure. 1.Change Your Default SSH Login multiple VPS users use SSH or Secure Shell, a system for remote computer-to-computer connection, to log in to their servers. Still, there's a threat of getting a victim of a brute- force attack,If you use an SSH system to log in to your server. When a "brute- force attack" occurs, this generally means someone tries to log in to your SSH using a variety of common passwords. Keep in mind, still, that when you disable root logins without assigning authorized access already, you may lock yourself out of your VPS. 2.Use The Latest Software Versions It goes without saying that the older the software version, the more vulnerable your VPS becomes. Luckily, all it takes is a few clicks of your mouse to run the necessary updates for your operating system (OS). You may also want to consider automating this process. And depending on the OS you use, you'll most likely use apt-get for Debian and Ubuntu or yum/rpm for CentOS to perform system updates. This can be automated by cron jobs, a Linux-based utility that schedules a command or script on your VPS to run at a specified time and date or through your control panel. 3. Cover Your VPS Server Logs Managing your server logs helps you to stay in control over what's passing with your VPS. By tracking your VPS systems and software, you 'll be more set if any issues rear their unattractive heads. When you laboriously cover events, resource operation, business situations, stoner exertion, and software-generated errors, you 're better set to handle the issues at hand. Whether that's precluding or resolving, being apprehensive of what issues are at hand can only help to break them briskly. A helpful tip? Set up dispatch announcements for any warnings and errors so you can follow the events in real time. 4. Set Up Your Firewall You do n't want unwanted business, right? That's why a firewall matters. Most Linux- predicated operating systems havepre- installed firewalls ( suppose iptables, firewalld, ufw, DebianFirewall). This firewall architecture script works to give better security for your VPS while giving you an developed, intuitive interface for managing your firewall settings. 5. Make Sure Your Server Is Malware- defended In addition to setting up a firewall that guards incoming business, you also need to consider covering the lines that have formerly been and are being uploaded to your VPS, just in case any vulnerabilities do.This is also a good way to descry any suspicious exertion and helps you to counterblockade unwanted lines. Luckily, there are plenitude ofanti-malware software operations available, the most popular bones being ClamAV and CXS. Sure, there might be some false positive cases, but as the saying goes, it's far better to be safe than sorry. 6. Cover Against Critter- force Attacks As we mentioned preliminarily, brute- force attacks be when hackers discover weak passwords, giving the bushwhacker full access to your VPS. Unfortunately, it's not enough presently just to have a strong password. You also need tools that can help you descry brute- force attacks and block unwanted logins from passing. cPhulk, a point that's integrated within cPanel is a perfect illustration. cPhulk helps block logins after several failed login attempts and blocks not only cPanel logins but also WHM, FTP, and dispatch- grounded bones. 7. Control User access In the search for VPS security, you may decide how you 'd like control to be distributed. In other words, the fields where your users can operate. Besides setting the different file warrants, you might want to consider taking a look at tools like SELinux ( available with Red Hat Enterprise), which allows you to control process initializations, network interfaces, lines, and file systems along with stoner- operation access. 8. Keep Calm And Perform Backups Not just for VPS Hosting, backups (or better yet, automatic backups) are crucial for every type of hosting. Immaculately, backups should be performed outside the server, just in case commodity goes wrong with your server. Although some providers vend provisory functionality as an fresh service, Namecheap offers server backups for all types ofmanagement.However, we recommend Full Operation for VPS Hosting, If you're interested in offsite storehouse. 9. Use SSL Certificates For Everything SSL certificates help you produce an translated channel between the server and customer to insure that nothing disrupts your sequestration. In order to keep your sensitive data safe, SSL certificates are pivotal to every type of hosting, whether that's transmitting lines, transferring emails or entering your login details. To rightly apply SSL certificates, still, some specialized know- style is needed. In this case, it's worth it to hire a system director to arrange everything for you and give you added peace of mind. |
Posted: 04 Jan 2022 12:16 AM PST For the purposes of, let's say, moving it to a cloud location? I do recall doing it for a client, transplanting them to Azure, but I don't recall how they created an image. Azure simply had an interface to create an OS from an image we were supplying. Windows 10, Windows Server or even Windows 7 - each option would be interesting. |
frontend HTTPS access to http backend ngix Posted: 04 Jan 2022 02:03 AM PST I have a frontend in Angular which support https,while I have a backend at port 10080 which support http. I try a few way of reverse proxy in the ngix configuration file but it still facing the same issues. While I try this method always get the error "Access to XMLHttpRequest at 'https://example.com:30080/api/remoteControl/getactiveusers' from origin 'https://example.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource." Anyone know how to solve this? Thanks |
Local Security Authority Process lsass.exe high cpu - not freeing cpu. windows server 2019 [closed] Posted: 04 Jan 2022 01:17 AM PST Thanks for the reception- why you pepole vote done? if something wrong with my answer please help me and tell me what it is.... Local Security Authority Process lsass.exe high cpu - not freeing cpu. Windows server 2019. .net 4.5 that use advapi32.dll LogonUser method for Perform Impersonated Task... In our server 2016 everything working fine! (left 2016 server right 2019 server) After sometimes the server crashed! And after we recycle pools on iis we can see at event viewer a lot of "Audit Success Logoff" and the cpu get free. Any idea??? HELP! Thanks. |
VMWAre OVFtool export fails with error "Failed to create directory" Posted: 04 Jan 2022 03:58 AM PST I am trying to export a VM using OVFtool running on a windows server I interrogated vi://myid@xx.xx.xx.xx and determined that source path "vi://myid@xx.xx.xx.xx:443/myVM" is valid I have permissions to create target path I tried all conceivable OVFtool options --noSSLVerify --allowAllExtraConfig --noImageFiles without much avail I also ensured there arent amy CD drives on my VMS pointing to images. How do I debug this ? Any inputs welcome Thanks Yogesh |
Samba/Winbind domain member authentication issue Posted: 04 Jan 2022 02:31 AM PST In setting up a new Linux Samba fileserver as a AD member I keep running into an issue with authentication. It appears to be triggered by running with selinux in Enforcing mode after joining AD, but it doesn't go away if I turn off selinux with On the first test VM I set up with the same distro, setup steps and updates it has been working OK consistently, but right now I'm running into this auth issue on and off with the server I'm setting up for production use. This is on Rocky Linux 8.5 and Samba 4.14.5 smb.conf mostly has default settings in [global] and I setup a public [testshare] domain join was done with Kerberos auth keeps working OK This one also works But the following fail The last one spits out this: The audit log normally does not show any AVC denied errors. I tried turning off the dontaudit rules and allowed the AVC denied messages that turned up but that didn't help. Do I need to give up on selinux to get this stable? Any other tips? |
Posted: 04 Jan 2022 02:09 AM PST We are looking for Azure stack Resource REST APIs. we want to handle Azure stack Resources like Resource groups, Virtual machines, Vnet, Subnet, etc. using REST APIs, can anyone point us to any link or document so where we can get all these APIs. |
How to send notifications to teams using azure devops pipeline? Posted: 04 Jan 2022 02:12 AM PST I saw there is a teams app for azure pipelines and while adding that it is asking for complete pipeline access to the group we add to. Instead of using this, I just want to send notification to a teams group or individual users that build is successful or failed. Can anyone please guide how to do that. May be any pipeline step at the end also feasible. |
Managing Firewall Rules for Azure Analysis Services Posted: 04 Jan 2022 03:39 AM PST My customer (a legal firm) has an Azure Analysis Services database. Access to the model is tightly controlled to prevent leakage of confidential data. Employees who need to access the model whilst working from home can only do so if their public IP address has been whitelisted by adding a firewall rule to the server. However, the company VPN software (which is always on and cannot be disabled by users) assigns a new IP address each time they log on, which means the firewall rules need constant updating. Is there an easier to maintain/update the firewall rules in such a scenario? I don't know the specifics of the VPN software, so not sure to what extent it can assign the same IP address to each user. |
Enable SSL/LDAPS in openLDAP 2.4 on Ubuntu 16.04.5 LTS - ldap_result: Can't contact LDAP server (-1) Posted: 04 Jan 2022 03:06 AM PST I have the following Problem and googled for weeks now. Because I´ve really no clue where the problem is I´m asking my question here with the hope to find some ldap or ssl genius :) I have a working openLdap Server with a stand alone client maschine (both running Linux Ubuntu 16.04.5). The connection works fine. Now I´d like to secure the conection using ldaps. First I´ve changed the SLAPD_SERVICES in
from Then I´ve created an own CA with a self signed Certificate and an ldap-server key, csr and crt (signed by the CA I´ve built). I´ve added my own ca.crt to the trusted certs by copying it to
and executing this command:
I´ve copied the ca.crt, the ldap.key and the ldap.crt to after I´ve done this I followed the tutorial (https://www.server-world.info/en/note?os=Debian_9&p=openldap&f=4) to create an mod_ssl.ldif #
# After creating the ldif I´d wanted to add it to my config using this command
The output of this command is: # After this command my slapd was dead. (--> Checked open ports bevore executing this command with Restarted slapd with I enabled logging of slapd with loglevel -1 For my understanding the logs are totally clean and showing no Issues.
And last but not least.. Here is the output of my
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:636 0.0.0.0:* LISTEN 1535/slapd tcp 0 0 0.0.0.0:389 0.0.0.0:* LISTEN 1535/slapd UPDATE: I´ve configured my ldap-client maschine to use ldaps (bevore configuring ldaps everything works fine via ldap :389)
I´ve restarted the client maschine and opened a tcpdump on my ldap server listening for the ip of the client ans all connections for the portrange 389-636 I hope someone knows my problem and can help me :) Kind Regards Tabby |
Office 365 In-Place Hold preventing me from deleting user Posted: 04 Jan 2022 02:00 AM PST I am using AD Connect to synchronize my on-premises Active Directory to our Office 365 tenant. I tried disabling a user from on-premises and then synchronizing to O365. However, it seems to have broken everything because nothing is synchronizing any longer and the user still exists in O365. When I open the user properties in O365 admin, I see the following error:
If I try to run
I can't find any In-Place Hold policy active and I can't seem to be able to delete this user. I even tried running
|
Apache HTTPd 2.2 is ignoring LocationMatch regex Posted: 04 Jan 2022 01:03 AM PST I am trying to create a Reverse Proxy that match every URL except one in Apache 2.2. It works on Apache 2.4 (Centos 7), but not in Apache 2.2 (Centos 6.6) ... My server is looking for /var/www/html/my-website (that doesn't exist) when I type https://my-server.com/my-website because the regex doesn't match ^/my-website(?!/redirect) I know that Apache 2.2 doesn't understand every negative PCRE regex but it seems that some tricks exist... See :
Then, I try a simple regex : ... and it appears that is not even interpreted as PCRE ... With this use case, if I type /my-website(.*) in the URL, it works. Same behaviour with (From http://httpd.apache.org/docs/2.2/en//mod/core.html#locationmatch) : ... I need to type http://my-server.com/(extra|special)/data in the URL bar of the browser. Does Apache HTTPd 2.2 need an additionnal package to understand PCRE in LocationMatch ? Installed packages : Weird ... Thanks |
Posted: 04 Jan 2022 04:05 AM PST I am trying to connect PowerShell remotely to an Exchange server. This is to a separate AD Domain. (Connecting domainA to domainB) I can connect from domainA to servers on other domains just fine. I receive the following error: This isn't specific to this server, I get the same results to two other servers in the same domain. My username is in UPN format I've also tried connecting to domainB from other domains and receive the same results. I assume there is a permission somewhere that needs to be set, but I'm not sure what.
I can RDP in with the same credentials no problem, so I know my credentials are valid. I'm also a domain admin. Servers are Windows 2012 R2. PSRemoting is enabled PSSessionConfiguration In addition, I tried remoting from a server in domainB to server1.domainB and it works fine. So it has something to do with connecting from outside of the domain. Removing wsman trustedhosts - Added FQDN of client to server. Added FQDN and IP of server to client. No change. What do I need to fix to be able to remote in here? |
SSH issue - Disconnecting: Received data for nonexistent channel 0 Posted: 04 Jan 2022 02:44 AM PST The log below is from SSHD server when SSH client is trying to connect. I'm sure that I have correct ssh key. I just compared two RHEL5 servers. As I red, this means that server closed the connection for some reason. But any suggestions how to try to solve the issue and find the root cause? OS: RHEL 5.11, SSHD service: default |
Moving a lot of files with robocopy and 7zip Posted: 04 Jan 2022 02:00 AM PST With the help of StackOverflow and a number of other places I've created the following script, the purpose is to look at a folder and it's subdirectories, if the files are older than 32 days -> move them to another folder and zip that folder. If the zipped folder is older than 366 days, delete it. I believe the script works well on a smaller scale with a couple hundred files but the issue I'm facing is there's now 12 months worth of data in these directories that I now need to analyse. There's about 8 folders and an average of 500,000 files in each all around the 1kb - 2kb in size. Additionally I'm expecting to have an issue where all the files from the last 12 months will be added to the same archive, rather than an individual archive for each date. What are my options for optimising this? I understand I have probably done this incorrectly. Script below: |
Test whether mod_security is actually working Posted: 04 Jan 2022 02:39 AM PST I'm running this on my staging server for the first time and I think I did everything correctly. I can see entries in modsec_audit.log when I run nikto2 against it, but for the life of me I can't manually make mod_security block anything. I've dropped SQL into URLs, into forms, etc and I just got our typical user friendly HTML 404 page, not a block from mod_security, which should be a 403 error or an outright block. I'm worried that its only detecting and not stopping. I've checked my config and its definitely set to stop attacks not just detect them. Any idea on how I can verify this thing is actually blocking attacks? Anyone have a test URL or something I can do that will prove to me that its actually working? |
Draytek SSL VPN connection incorrect subnet mask and gateway Posted: 04 Jan 2022 01:03 AM PST I have remote machine connecting to our office lan through a draytek 2930 router in our office with a fixed IP (FW3.3.0). I have set it up to use SSL VPN with Draytek smartvpn client software on the remote machine connecting with a username and password. The smartvpn connects successfully to the router giving a green vpn light and status connected on the client. The router shows the connection as well. ipconfig /all on the remote machine is below. The question is why can I not ping any other work machine other than the router 192.168.10.1? ultimately I want connect to intranets and via samba to local shares but lets start with ping. I suspect it is to do with the subnet mask and default gateway being incorrect on the drayssltunnel adapter but I don't know where to set them. The IP address comes from the routers inbuilt DHCP server but I can't see where to specify the subnet mask or gateway for vpn connections. Thanks, Adrian |
Can not switch drbd to secondary Posted: 04 Jan 2022 01:18 AM PST I'm running I can't switch my drbd to secondary. My Status of ocfs2 status:
And it's a dead symlink: Notice that this process is wrapped in square brackets: So, the final question is: how can we manually recover DRBD in this case without rebooting? Reply to @andreask: My partition table: The device names: Pay attention to the block device ( Reply to @Doug: UPDATE Fri May 17 16:08:16 ICT 2013 Here are some ideas from Lars Ellenberg:
I'm sure, OCFS2 was already unmounted.
No, NFS was not involved.
As you can see from my above output, LVM doesn't related to DRBD:
No, it doesn't.
I have disabled the
If so, how can we find out this unix socket? UPDATE Wed May 22 22:10:41 ICT 2013 Here is the stacktrace of DRBD worker process when dumping via magic SysRq key: I'm not sure if this OCFS2 heartbeat region is preventing DRBD from switching to secondary: |
Posted: 04 Jan 2022 03:06 AM PST We have upgraded an ASP.NET web application from IIS6 to IIS7 integrated mode. Our application uses: and therefore we have had to set: Is this sensible? My instincts say not, but searching on google for this issue, this "workaround" is suggested on every page visited. Is impersonation no longer a good practice in IIS7 integrated, and should we abandon it and come up with a different solution? |
Execute local (bash|python) script with mysql SQL Posted: 04 Jan 2022 04:05 AM PST I want to create a trigger so that when a field is updated it kicks off a local bash script (or python...whatever) to kick off a workflow (emails, work requests, etc). Is it possible to execute local system scripts/executables from mysql SQL? My google searches have been unsuccessful. |
backup solution for media company (large files) Posted: 04 Jan 2022 03:39 AM PST I am working as a webdeveloper in a media company (around 25 employees) and I am not very happy with our current backup solution. I am no expert on this, but I am pretty sure the current setup is BS. What is our current setup? Well, we have a fileserver with a 500 GB HD (sic!). If one remembers, one manually makes a .zip files and puts it on that server. Thats about it. Apart from the very small HD, nobody bothers making backups, maybe once a month. I think my boss has not backed up her data for maybe 3 months... I would very much like to have an automated solution that creates a backup from all important files at night and... stores it somewhere. The problem is: the backups can be quite large. As a developer I mainly work with text based stuff, so my backup including email etc. is around 7 GB. But the designers working in that company have backups in the size of 50 - 100 GB (already zipped). And there are at least 5 - 10 of these large backups. Because of data loss recently I am pretty sure management would be willing to spend some $$$ on this if someone could come up with a good plan. So, what would be a viable solution for a company of that size? Everbody in the company is working on OS X, if the operation system matters. |
Cheap full-featured .NET 3.5 hosting in India? Posted: 04 Jan 2022 02:40 AM PST Anyone aware of good full-featured .NET 2.0, 3.x hosting on Windows Server 2008 in India? Links would be appreciated. Suggestions for either co-located / dedicated hosting welcome. |
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