Recent Questions - Server Fault |
- My Ubuntu server keeps losing its internet connection while the LAN connection works fine
- How to activate async option on NFS V4 Debian
- Use Nginx for audit logs
- error: can not detect sig_atomic_t size on cofigure step for make in ngx_http_proxy_connect_module on some computers
- Wireguard won't tunnel all traffic to server
- Benchmarking AWS outbound Internet bandwidth (egress) "up to 25 Gbps"
- How to hide restricted nginx subdomains?
- CloudFront gives 403 error when accessing a web app hosted outside AWS through the configured subdomain
- finding and enabling LAN DNS
- Reverse IP lookup with docker?
- Why would cloudinit resort to using iid-datasource-none?
- JDK Mission Control vs Flight Recorder
- How does dovecot performs the hash comparison process without using salt in password
- Use nginx location blocks with Shinyproxy
- .htaccess mod_rewrite not catching all RewriteRules
- How does F5 Bigip packets route inside/among its route domains?
- How to Pre-seed Salt Minion's Archives
- esxi upgrade - Upgrade VIB(s) "loadesx" is required for the transaction
- Some emails show blank on Squirrelmail
- Is there a good way to shrink disk usage of sparse file containing luks-encrypted btrfs file system image?
- How to write a sparse Linux (EXT4) disk image without writing gigabytes of zeros?
- win10 how to encrypt single file, right click folder encrypt invalid recovery certificate
- Add-NetNatStaticMapping not port forwarding to local VM
- server can't find 2.0.9.10.in-addr.arpa: NXDOMAIN
- negative WMI-Filter for security filtering in GPO
- Nginx Redirect all JPEG URL to single JPEG
- Apache 2.4 with PHP-FPM and ProxyPassMatch for PHPMyAdmin, is it secure?
- Troubleshooting kerberos problems with Samba
- Troubleshooting Redmine (Bitnami Stack) performance
- Upgrade cURL to latest on CentOS
My Ubuntu server keeps losing its internet connection while the LAN connection works fine Posted: 23 Feb 2022 01:47 PM PST I have an Ubuntu server that has two ethernet connections. One goes to a wall port to a campus network, and the other goes to a LAN switch. While working from home, I will occasionally get disconnected from the server and attempts to reconnect time out. I can connect to another server on the LAN, and then from there ssh into the server. Once logged in, the internet connection can be restored with this command (left by a previous member of our team): This works great, until it happens again, sometimes within an hour, sometimes not until next week. Does anyone know what is happening, and how to permanently fix this? |
How to activate async option on NFS V4 Debian Posted: 23 Feb 2022 01:43 PM PST Performance with NFS writes is absolutely dreadful (52sec for writing 10 small files) EDIT: I tested with the generation + write of a dozen thumbnails (for the same 500KB source image, of course), originating from two client servers:
(server and home computer are in western europe, debian client is in eastern usa) The performance impact is not caused by WireGuard, as I ruled out this possibility by also mounting the NFS drive using the public IP of the NFS server (therefore bypassing WireGuard), and the result was exactly the same. Here is (I skipped the part with my home computer public IP address as it is the same options) Maybe I should add that I followed a tutorial that advised to use a And here is how I mounted the NFS drive on the client: Please notice the presence of the And the result of Here, as you can see, the Why is the option not saved? I really need the performance to be better than 52 seconds for transferring 1 lousy MB of data... (of course, using rsync to upload/download files is super fast, which means it's not caused by either the internet connection between any of these 3 machines or by the NFS server drive write speed) Another weird thing is that my files are around 100KB each (some are less, some are more), and I spent hours searching the internet, but to no avail. Maybe I don't use the right keywords, but "nfs async debian" seems fine... The performance on Ubuntu is still not good enough, I would accept a 1s delay maybe for using a network drive (especially with async), but not 6 seconds. But the performance on Debian is just unbearable... I wonder why there is so much difference. Just for the record: (for both Debian and Ubutun) Thank you a lot in advance, I am really at a loss here! Best, |
Posted: 23 Feb 2022 01:30 PM PST I have a sensitive webapp used only internally. I want to log all the actions of my users for 90 days. To achieve that, I'm using a nginx reverse proxy that forwards all the requests to the webapp. I have the following configuration But I'm only getting logs like this, without the JSON body of the requests What is the best way in 2022 to use Nginx for audit logging ? Is there any better tool to achieve that ? |
Posted: 23 Feb 2022 01:35 PM PST I followed steps from https://github.com/chobits/ngx_http_proxy_connect_module And getting https://trac.nginx.org/nginx/ticket/1539#no1 was already applied. But on others servers its works, what is the reason of it? How to fix it? |
Wireguard won't tunnel all traffic to server Posted: 23 Feb 2022 12:21 PM PST I'm having a heck of a time getting WG to tunnel all my traffic back to the server. I thought it would be a simple one line process, but it isn't. I've installed the latest version, removed, reinstalled, done just about everything. iptables changes are made in the server, too, but it isn't even getting that far. It's just not routing to wg0. If I try to manually add the route, it says it's already there. What am I missing? |
Benchmarking AWS outbound Internet bandwidth (egress) "up to 25 Gbps" Posted: 23 Feb 2022 12:34 PM PST We conducted our tests on We ran UDP tests with On the server side: On the client side: (sending 5 streams of 500 Mbps each, every second for 1 hour) After a few minutes (depending on previous usage), the bandwidth will collapse to 250 Mbps, and 90% of packets will get lost. Yes it's 1/100th of the advertised bandwidth. Has anyone experienced similar behaviour? Are you aware of other limitations at the VPC level, rather than per instance? |
How to hide restricted nginx subdomains? Posted: 23 Feb 2022 12:35 PM PST To hide a restricted location, e.g. one could set to make impossible to distinguish a non-existing location (404) from a restricted one (403). Is there a way to perform a similar spoof for subdomains? I want https://admin.example.org/, which normally returns 403 if not visited via VPN, to show the same of https://nonexistingsubdomain.example.org/, e.g. a .html page with a redirect to https://example.org/. |
Posted: 23 Feb 2022 12:02 PM PST I've been tasked with setting up our web app on CloudFront. Our web app is hosted on an Ubuntu server that is completely outside AWS. I have little to no experience with CDNs, but I've made some decent progress on it. Unfortunately, the docs are unhelpful because most of them assume you're using S3, especially hosting a static site or something to that effect. So, here is what is unique about our setup:
Now, what is happening, is when I visit
CloudFront is having issues talking to the origin server. I'm not sure if the issue is possibly a secondary SSL/TLS certificate issue (i.e. do I need to install another cert on the Ubuntu box? It already uses letsencrypt. Does it need to be the public certificate I requested from AWS or a new one?). Or, is it possible that the DNS setup is somehow making it impossible for CloudFront to know how to even find the origin server? (After all, the DNS for So far every troubleshooting guide assumes the 403 error is coming from an incorrect S3 bucket policy or something like that, but again, I'm not using S3 to serve the web app. |
Posted: 23 Feb 2022 12:00 PM PST While looking into mdns for an IOT device I was making I discovered that on my home network if I typed in Example: I like this feature, but I am annoyed because it randomly stops for days at a time. At first, I assumed this was something my router was doing (a TP-link Archer C9) but I have not been able to find a place to enable or disable this setting, nor any documentation about it on the internet. Then I thought maybe it was a program running on a raspberrypi, but have not been able to turn it on and off with any programs from my RPIs. I've spent a lot of time spinning my wheels searching the internet for what program makes the My question is, how do I figure out who is resolving these addresses. Or in the sad situation where this never returns, how do I setup a DNS server that automatically resolves hostnames to IP addresses on my Lan? |
Reverse IP lookup with docker? Posted: 23 Feb 2022 11:25 AM PST I am trying to build a docker container that advertises an SMB share, then connects to a remote host and tells that host to connect to the SMB share. In my case the remote host is across a VPN tunnel (though it could be accessible via a different interface when I'm on the same LAN as the endpoint), and it can reach my machine's tunnel IP, but I want a programmatic way of passing my machine's IP to the container. I can get the result I want on Windows running Docker for desktop via pathping per this example, but I want to make this in a way that is OS-independent as this will also be used on Macs and potentially on Linux machines. Is there any way to get the tunnel IP of the host directly from within the docker container? EDIT: Another note, if (from the container) I curl a webserver that is running on the same subnet as my target host and look at the logs, I see the request comes from the exact IP that I want to pass as an argument to the command I am running in the container. Not sure if that helps, but I don't have a way of accessing logs on the target device and the web server won't always be up and accessible. |
Why would cloudinit resort to using iid-datasource-none? Posted: 23 Feb 2022 10:36 AM PST Had my ssh host key reset by GCE. Found was created. is not enlightening as to cause / prevention. Anyone know how this aspect of cloudinit works? |
JDK Mission Control vs Flight Recorder Posted: 23 Feb 2022 10:11 AM PST Sorry, newb... I'm just trying to figure out if it's worth figuring out how to connect JMC remotely to a server to look at a JVM issue... If I use Flight Recorder to record the log, is that log basically the same thing as taking the resulting log file and loading that into the JMC where I can launch the UI? |
How does dovecot performs the hash comparison process without using salt in password Posted: 23 Feb 2022 09:48 AM PST I got a mail server using dovecot, postfix with mysql I insert an email user through the following sql statement: Besides, the file /etc/dovecot/dovecot-sql.conf.ext contains: Also, by using thunderbird I could add an email account successfully to test. The question is: How dovecot performs the hash comparison in the email authentication process if there's no salt involved in the insert statement? |
Use nginx location blocks with Shinyproxy Posted: 23 Feb 2022 10:36 AM PST I recently successfully deployed a ShinyProxy + app using SSL with nginx and certbot in the following manner:
This is the successful nginx.conf This nicely redirects me to What I really struggle with is the following: adding a All that happens is, if I type Any advice on what I am doing wrong? |
.htaccess mod_rewrite not catching all RewriteRules Posted: 23 Feb 2022 10:59 AM PST There is a PHP application with a PHP router as entry point for all the requests placed inside index.php. I am trying to write a .htaccess file to forward every request to index.php except for API requests and for design resources. So I am trying to obtain the following behavior:
Given that Using the code above, it seems that accessing
What am I doing wrong here? |
How does F5 Bigip packets route inside/among its route domains? Posted: 23 Feb 2022 10:59 AM PST How does F5 Bigip route packets inside/among its route domains? I have an F5 BigIP device. On that BigIP, I create a test partition called Phenomenon Description: As you can see the configuration of partition test123. I create a tagged VLAN named Similar to the self IP Till now, I have self IP 172.168.111.111%111 and 172.168.32.32%321. Then I ssh to my BigIP terminal, ping each IP locally, like below: My Question: The ICMP packets flow between different subnets and route-domains without a static gateway configured. What is the flow(process/mechanism) of F5 BigIP inner packets routing among different route domains? I try to figure out the question by tracing the route between different subnets. It seems the packets just go to the interface directly because the IP is the local IP on the BigIP machine. And there is no routing table. Is that mean I could regard it just as a local IP, and there is no routing among different subnet IPs in different route domains? But I guess there are must be something to do with the map, right? is there any route domain map that can be shown? There is little information about the mechanism of F5 BigIP route domain mapping on the Internet, most of the information on route domain is on the management and use cases of BigIP route domain. Hope anyone could help to shed some light on this part? |
How to Pre-seed Salt Minion's Archives Posted: 23 Feb 2022 12:18 PM PST So I am creating a state file to install MatterMost on a minion. So far it looks like this: My problem is: Prior to creating this SLS, MatterMost has been installed (exact same version as the one specified in the pillar) by downloading the tarball to an admin's home, then extracting the tarball manually to How do I "pre-seed" the Minion's "archive cache" so the Minion can see the file is already downloaded, and will not (re)download+overwrite? |
esxi upgrade - Upgrade VIB(s) "loadesx" is required for the transaction Posted: 23 Feb 2022 11:34 AM PST Applying a esxi patch (from HPE custom esxi 7.0 to esxi 7.0U2c) failsesxcli software vib update -d /full/path/VMware-ESXi-7.0U2c-18426014-depot.zip Error message[InstallationError] Upgrade VIB(s) "loadesx" is required for the transaction. Please use a depot of a complete set od ESXi VIBs. Server hardwareHPE gen10 Any clue why I get the error message? |
Some emails show blank on Squirrelmail Posted: 23 Feb 2022 11:00 AM PST For some reason certain messages, only for some users, are showing up either partially or totally blank and are not selectable. The mail server is not self hosted (migadu.com), only Squirrelmail (v 1.4.22). I've confirmed the messages themselves seem just fine and are perfectly fine when downloaded via another IMAP client. I'm guessing it's something specific about these messages, but I can't figure out what to look for. I saw some other posts talking about similar things and they seemed to point to a permissions issue, but I can't figure out what permissions I should be setting, and wasn't sure if those suggestions related to the actual mail servers. See screenshot below. |
Posted: 23 Feb 2022 12:15 PM PST I've created a sparse file Unfortunately I can't just write zeros by 'dd' or 'freezero' to a filesystem's file since encrypted zeros are not zeros and this will result into enlarging, not reducing image size. I probably could resize the filesystem to it's minimal size and then truncate the image file to the filesystem size + luks offset size, but I found that btrfs is very shrink-unfriendly, currently 'btrfs balance' probably would help, but looks like it could runs even longer than recopying of all data to new image. The last of course a solution but not a good one. And it is not always possible to create a new disk image of required space. I tried to find how 'decoded zeros' looks like by creating same passphrase-encrypted zero-empty image, but each of 512 byte block (the size reported by cryptosetup status) is different. Looks like luks do not crypt each block with the same key. Is there any other ideas? UPD. What I've also tried to fill btrfs with zero file, find it offsets: save it into another filesystem file but this destroyed the filesystem. It was still mountable, but existing files was incorrect. Also 'filesystem.img''s disk usage became even less than btrfs filesystem used space. So still unsolved. |
How to write a sparse Linux (EXT4) disk image without writing gigabytes of zeros? Posted: 23 Feb 2022 12:20 PM PST I have a 64 GB Linux disk image with ~50 GB of unused space across the partitions. The file is sparse, so it only takes ~14 GB on disk. But if I Is there any way I can do the equivalent of Is there any tool that is smart enough to do this i.e. an imaging tool that has an awareness of the EXT4 filesystem? |
win10 how to encrypt single file, right click folder encrypt invalid recovery certificate Posted: 23 Feb 2022 10:04 AM PST In window 10 enterprise, corporate environment (if it matters). I have a single file with info I want to protect, and I want to encrypt just this single file. And I only want to do this in Windows, if it's just win10 that's ok. I right click on that file and do Properties - General - Advanced and check Encrypt contents to secure data. The resulting error is Error applying attributes - Recovery policy configured for this system contains invalid recovery certificate.
|
Add-NetNatStaticMapping not port forwarding to local VM Posted: 23 Feb 2022 12:01 PM PST I'm running windows 10 build 1809 and have hyper-v installed. I have a Linux machine running behind a NAT with internet connectivity working on IP 10.0.5.5. I basically followed instructions on the link below https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/setup-nat-network When created the port mapping I called If i try to hit http://10.0.5.5:8500 it works (page loads). If i try to hit http://127.0.0.1:8500 it doesn't work (nothing loads). Even if I try to use any of my external IPs, it doesn't work. It's basically like the whole port forwarding is not doing anything. Any ideas? Get-VmSwitch returns the following Get-NetNat returns the following |
server can't find 2.0.9.10.in-addr.arpa: NXDOMAIN Posted: 23 Feb 2022 10:04 AM PST I have set up a VPC peering between two different project's VPC on GCP and it works fine when i ping my vm-instance and i'm also able to ssh to my instance with private ips. However, if I query it for reverse dns from one vm-instance to another instance with nslookup, it throws error; server can't find 2.0.9.10.in-addr.arpa: NXDOMAIN my arp doesn't show connected devices either just one ip for router i believe, i get the same status: NXDOMAIN when i dig 10.9.0.2 Any help would be much appreciated. |
negative WMI-Filter for security filtering in GPO Posted: 23 Feb 2022 11:03 AM PST I need to create a group policy object (GPO) that will disable printer redirection for all computers except certain servers. I considered making a security group and adding all the computers except the servers that I wanted to permit printer redirection on and then applying security filtering on the GPO so only the computers that are a member of the security group will not have printer redirection. Due to the number of servers in the environment and the number of technicians making changes in Active Directory (AD) I feel that people will not remember to add new computers to the security group. :) So, I want to create a GPO that applies to all computers but has a rule that excludes the members of a security group from the GPO. I believe that I want to do this with a WMI filter but I don't know how to create a WMI filter and the examples I found do not seem to give me the information I need to create the required WMI filter. The example I found is this. Can someone help me edit this WMI filter to identify all servers that are not members of that security group. |
Nginx Redirect all JPEG URL to single JPEG Posted: 23 Feb 2022 12:01 PM PST There are two scenario that I'm trying to achieve. Scenario A : If client request URL that contains .jpeg or .jpg file, redirect the user to a single .jpg file that are on the server in this case myimage.jpg Scenario B : If client request URL that contains /abc/ directory, redirect the user to other domain through proxy while keeping the URL in tact. Below is the content of my nginx.conf Most of it I referred to Nginx redirect to a single file The config does not contain error in /var/log/nginx/error.log but it does not perform as intended to. |
Apache 2.4 with PHP-FPM and ProxyPassMatch for PHPMyAdmin, is it secure? Posted: 23 Feb 2022 01:01 PM PST I recently configured a Debian 8 with Apache 2.4. Since I have a fairly recent version of Apache, I used ProxyPassMatch instead of FastCgiExternalServer. But when configuring my alias for PhpMyAdmin, I wondered if this was secure. Here's my configuration : What is bothering me is the ProxyPassMatch that allows to load any file in the does not work, with the error that So is my actual configuration secure enough regarding the access of Thank you for your help! |
Troubleshooting kerberos problems with Samba Posted: 23 Feb 2022 11:03 AM PST I've run into an odd problem with Samba 3.6.23. Right now I have a Windows 2008 R2 machine that has trouble accessing shares on a domained Samba box.
When I set smbd to debug logging, I get this: Which was enough to point me at something kerberos-y. So I did a bit of tcpdumping, and learned that different login methods are negotiated for machine-name and ip-only styles. When accessing via machine-name, it attempts a kerberos login and fails. When accessing via IP-address, it attempts NTLMv2, which works just fine. Of interest, the Win 2008 R2 machine is in a child-domain of the one the Samba server is in. However, I have lots of examples of machines in the child domain correctly accessing the Samba machine. Confoundingly, I have an identically configured samba system ( I'm at a loss over where to poke next.
I'm not sure where to go from here. |
Troubleshooting Redmine (Bitnami Stack) performance Posted: 23 Feb 2022 01:01 PM PST I've got a Redmine instance (Bitnami Stack) that's unusually slow. Because I'm just trying to get to the bottom of this, I have some theories which I'd like to discuss here. So, if anybody has any ideas about this, please feel free to help :-) System: Bitnami Stack with Redmine 1.4.x upgraded to Bitnami Stack with Redmine 2.1.0 like this:
The stack is running on a Virtual Machine with OpenSUSE 12.1. The resources shouldn't be a problem, as there are always multiple gigabytes of free RAM and CPU spikes on Redmine requests go only up to 50% of 2 CPU cores. Also, there are only a few users accessing it. What may be totally important: User login is handled via LDAP (ActiveDirectory). Problem: On each request, Redmine reacts unusually slow. Sometimes it takes 3 seconds, sometimes even up to 10 seconds to deliver the page. My thoughts:
One more thing that seems very odd to me, but maybe a false measurement result (need to re-check this tomorrow when I see the machine): I tried to check if it's a network problem (network reacting slow, maybe DNS or something; server is in the local network). It seemed like requests on localhost (Browser directly on the OpenSUSE VM) were fast, but requests over the network weren't. Usually, I would think of a network problem, but the strange thing is: When actually measuring connect times, the network is fast as hell. Ping is good, static delivery times too. It seemed like only Redmine-side calculated pages are slowly sent by the application server while Apache's still fast - but only when the request is a remote LAN request. Very strange … but as I mentioned above, I have to re-check this one. It just seems illogical to me. |
Upgrade cURL to latest on CentOS Posted: 23 Feb 2022 12:58 PM PST I need to upgrade cURL to the latest version on Centos
I'm unable to find any suitable packages to do so via |
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