Recent Questions - Server Fault |
- Assistance with WinNT MPM MaxRequestsPerChild
- Proxy postgres connections adding client certificate authentication
- Preserve original IP while forwarding
- RPi 4 MDADM Raid 5 problems
- what is the use of "remote(client) port" for inbound firewall rule?
- FreeIPA migrate the current NFSv4 storing home directories to another server
- Use ip6tables to forward traffic to setup DNAT/SNAT to link local address
- How to read and decode fio --bandwidth-log?
- GCP: How to access a L2 VM (qemu) running in a pod in gcp by IP from internet?
- Pod assigned node role instead of service account role on AWS EKS
- Redirecting traffic via Wireguard VPN
- Why would my WordPress website be so slow?
- Choose all labels in a Grafana time series chart in one go instead of "Ctrl+click"-picking each label until the full list is marked?
- sar service has stopped collecting data
- Cloudfront caching resources even though response headers should prevent it
- How I can send all logs from journald to GCP Logging?
- Can We Use Openstack Neutron as standalone component?
- AWS - VPC creation date
- How to remove corrupt RPM install
- Install a .reg file via GPO
- Amazon EFS hangs when attempting to list files inside
- How to identify and fix Missing blocks reported by Ambari for the NameNode?
- Virtnetwork Cannot Start Virtualizor KVM
- Passenger could not spawn process for application. Rails, ubuntu, passenger and apache
- AWS connection error: Permission denied (publickey)
- auditd auid changes after su
- Where are credentials for SQL Management Studio saved?
- Fastest way to extract tar.gz
Assistance with WinNT MPM MaxRequestsPerChild Posted: 13 Jun 2022 11:01 AM PDT In our
Excerpt from
Legend:
I though at first it might be the last value in Acc "this slot", meaning that if this exceeds 1024, then the worker is restarted, but that's not the case. I've been monitoring the second value "this child", and it seems to peak around 320, never getting close to 1024. So I'm not sure what I should be looking at. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Proxy postgres connections adding client certificate authentication Posted: 13 Jun 2022 10:54 AM PDT In my environment, I would like to have a tool that takes in a user's certificates, and "adds" them to connections. The main reason to do this is to support client certificates as an authentication mechanism for tools that do not natively support it. For web based connections, this is pretty easy. It's a javascript service that listens on a localhost port, and takes all requests that it gets and forwards them, adding the client cert information. How could I do something similar for postgres? I know that it is possible to proxy postgres connections (
Does there already exist a tool that can do this (or be modified to to it with a small amount of effort)? If not, what should I search for to make this as easy as possible? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Preserve original IP while forwarding Posted: 13 Jun 2022 10:32 AM PDT Im using firewalld to forward an incoming port from the internet (9999) to a local LAN IP address (100.1.1.1) like this: The LAN IP (100.1.1.1) is from a Tailscale (VPN) interface running on the same machine, which delivers the traffic over the Internet to another machine. The forwarding works fine, but my problem is that at the destination machine, all traffic appears to be coming from 100.1.1.1 (Tailscale) instead of the original source IP's. This is unhandy for things like fail2ban or statistics. Is there a way to preserve the source address while still allowing the traffic to be forwarded? EDIT: According to this article https://mghadam.blogspot.com/2020/05/forward-traffic-from-public-ip-to.html?m=1 it should be possible, but complicated. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Posted: 13 Jun 2022 10:03 AM PDT i bought myself a quad SATA Hat from Raxdata and mountet 4 x 1 TB Harddrives. I tried to arrange them via MDADM in in an RAID5 setup (Debian), unfortunately after synching maybe 10% the operation stops and one or two of my drives are not "sdA" or "sdB" anymore but "sdE" and "sdF". I get no error messages, maybe you can help me. Thank You, greetings | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
what is the use of "remote(client) port" for inbound firewall rule? Posted: 13 Jun 2022 10:01 AM PDT In firewall settings, local port for inbound rule is pretty obvious: that is the port you want to listen. However, remote port sounds nonsense: In typical protocol, client uses arbitrary port so restricting remote port will break your service. image is borrowed from What are differnet between local port and remote port of firewall in Windows 2016 server? Although the image is windows firewall settings, I guess other firewalls have similar. Is there any case to restrict client port(remote port) for inbound traffic? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FreeIPA migrate the current NFSv4 storing home directories to another server Posted: 13 Jun 2022 09:18 AM PDT I have a FreeIPA set-up that uses NFSv4 to store users' home directories. NFS is running on the same physical server as the FreeIPA. CentOS btw. I'd like to move the NFS server on a new machine and add more storage. I have searched for documentation but there's no guide on how to perform this. Not much information on the internet either. Mb it's too trivial of a task and no one bothers to ask XD. Clients get kerberos tickets to access their files. If anyone has already done it or has an idea, could you please give me the steps to follow or things to try. I thought of just copying data and spinning up a new NFS server on another machine but it's not obvious what I should update in FreeIPA config so that it plays together nicely. Feel free to ask for additional information. Thanks! | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Use ip6tables to forward traffic to setup DNAT/SNAT to link local address Posted: 13 Jun 2022 09:17 AM PDT I'm trying to use a raspberry to connect a terminal device to a VLAN. Basically I need to reach a device (that I cannot directly connect to a VLAN) remotely. My idea is to connect the device (via eth) to a raspberry, join the raspberry to a VLAN and then proxy all the traffic between the VLAN and the device. I'm interested in proxy all and only ipv6 connections (tcp and udp). Network configuration is: I have set up the VLAN between the raspberry and the laptop using Hamachi. Then I have setup the following iptables rules: I have then used iperf3 to test connectivity launching on the device and then trying to connect to it from the laptop using the address RASP_VLANIP. Anyway i get the error: iperf3: error - unable to connect to server: Connection refused What am I doing wrong? Additional info: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
How to read and decode fio --bandwidth-log? Posted: 13 Jun 2022 09:18 AM PDT I'm Looking for assistance with reading and decoding fio --bandwidth-log. I've run the below command and the output includes a few columns as listed below, how to read and decode each column? fio --invalidate=1 --filename=/dev/nvme0n1 --direct=1 --ioengine=libaio --iodepth=32 --time_based --runtime=3600 --bandwidth-log --name=/dev/nvme0n1 --rw=randread --bs=4k --log_avg_msec=1000 Output example (first few lines): 501, 334730, 0, 0, 0 1177, 647294, 0, 0, 0 1678, 985860, 0, 0, 0 2180, 948023, 0, 0, 0 2681, 967369, 0, 0, 0 3182, 977405, 0, 0, 0 3683, 982035, 0, 0, 0
If I read the fio man page it is only mention the below with no explanation: --bandwidth-log Generate aggregate bandwidth logs. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GCP: How to access a L2 VM (qemu) running in a pod in gcp by IP from internet? Posted: 13 Jun 2022 09:20 AM PDT I have a cluster of 2 nodes created in gcp. The worker node (L1 VM) has nested virtualization enabled. I have created a pod in this L1 VM. and I have launched a L2 VM using qemu in this pod. My objective is to access this L2 VM only by an IP address from an external word (internet). There are many services running in my VM (L2 VM) and I need to access it only by IP. I created a tunnel from node to L2 VM (which is within the pod) to get the dhcp address to my VM. but it seems dhcp offer and ack messages are blocked by google cloud. So L2VM did not get a public IP. I have got the following link from google cloud.google.com/compute/docs/instances/nested-virtualization/… It has described how to access L2 VM from outside L1 VM. It has used the alias-ip of the primary interface of the vm instance. This alias-ip is nat-ed with the IP address of L2 VM. So all packets destined to alias-ip reach L2VM. Here the only condition is that packets have to come to alias-ip. I have tried this and it works. This technique even works if I try to connect to the L2 VM from the internet. In this case I send packets destined to the public IP of L1 VM and gcp automatically does ONE_TO_ONE_NAT between public ip and internal ip of the primary interface of L1 VM. But there is a problem while trying to connect from the internet. gcp claims it as a "man in the middle" attack. They say it correctly because I nat-ed the primary internal IP of L1 VM to L2 VM IP. My objective is to nat the public IP of L1 VM to alias-IP of L1 VM primary interface so that I can further do nat-ing alias-ip to L2 VM IP. Is it possible to do nat-ing between public ip of L1 VM and alias-ip of L1 VM? Or is there another way to propagate my packet destined to the public ip of L1 VM to L2 VM? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Pod assigned node role instead of service account role on AWS EKS Posted: 13 Jun 2022 09:00 AM PDT First some info about the setup:
I have a k8s cluster on AWS EKS on which I am deploying a custom k8s controller for my application. Using instructions from eksworkshop.com, I created my service account with the appropriate IAM role using But this does not seem to be working. If I describe the pod, I see the correct role. But if I do a
This is how I created by service account I have done this successfully in the past. The difference this time is that I also have role & role bindings attached to this service account. My What am I doing wrong here? Thanks. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Redirecting traffic via Wireguard VPN Posted: 13 Jun 2022 11:17 AM PDT I have a public IPv6 address but not an IPv4. Therefore I want to route the traffic via a VPS with a public IPv4 and an IPv6 address. My question is how to create this type of tunnel with Wireguard. The tunnel from the VPS to a device in my network is not the challenge, but rather how to redirect the packets on the server to that tunnel. I've done a bit of research and my approach would look like this. My Network device VPS Example Client Is this possible? Or do I need to create two WG interfaces and route the traffic between? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Why would my WordPress website be so slow? Posted: 13 Jun 2022 10:23 AM PDT Goal:Make WordPress webpage load faster on local network. Currently pages load fine but take about 4-5 seconds to load. I want to cut that down to half the time or smaller. I have a two new VMs dedicated to this new website I'm testing (ON LOCAL NETWORK). One VM is for the SQL server, and the second VM is for the webserver. SQL Server Setup: (less then 50% mem/cpu max)
Web Server Setup: (less then 50% mem/cpu max)
WordPress Setup:
I currently do not have an SSL cert set up on the server because I want to get these performance issues resolved first. Was not sure if that would be a factor but thought it wise to mention. The site loads fine but it just takes forever. Is there any things that can be checked to see why the site is loading so slow? Could it be related to mySQL somehow? It seems that from the default IIS webpage when I put a phpinfo.php page that loads really fast. Any ideas of tests I could run to troubleshoot slow load times? Note: I know there are a lot of server admins out there that will knee jerk response with "Don't use Windows it's bad.". I'm not looking for that kind of "help" here. I know it runs fine on Windows using IIS. I have seen plenty of webpages with users saying they have no issues running the sites on Windows with IIS. Thanks for any suggestions you can provide with a solution or debug help! | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Posted: 13 Jun 2022 10:10 AM PDT In a time-series chart in Grafana, I try to mark a bunch of labels so that all of their curves are shown. As a default, I get only four labels' curves in the graph, but I have dozens of labels and I do not want to mark everything with the mouse, it takes too much time and nerves. The idea is likely that choosing too many curves will leave you lost in the lines. But in this case, the graph is about finding outliers, strong changes and trends, or just high numbers. You can hover over any curve that might catch your eye, and that is all. Thus, having 80 curves in one graph is no problem. The filter is just about shrinking the list, not about marking all labels in it. I can use it to Regex-check for queries with 2-digit seconds duration and some other filter on the query_name. Yet, I just want to see all labels' curves in one go, and not just by clicking like in the following: Is there a trick to get this done? Perhaps even by using the Grafana Dashboard code to mark the jobs as a hardcoded list? Or is there a shortcut or other trick to pick all? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sar service has stopped collecting data Posted: 13 Jun 2022 10:43 AM PDT We had This indicates that outputs: The cron and the Why isn't stats data getting added to the log? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Cloudfront caching resources even though response headers should prevent it Posted: 13 Jun 2022 08:09 AM PDT I have recently setup a Cloudfront distribution with the following behaviour cache policy:
Unfortunately pages with no-cache response headers continue to cache the response at fairly low levels of concurrency. I used apachebench to run 100 requests with concurrency of 5, and received the following: I also captured what should be unique response headers that should be unique per request/response (given there are no request headers/cookies) and this also shows that there are duplicate Set-Cookie responses. For example, this response came back 4 times: I do have ways around this I believe, such as higher priority Cloudfront behaviours to set a no-cache policy, however it takes the power away from the server-side to decide whether a response should dynamically be cached, and indicates that Cloudfront is not honouring the server-side decision. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
How I can send all logs from journald to GCP Logging? Posted: 13 Jun 2022 08:08 AM PDT Don't know what to add more to question, just want to send all logs. My applications write logs to journald, there is no files on disk. UPD. Just to clarify, there are files where journald store logs, my application do not create any logs files. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Can We Use Openstack Neutron as standalone component? Posted: 13 Jun 2022 09:02 AM PDT Scenario: We are trying to develop our Virtual Network using
Any help would be highly appreciated. P.S. I am thinking about this because OVN got merged with Neutron, and it could be one of the possibilities. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Posted: 13 Jun 2022 10:34 AM PDT Could you possibly let me know how I can check when the VPC has been created? Or how to check in cloudtrail who created vpc via cli? I've tried to use cloudtrail and search in event name for CreateVpc but I was not able to find anything. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
How to remove corrupt RPM install Posted: 13 Jun 2022 09:18 AM PDT I tried to install an RPM package and the install process failed. It looks like the program needs signing the Kernel Modules or something. Now I'm stuck in a weird state where rpm says the package is installed, but when I try to uninstall it, it claims it's not installed. How can I resolve the install/uninstall state? I'd like to remove the package. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Posted: 13 Jun 2022 10:55 AM PDT I have downloaded a .reg file with some registry keys I'd like to apply on a Windows machine. Since the same key need to be applied, I'd like to do it directly with GPO policies. I found several guides, however no one explicitly states a way to push directly a .reg file content. Could you please explain me a clean way to do it? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Amazon EFS hangs when attempting to list files inside Posted: 13 Jun 2022 11:08 AM PDT When doing an ls inside an Amazon EFS mount point, it just hangs. The EFS troubleshooting section on AWS EFS troubleshooting Mentions the following:
So I verified to see if anything was writing to it but the only thing that showed up was root 43556 0.0 0.0 124356 756 pts/6 D+ 19:15 0:00 ls --color=auto /efs/ root 43558 0.0 0.0 112664 972 pts/3 S+ 19:16 0:00 grep --color=auto efs So nothing is being written to EFS as far as I know. Are there any other things I can look into as causes of this? I also tried mounting the EFS on a separate machine just to verify, I also tested another machine in a different AZ to the other mount point in that AZ and saw the same behavior. update: lsof shows:
This disappears when unmounted, and reappears after mounting. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
How to identify and fix Missing blocks reported by Ambari for the NameNode? Posted: 13 Jun 2022 11:08 AM PDT Ambari is generating an alert I've run How do I find these missing blocks and thence fix them? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Virtnetwork Cannot Start Virtualizor KVM Posted: 13 Jun 2022 09:06 AM PDT I have a problem with my virtnetwork. I have set the correct network interface on master setting Virtualizor but it said
when I try to run Does anyone can help me? Here is my network interface "ifcfg-ens9" Looking forward for the solution. I don't know whats wrong the setting above. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Passenger could not spawn process for application. Rails, ubuntu, passenger and apache Posted: 13 Jun 2022 09:06 AM PDT My application is crashing again and again. I am using the hosting services of digital ocean the status of the server are also displayed in the image (It start working when I restart the server but that is not the solution. After sometime it again crashes.) Apache log.error shows: Content of the file /tmp/passenger-error-ygdDZS.html are below. Some information about my server is Server version: Apache/2.4.7 (Ubuntu) Server built: Jan 14 2016 17:45:23 Phusion Passenger 5.0.26 Memory(Ram) 2GB Disc Space 40Gb | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AWS connection error: Permission denied (publickey) Posted: 13 Jun 2022 10:05 AM PDT Sorry if this sounds redundant to you but trust me its not. I have tried almost majority of the links related to this problem but nothing is working for me so far. I even tried this article two. Below is what I have tried so far
The last thing I did before this issue was that 2 days ago I was trying to install the FTP server on my client using this link http://www.krizna.com/ubuntu/setup-ftp-server-on-ubuntu-14-04-vsftpd/. Unfortunately this link didnt work as expected and I ended up with no success in FTP logins. And today when I tried to login using my keypair its giving me error. Below is the log for my ssh attempt | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Posted: 13 Jun 2022 10:05 AM PDT I try to implement individual accountability for my RHEL systems using selinux and the audit.log. I followed the instructions given here: Log all commands run by admins on production servers If I understand it correctly, the pam_loginuid.so should keep the UID which was used to login and set it as the AUID in the audit.log file. Unfortunately that does not work after su. When I login to the system and call cat /proc/self/loginuid it displays my correct UID. If I invoke sudo su - and call cat /proc/self/loginuid again, it displays 0. Also the ID 0 is used in the audit.log as AUID for commands I invoke after sudo su -. What am I doing wrong here? Here is my pam.d/sshd file: I enabled audit=1 in /etc/grub.conf and edited /etc/audit/audit.rules as described in the post above. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Where are credentials for SQL Management Studio saved? Posted: 13 Jun 2022 09:30 AM PDT When we logged into SQL Management Studio(using Server Name, Login and Password) with checked "Remember Password". I need to know, where it save in PC. I need to format my PC. And when we install SQL Management Studio, then I will lose my all credentials which I saved. That's why I need to get that files for backup where it save. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Posted: 13 Jun 2022 09:20 AM PDT Is there anyway to extract a tar.gz file faster than We have large files, and trying to optimize the operation. |
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