Recent Questions - Server Fault |
- Apache / Websockets: Direct Sockets to Different (Or To Both) Ports Based On Path - ProxyPass
- Why Volume Bytes Used become so high on AWS Aurora RDS MySQL cluster?
- Removing httpd built from tarball
- How to grep linux word, pipe it into a file , then search for the browers (Mozilla,firefox,safri) and count their output using command line linux?
- Can I create host-specific users in Postgres? (ex: postgres@localhost)
- how to allow POST to php file in apache only from same-origin?
- How to have a multiple port app in the same GKE pod (using cli)?
- Internet access via two wireguard nodes chain
- mount nfs as another folder on home
- Apache2 Virtual Host Proxy Forward
- Docker Registry pull/push 443 only
- How to better understand IPv6 to block requests
- Windows GPO printer deployment not appearing for new profiles
- Kubernetes Pod OOMKilled Issue
- Prevent Windows PowerShell console from flashing up
- Windows server GPO, how to force SSID connection if in range
- Windows Server 2012: easiest way to monitor ports for error 4625 NTLM attacks
- Zabbix text value trigger
- can't set secure_file_priv on mysql 5.7 Ubuntu 16.04
- How To Fix Padding Oracle (CVE-2016-2107) On Ubuntu/Apache/PHP
- How to properly configure PAC file?
- Using Tomcat behind Apache2 Http with different context paths
- Restore deleted exchange 2007 public folder from backup .edb file
- Nginx URL virtual host rewrite issues with Magento e-commerce
- VMM 2012 Error 20552 - For ISO share VMM does not have appropriate permissions to access the resource
- default session file Permits
- exe hangs when scheduled from SQL Agent, but fine when run by user
- How to monitor mysql slow log and send mail to alert?
- CGI error from PHP when running exec() on IIS
- How to recover from "Too many Authentication Failures for user root"
Apache / Websockets: Direct Sockets to Different (Or To Both) Ports Based On Path - ProxyPass Posted: 14 Aug 2021 10:11 PM PDT I am running a website on Apache. I have two apps that use web sockets, one is based on Node, which uses port 3000 and the other is based on Phoenix, which uses port 4000. Both apps also use a reverse proxy. For example, I have something like this: However, I am having problems getting the web sockets to work. I have something like this this set up for the Node app (outside the <Location> context): I developed my Node app a few years ago and everything worked perfectly. However, I am currently developing the Phoenix app, and I don't know how to handle directing the sockets. Eventually, I plan on phasing out the Node app completely, but I need to keep it running for our users until the new app is developed. However, I still need the new app running at the same time on the website so I can develop it. It would be nice to get sockets working on both apps at the same time. |
Why Volume Bytes Used become so high on AWS Aurora RDS MySQL cluster? Posted: 14 Aug 2021 10:09 PM PDT Billed volume storage on our Aurora RDS MySQL cluster went up from 70GB to 1200GB within few hours and it is just not getting down. AWS premium support seems to be clueless. They made us increase version of Aurora RDS MySQL 5.7 from 2.09.1 to 2.10.0 saying that there is some bug in currently used version and that space should become free on reboot. We did the upgrade, manually rebooted the cluster post upgrading but it made no difference to billed volume storage. Space actually used by our application database is 69GB including indexes. Free space in this database is 15GB so total used space should be ~85GB. There are no binary logs, temporary tables, we are also not using replicas (this is a single node cluster).
Timing of the sudden spike on 26th June matches with maintenance window that we set for this cluster (it is our night time when there is no traffic). We suspect something went wrong during the maintenance window. Our application makes no use of internal databases like mysql. There were also no scheme changes made by us. We want to understand what made Volume Bytes Used become so high here and how to prevent it? |
Removing httpd built from tarball Posted: 14 Aug 2021 09:49 PM PDT I need help to remove
After doing some google search, I read I need to delete manually added folder and files I did make |
Posted: 14 Aug 2021 10:02 PM PDT We are looking for a string within quotation marks where the word Linux occurs somewhere between parenthesis which resides somewhere inside the quotation marks. |
Can I create host-specific users in Postgres? (ex: postgres@localhost) Posted: 14 Aug 2021 07:14 PM PDT My QuestionCan I set permissions on a user (ex: Trusted Sockets vs Passwords for RemotesI get that you can initialize postgres to allow local users to login without a password, and remote hosts to login with a password: Intranet vs InternetFor any system that's connecting across the internet I want to use a user that has a very, very strong (non-memorable) random 128-bit string. For local and intranet access, however, I'd prefer to be able to have a username and password that I can remember (and type). Can I do this... or do I just have to set up one user per system that's allowed to connect, with a |
how to allow POST to php file in apache only from same-origin? Posted: 14 Aug 2021 05:55 PM PDT I have a website with a form that, when submitted, successfully sends a POST request to a .php file on the server (Apache 2.4.48). However, when I let Javascript handle the submitting through a JS fetch() request the server responds with a 405 error. So I analysed the request and response headers for the two POST and they are almost identical, so I am confused on why the first method works and the other gets refused. This is the request/response when using the form (the exclamation points are where the fetch() differs): This instead is the request/response when sending a POST through fetch(): Should I change something server side to allow POST requests to that specific file? However, I would like it to receive POST requests only from the JS I wrote and not external entities, but I don't know exactly how to do it. I tried what has been suggested on this answer, but it did not work, the server gave a 500 error. I suppose that it may be because I am on a shared hosting plan and I do not full access to my Apache settings. |
How to have a multiple port app in the same GKE pod (using cli)? Posted: 14 Aug 2021 05:15 PM PDT PresentationWorking on an Elixir Umbrella app (a general app managing multiple app), I included two web app within the main one, each one with its own URL and port (admin.example.com:8081 && www.example.com:8080). I recently deployed the app onto Google Kubernetes Engine, following this tutorial. Though I've had some problems from times to times, I managed to complete it and have one website online accessible (can't access the other). ConfigurationHere is the production Dockerfile as well as the With these two files in hand, I follow this set of commands: I also tried to expose multiple ports I also added the IP in the DNS configuration, so I could try to access the apps through their designated URL (they includes a server which can filter through the URL request). QuestionsSo, here are my few questions as a beginner: Can a GKE pod handle multiple port in one app? If yes, can I do it through the cli, and how? Or do I have to use a configuration file? If not, what is the best way? Two pods, one for the app and the other for the admin website? ObservationThere is actually a similar thread, but it doesn't talk about the GKE command line interface, and the tutorial I followed doesn't explain the configuration of file neither their usage. Would the configuration file be the solution, I have so far no clues about how to write it or use it. Documentation I looked to try to find an answer
|
Internet access via two wireguard nodes chain Posted: 14 Aug 2021 06:06 PM PDT I have the following network nodes, all connected in one Wireguard network.
VPS acts as a server in Wireguard VPN for all nodes because only it has static IP. I use it to access my home network via a cellular connection. It is also configured as a gateway for the cellphone for secure internet access. Is that possible to have internet access on the cellphone via the home router? Like, I want to access sites that are available only in country X while travelling. So the traffic route will be: Let's say obtaining a server with dedicated IP in country X is not achievable. Thanks. |
mount nfs as another folder on home Posted: 14 Aug 2021 03:56 PM PDT I have purchased a WD-Ex2 NAS and am trying to share a folder via nfs with my ubuntu machine. This folder will be used only by this machine and I want to be able to have execute permissions with my user. I would like it to be treated as one more home folder. I am mounting the folder as follows but I don't have execute permissions and the owner is user # 501 not my user I have tried mounting with the following options but when putting Another thing I have tried is to edit Another thing that I have noticed is that the speed of writing and reading starts with high speed, but it decreases considerably while transferring the file in that folder. I do not know what are the recommended parameters to mount it efficiently, I have seen that sometimes buffer sizes are used as parameters |
Apache2 Virtual Host Proxy Forward Posted: 14 Aug 2021 03:47 PM PDT Hi all I am trying to use a virtual host to forward streaming.fusion.tk to my internal emby server form my webserver. I have setup a config file called streaming.conf in /etc/apache2/sites-available/ I enabled the site using sudo nano a2ensite streaming.conf and restarted the apache2 service When I try and get to the site I am not able to access anything. Some help would be appriciated. |
Docker Registry pull/push 443 only Posted: 14 Aug 2021 04:19 PM PDT I've set up a Docker Registry (port 5000), which is then accessible to the internet via Reverse-Proxy (HAproxy) via https (port 443). My reverse-proxy isn't listening on port 80 (for various reasons) - only 443. However, when I try to pull/push images to the registry, I get this error: So apparently it tries to access the registry via http/80 I was able to use the docker login command with Is there any way to access my docker registry without a https-redirect on port 80 of my reverse-proxy? |
How to better understand IPv6 to block requests Posted: 14 Aug 2021 02:44 PM PDT With IPv4, whenever I realize any strange requests coming to my server I can easily block the IPv4 from further requests (I can block on my iptablets, or in my With IPv4 this was not such a big problem because it would be very expensive to own/rotate thousands of IPv4 addresses. Even companies like Linode or Digital Ocean make lots of questions to you if you start adding more than a few IP address on your account (even if you pay for those addresses, they will make you lots of questions like if you are using those addresses to send spam, to DDoS...). So my question is this: in the IPv6 address, is there some "part" or "substring" (that is mostly fixed) that I can reliably blacklist since the other "part" (that changes) is probably from the same person or the same network? Take for example this address: Can I tell, from the address above, that if I block all the IPs containing "2001:0db8:85a3:0000:0000:1111" it will probably come from the same person/computer? Thank you! |
Windows GPO printer deployment not appearing for new profiles Posted: 14 Aug 2021 04:30 PM PDT Old printers that have always deployed via Print Management > Deploy via GPO are now not deploying for new profiles. the only Changes have been to my Settings GPO with regard to PrintNightmare and disallowing point and print... Under Computer>Policies>AdminTemps>Printers>Point and Print Restrictions> Users can only point and print to these servers> disabled Users can only point and print to machines in their forest > disabled When installing drivers for a new connection > show warning and prompt When updating drivers for an existing connection > show warning and prompt But New printers do not appear. If I try to deploy the printer via User preferences (instead of the Print management > deploy via GPO) it complains about the driver not being available on the client PC. |
Kubernetes Pod OOMKilled Issue Posted: 14 Aug 2021 07:01 PM PDT The scenario is we run some web sites based on an nginx image in kubernetes cluster. When we had our cluster setup with nodes of 2cores and 4GB RAM each. The pods had the following configurations, cpu: 40m and memory: 100MiB. Later, we upgraded our cluster with nodes of 4cores and 8GB RAM each. But kept on getting OOMKilled in every pod. So we increased memory on every pods to around 300MiB and then every thing seems to be working fine. My question is why does this happen and how do I solve it. P.S. if we revert back to each node being 2cores and 4GB RAM, the pods work just fine with decreased resources of 100MiB. |
Prevent Windows PowerShell console from flashing up Posted: 14 Aug 2021 08:01 PM PDT CustomApp is registered with a URI Scheme in Windows 10 so it launches when Chrome browser visits CustomApp://userid@departmentid Computer\HKEY_CLASSES_ROOT\CustomApp\shell\open\command Works great for launching the CustomApp but the blue Windows PowerShell console flashes up briefly during execution. How can I prevent it from popping up? I've tried these parameters but the console window still flashes up. |
Windows server GPO, how to force SSID connection if in range Posted: 14 Aug 2021 07:01 PM PDT I have many wifi networks, but only one of these are suitable for domain computers of my windows 2016 domain. Can I setup a GPO to force a particular SSID usage if in the range? Many times I found that users choosed the wrong network and then the wrong ssid became the prefered one. I alread set up a GPO but this just add a profile in the SSID list and does nothing about connection priority. Consider that all SSID signal power are the same because they are broadcast by the same antennas. |
Windows Server 2012: easiest way to monitor ports for error 4625 NTLM attacks Posted: 14 Aug 2021 03:02 PM PDT I'm getting thousands of hack attacks on a Windows server resulting in Security log error 4625 entries. Hackers are using random IPs, so the usual RDPguard, Syspeace, etc. tools don't work. Port 3389 is closed on the server, so I'm surprised at the continued attacks. I'd like to figure out what local ports the attackers are connecting to for their attempts, but all the automated tools I've found only look at IP. And the default Windows server logs also only show IP and remote port, not local port. I know I can manually look at Wireshark logs, but that's labor-intensive. I'd like to find a tool that monitors failed logins and simply corroborates them with the local port, so I know what ports to close. Ideally, this doesn't generate gigantic logs or require constant monitoring; the tool would preferably be triggered by bad logins and collect the port and service info. Any ideas? |
Posted: 14 Aug 2021 06:00 PM PDT I am trying to configure a Zabbix trigger for an external check which has to react if the value returned by the external check is different from : Using Is there a way to configure this trigger in Zabbix? |
can't set secure_file_priv on mysql 5.7 Ubuntu 16.04 Posted: 14 Aug 2021 06:00 PM PDT How do I set a value for I found this which tells what settings may be used https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_secure_file_priv The mysql server starts without any command line options. There is nothing to override its' .cnf file. Running
Only the 2nd file exists. It is the beginning of a symlink chain to I've tried setting values for always returns I've also searched for other .cnf files and tried setting the value for No matter. After making a change, restarting the server, and checking the value with the result What do I need to do to set a value for |
How To Fix Padding Oracle (CVE-2016-2107) On Ubuntu/Apache/PHP Posted: 14 Aug 2021 04:00 PM PDT I am trying to fix CVE-2016-2107. I consulted several sites, which do not seem to provide a clear answer for all cases: I use Apache2 2.4.12 with PHP 5.5.26. I ran: It installed new OpenSSL but Apache/PHP still uses old installation, phpinfo() shows:
Proof new OpenSSL is installed:
Can someone please help me tell Apache/PHP about the new OpenSSL installation? Thanks! |
How to properly configure PAC file? Posted: 14 Aug 2021 09:07 PM PDT I have a squid + diladele proxy box in my network. I have setup a PAC file that should do the following: 1)If the ip address of the client belongs to the current network (192.168.0.0/24) and tries to access a resource outside the network use the proxy. 2)If the client is trying to access an internal resource, give direct access and bypass proxy Here is what I wrote so far Everything works perfectly, however when I try to access a resource on |
Using Tomcat behind Apache2 Http with different context paths Posted: 14 Aug 2021 10:04 PM PDT On our Ubuntu webserver we have a Apache2 HTTP server in conjunction with an JSF application running on an Tomcat8 application server using AJP 1.3 connector and HTTPS/SSL. I want my app which runs on localhost:8009/myApp/ to be accessible from https://subdomain.domain.com (subdomain and domain are palceholders of course). In other words, I want different context paths (/ on apache2, /myApp on tomcat) Now I'm facing the problem that - althougth the welcome-page is accessible - all resources/images/links are broken as they still contain the context path /myApp. I've tried to set up corresponding ProxPass/ReverseProxyPass settings without success. PS: As a workaround, myApp currently runs on the root-context "/" on tomcat, but I want to change that to accomondate multiple web apps. In tomcat's conf/server.xml I have the following connector configured: |
Restore deleted exchange 2007 public folder from backup .edb file Posted: 14 Aug 2021 08:01 PM PDT We are running a stand-alone instance of Exchange 2007 without replication of any kind. We do have nightly backups. A user deleted a public folder, and I need to restore that from one of our full database backups (I have the .edb file). I have tried creating another storage group, but when I try to create another public folder database, I get an error stating there can only be one public folder database. I also tried using the Recovery Storage Group, but learned that is only usable for mailbox restores. My next thought was to spin up a new Exchange VM and somehow copy it over from there, but I'm not sure if that's best...or how exactly to do it. What are my best options? |
Nginx URL virtual host rewrite issues with Magento e-commerce Posted: 14 Aug 2021 03:02 PM PDT I've been running into some problems with my URL rewrites. When I click a link in my Magento back-end it completely messes up the URL. We start with this link: http://icanttellmydomain.nl/index.php/paneel/dashboard/index/key/26f665360ac9f2e3e9b5c69b097fcb6b/ But we are redirected here: It keeps repeating 'index.php' and the URL's path, looping until it gives me a 500 internal error or "The page isn't redirecting properly". I'm pretty sure it has to do with my vhost configuration. I tried commenting: but it didn't do the trick. My Vhost: Thanks for reading! I'm new to all this stuff so take that into consideration in your replies please. |
Posted: 14 Aug 2021 05:03 PM PDT I have included an ISO network share in my VMM 2012 library by:
The problem I have is I still get error the following error regarding permissions:
I have also set the command on the VMM server Any ideas please? |
Posted: 14 Aug 2021 09:07 PM PDT i need to edit the default permits of the session file i know it's high security risk, The default permits is :600 i want set default permits to This is my i've changed the The new results is: it's now WHY? |
exe hangs when scheduled from SQL Agent, but fine when run by user Posted: 14 Aug 2021 04:00 PM PDT I have a SQL Agent job on a clustered SQL 2008R2 server on Windows 2003 Enterprise. It's an Operating System (CmdExec) step, running an executable. When it runs on schedule, the process does start up, and the job shows as running. However, it never completes the job. When i run the executable interactively, i.e. I double click it, it runs and it completes its processing in 10 mins or so as expected. I've monitored the exe with procmon when it hangs, and it logs no errors, it just stops processing (but the exe is still running) I'm 90% sure this is something to do with the user account running SQL agent, and the local security policy. The account has all the privileges I think it needs - log on as service, log on as batch, etc. I think over the testing period I've pretty much assigned it every right in the policy. Any ideas why an exe would run fine interactively but fail with SQL agent? |
How to monitor mysql slow log and send mail to alert? Posted: 14 Aug 2021 10:04 PM PDT I have enabled mysql slow query log on Ubuntu server. I prefer to get the email alert with the slow sql when any slow query appeared so I can optimize the sql. I need a lightweight solution. |
CGI error from PHP when running exec() on IIS Posted: 14 Aug 2021 05:03 PM PDT Windows Server 2003 x64 PHP 5.2 IIS 6.0 The program Ink2Png.exe is set with Everyone->Read and Execute permissions. As does its dependency (microsoft.ink.dll) PHP Safe Mode is off exec() is passed [the full exe path], space, [full path to another file] This other file also has full read permissions. The output directory has full write permissions. As soon as exec() is hit, the connection dies, the browser does not even receive a full set of http headers, and it reports a CGI error. Examining the output, it appears the program was not even run. Any ideas? How can I figure out what exactly is happening and get it running again? EDIT: Also, it is a .NET application, if that is significant in any way. |
How to recover from "Too many Authentication Failures for user root" Posted: 14 Aug 2021 07:12 PM PDT I've done several attempts to establish SSH-connecton for user root@host using putty terminal. While doing so I specified wrong credentials several times and after that I've specified them correctly, and then after the credentials were accepted the ssh session breaks with
This error is reported by putty terminal. When trying to ssh root@localhost from the local console - it works fine. It also works fine when I ssh otheruser@host from other host. So network connectivity issues are not guilty. The only error I am thinking of is: "Too many Authentication Failures for user root" although putty reported a different error. The question is: how to recover from this error condition and let putty login again? Restarting sshd seems to not help |
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 |
ReplyDeletePretty great post. I simply stumbled upon your blog and wanted to mention that I have really loved surfing around your blog posts. Great set of tips from the master himself. Excellent ideas. Thanks for Awesome tips Keep it
topaz-studio-crack
rdpguard-crack
traktor-pro-crack
abelssoft-ssd-fresh-crack