Recent Questions - Server Fault |
- What do the numbers mean in 0/24, 0/16 and 0/8 when blocking ranges of IP addresses
- Nginx proxy remove spesific path and emty Post request body
- backup strategy for pc [migrated]
- unable to create a project azure devops 2019 on premises
- Apache Proxypass redirects "localhost:port" as url string instead of local service of the port
- setting up ntop with ubuntu 22.04 with system-ctl
- Sender dependent relay with transport maps in postfix
- KVM: Best performance for all guests
- WSL-Docker: curl: (60) unable to get local issuer certificate
- docker swarm - highly available database
- Ubuntu 22.04 - Intel X550 - Run a pre-up command to set ethtool network interface parameters at startup
- No response from ps aux | grep apache [closed]
- How do you resolve to both public and private zones in a Split-Horizon DNS (using GCP Cloud DNS)?
- Setup postfix exclusively for local delivery
- Allow Bitbucket pipeline runner to access ports other than 80 and 443 such as NFS
- What is the difference between 0.0.0.0/0 and 0.0.0.0/1?
- SELinux preventing mongod search access
- How to configure nginx.conf and php-fpm using brew servinces in MAC-OS in order to run php?
- Azure AD Connect change sync key userprincipalname to mail attribute
- kubernetes dns resolver in nginx
- get NS record for domain using dig
- Windows 10 Pro: RDP disconnecting every 10 - 30 seconds
- Amazon EC2 ubuntu instance ifconfig does not show interfaces attached by attach_network_interface
- How can VM and Docker bridge traffic be routed through a pfSense VM?
- Reduce cron log level with systemd
- NGINX Unicorn 504 Gateway Time-out
- Displaying a remote SSL certificate details using CLI tools
- How can I check the partition name in FreeBSD?
- Automate mounting a persistant CIFS drive natively on Windows.
- Logwatch configured for nginx with custom log format gives empty output
What do the numbers mean in 0/24, 0/16 and 0/8 when blocking ranges of IP addresses Posted: 09 May 2022 05:57 AM PDT From the answer in the post Block range of IP Addresses
I'd like to get a better understanding of the meaning and use of the numbers 0,8,16,24. I already know that they are how you create a rule that blocks a range of IP addresses but I don't understand how/why this is a representation of a range. |
Nginx proxy remove spesific path and emty Post request body Posted: 09 May 2022 05:56 AM PDT I'm using nginx for web service proxy. I have rest service as below and i want to proxy my domain with suburi Service has some method like this; As result i want to access to methods of service like When i try to use rewrite in nginx as below, i can access service. But in this time Post method's request body is emty. I can see service logs. In my nginx.config I try to location part like this, result is same. In nginx access log; |
backup strategy for pc [migrated] Posted: 09 May 2022 05:31 AM PDT im thinking about a backup strategy for the follow scenario: W11 machine with 2 Disks: onboard SSD 256 + some cheap HDD the goal is to create in AUTOMATIC mode, a full booteable disk every sunday from SSD to HDD, that permits:
i also admit more ideas of course. regards |
unable to create a project azure devops 2019 on premises Posted: 09 May 2022 04:27 AM PDT I have azure DevOps server on-premises, and I want to create a new project but I can't. even though I'm using the admin account. I can create a new collection, but I can't create new projects, here's the log when I check it But there's no existing file the project name is unique. any kind of support it'll be appreciated thanks & regards |
Apache Proxypass redirects "localhost:port" as url string instead of local service of the port Posted: 09 May 2022 03:47 AM PDT EnvironmentServer version: Apache/2.4.6 (CentOS) I have two servers which are almost duplicates.
They have almost same Apache rulesets.
So
Looks the same, but it's inside VirtualHost:80, if that makes anything different. ProblemBoth But, when the service use
QuestionFrom Apache settings, what can cause this behavior and how should I fix this? |
setting up ntop with ubuntu 22.04 with system-ctl Posted: 09 May 2022 02:47 AM PDT I've installed ntop using the official docs but used the ubuntu When is run Is it possible to run |
Sender dependent relay with transport maps in postfix Posted: 09 May 2022 03:13 AM PDT We have some SMTP server in our company. We have transport maps in which we define what domains send to other smtp server. Now, we need sender dependent config for some users. The users are using same domain as in the transport maps table. I tried sender_dependent_relayhost_maps but It is not working when transport maps enabled. Idea, what I want: All @companydomain.ltd forward to smtp in transport_maps table: exception (forward some users mail to another smtp): Is there any sender dependent setting that overwrites the transport_maps? |
KVM: Best performance for all guests Posted: 09 May 2022 05:24 AM PDT With KVM, what is the best way to provide the highest possible performance to all VMs? The host has a hexa-core processor and 64GB of ram. 3-4 VMs should run on it. The VMs are idle a lot of the time, but during performance peaks they should preferably have the full performance of the host available. Is it a good idea to give all VMs 6 cores and 64GB of ram? Or what would make the most sense? |
WSL-Docker: curl: (60) unable to get local issuer certificate Posted: 09 May 2022 05:33 AM PDT After a PC reconfiguration I am unable to use Docker properly, since some curl commands are rejected due to SSL/TLS issues. In just one example After some digging, I now now know that this issue also occurs within my WSL image, but not on host Windows OS. Hence, I believe this must be an issue that originates with my WSL setup, and not caused by Docker itself (?). There are quite a few related questions on serverfault/stackoverflow but no solutions I found really apply to this case:
FWIW I work at an enterprise, with IT-issued OS. Obviously that could be a source of error, but they are unable to help me debug this issue. One a colleague's PC, however, it works flawlessly. Any ideas? PC Setup:
Update 1As suggested by @Martin, I tried downloading https://www.amazontrust.com/repository/AmazonRootCA1.pem, put it inside |
docker swarm - highly available database Posted: 09 May 2022 04:34 AM PDT I am using high availability on two servers, where I use docker swarm with two manager nodes (one is the leader) with their respective applications (backend and frontend) and I use haproxy to redirect to a single IP. I have a problem with the database with its data persistence, when I want to save data it is only saved in one and not in both. What advice would you give me to solve this problem? |
Posted: 09 May 2022 02:22 AM PDT Following the question at: https://askubuntu.com/questions/1406445/ubuntu-22-04-server-intel-x550-advertised-speed-not-correct I need to run a command at startup so that the necessary changes are permanent. From the Intel drivers documentation (https://downloadmirror.intel.com/727507/readme.txt), the command is: I tried to write the command in various files, without success. Where should I write it ? Edit 1: Following Anton Danilov's answer, I did not find how to set up a solution with sytemd.link, but I fond a different way by creating a service in as explained here: https://bbs.archlinux.org/viewtopic.php?id=262075 It works, but is it the optimal way for Ubuntu 22.04 (the link above is a solution for archlinux and is from 2018) ? If no, could someone please provide a complete working solution for Ubuntu Server 22.04 ? |
No response from ps aux | grep apache [closed] Posted: 09 May 2022 03:23 AM PDT |
How do you resolve to both public and private zones in a Split-Horizon DNS (using GCP Cloud DNS)? Posted: 09 May 2022 02:05 AM PDT We're using GCP and Cloud DNS to manage our domain and I'm trying to solve for these use cases:
I've tried solving this with a public and private zone (AKA, split-horizon DNS), however, this solution only solves use cases 1 and 2. And it only solves use case 2 if we ensure the private zone has a copy of all records in the public zone (if there isn't a private counterpart). Use case 3 isn't met with this solution as our cert-manager server creates the records in the public zone and then cannot resolve them in the public zone. Due to the specifics of our setup, customing cert-manager to resolve both zones via some local configuration isn't ideal. It also would be difficult to have the records created on both zones, so again not the ideal solution. What I'd like is for the private zone to forward requests to the public one if it doesn't have a record for a specific request. Is there a way of doing this, specifically using GCP Cloud DNS? The ideal Currently we have For example, This works fine for use cases 1 and 2 but when we try to resolve a record that only exists on the public zone... Any suggestions? As a workaround, for now, we've switched to using HTTP01 challenges for cert-manager but we'd prefer to use DNS01 if possible. |
Setup postfix exclusively for local delivery Posted: 09 May 2022 03:44 AM PDT For development purposes I wanted an smtp server, that simply places all mails into a local mailbox. To achieve this, I tried to setup a minimal postfix system. Talking to smtpd is no problem. I get successful responses through the entire conversation, however in the end, postfix tries to use Any clue, why |
Allow Bitbucket pipeline runner to access ports other than 80 and 443 such as NFS Posted: 09 May 2022 02:59 AM PDT I am trying to persuade a bitbucket pipeline that employs a runner on our GKE based infrastructure to mount a directory from a GCE VM via NFS. It seems that the outgoing traffic to NFS ports is blocked. The pipeline has no problem accessing port 443 on an external web server. No incoming traffic is visible to Firewall logs show nothing being blocked. The underlying runner containers ( I'm wondering if anybody has a tip to enable the pipeline to access files on the NFS server. |
What is the difference between 0.0.0.0/0 and 0.0.0.0/1? Posted: 09 May 2022 05:18 AM PDT In the history, I mostly used What is the difference between |
SELinux preventing mongod search access Posted: 09 May 2022 05:32 AM PDT I noticed I am getting some SELinux errors when running mongod for the UniFi controller program. Namely, I am getting: I don't see any reason as to why mongod needs search access to any of these directories and I am wondering if/how I can disable it trying to search them and I don't think giving it access to my entire system is really a solution. The actual database is stored, it is in the default location (config file below) and the SELinux types are set correctly for those directories as the service does seem to run and no errors are thrown about accessing |
How to configure nginx.conf and php-fpm using brew servinces in MAC-OS in order to run php? Posted: 09 May 2022 04:05 AM PDT I have following logs in php-fpm log . Here is Nginx.conf file : I am trying to run phpinfo() function , Its gives me error 502 . Notes: I am using php@7.2 and php-fpm 7.2 , I already changed user and group in php-fpm.conf file , Any help will be appreciated . Thanks in advance . |
Azure AD Connect change sync key userprincipalname to mail attribute Posted: 09 May 2022 05:38 AM PDT |
kubernetes dns resolver in nginx Posted: 09 May 2022 04:36 AM PDT I was developing locally in I now want to move over to I tried to switch the resolver to: I also tried various other IPs and names, but I keep getting an error along the lines of: My kubernetes setup is that I have a single pod, with 2 containers: 'webapp' and 'nginx'. I simply want to have an external Any ideas? |
get NS record for domain using dig Posted: 09 May 2022 04:04 AM PDT I'm currently trying to write a script that validates, whether a given record attached to a name is available via all nameservers that are responsible for that name. E.g. I would like to check whether there is an The script works by first querying the This kind of works, unless the name is actually a Instead I would like to have something like: So my question is: how can I force One obvious solution is to parse the output of |
Windows 10 Pro: RDP disconnecting every 10 - 30 seconds Posted: 09 May 2022 05:04 AM PDT Just looking for some brainstorming help. I have a (fully updated) Windows 10 Pro desktop which I regularly connect to using RDP from a Mac running Microsoft Remote Desktop (latest version). The Windows 10 Pro machine is using a static IP on 192.168.1.0/24 network. When the Mac is on 192.168.1.0/24 as well, I can stay connected to the Windows 10 Pro machine for hours with no problem. Sometimes I work from another site on 192.168.2.0/24 network. There is a wireless link between both sites. The network path is something like this: Internet <- NAT <- Site1: 192.168.1.0/24 -> NAT -> 192.168.3.0/29 <- NAT <- Site2: 192.168.2.0/24 Whenever I try to connect to the Win10 PC at Site1 from the Mac at Site2, I can easily and quickly establish an RDP connection, and I can even use the connection just fine for anywhere from 10 - 60 seconds, and then the screen freezes and I get disconnected from the Win10 PC. You might say, well maybe I have a problem with my wireless link, but a continuous ping from Site2 to Site1 shows no problems with the connection. Even more telling, I have another RDP server running on a Win10 Pro machine, but it is completely offsite and I access it through the Internet at Site1. In other words, from Site2 through Site1 and then out the Internet, I am accessing another RDP server also running Win10, and I can stay connected to that machine for hours on end. So what is changing from Site1 to Site2 that is causing me lose RDP connection every time I connect? Is it a NAT problem? The weird thing I really don't understand: if I had some critical configuration or network problem, I shouldn't be able to connect to RDP at all - why is it letting me connect without problems, function without problems for about 30 seconds, and then suddenly disconnect me seemingly without reason? It doesn't make sense. |
Amazon EC2 ubuntu instance ifconfig does not show interfaces attached by attach_network_interface Posted: 09 May 2022 05:04 AM PDT I have launched a c3.xlarge ubuntu instance in a VPC. This instance supports 4 interfaces. I use ec2 python APIs to create_network_interface and attach_network_interface to add eth1, eth2, and eth3. On the AWS console, the instance is up and running. All 4 network interfaces are shown in the AWS console with the correct subnet ID. When I ssh into the instance, and use "ifconfig" to show the interfaces, only eth0 is shown. If I use "ifconfig -a", I can see eth0-3, but only eth0 has an IP address assign to it. Am I missing anything? Thanks in advance.... Edit: From the AWS console EC2 dashboard, I clicked on the instance->Description, scroll down to see the "Network interfaces" portion, it shows all eth0, eth1, eth2, and eth3. If I click on eth1 - eth3, they all show the IP address and status like this: Network Interface eth1 Interface ID eni-119f304f VPC ID vpc-873db7e2 Attachment Owner 17xxxxxxxx79 Attachment Status attached Attachment Time Fri Sep 09 10:58:58 GMT-700 2016 Delete on Terminate false Private IP Address 10.31.2.12 Private DNS Name ip-10-31-2-12.us-west-2.compute.internal Elastic IP AddressSource/Dest. Check true Description cluster001-demux-peer1 Security Groups cluster001-demux The private IP addresses are created and assigned to those network interfaces from AWS's point of view. The /etc/network/interfaces shows the normal things: auto lo iface lo inet loopback |
How can VM and Docker bridge traffic be routed through a pfSense VM? Posted: 09 May 2022 02:05 AM PDT I think this question is a result of me not being able to wrap my head around Docker networking and not being super great at Slackware. It seems like there should be a simple solution; I'm just totally missing it. I have an UnRAID server (which is built on top of Slackware), and on this server I have some Dockers running as well as a few VMs running via KVM. I have pfSense in one of those VMs, and I would like to route traffic from Docker and other VMs through pfSense. When creating a VM, UnRAID gives three options by default for choosing a network bridge:
I figured out that I could add all three of these interfaces to pfSense: assign br0 as the WAN interface, vibr0 and docker0 as LAN interfaces. What I'm stuck on now is how I make the traffic from the two LAN interfaces through the firewall to the WAN. How can I do this? I have tried a few completely ineffective things, such as setting the IP of the docker0 interface in pfSense to 192.168.2.1 and setting the default gateway in the docker0 bridge configuration to 192.168.2.1, but that doesn't seem to have changed anything. What fundamental aspect am I missing here? To summarize, I would like to route traffic from the Docker containers and from the other VMs to what pfSense considers to be the the LAN ports; from there it will be routed to my actual LAN through what pfSense considers to be the WAN port. Or: how do I disconnect the vibr0 and docker0 from the host's eth0 interface? |
Reduce cron log level with systemd Posted: 09 May 2022 04:40 AM PDT Googling for a solution, I only found articles telling me how to do it in old systems and not under a systemd maintained Linux, by changing the cron init-script adding -L parameter to the command line. I have a cron job that runs every minute. It logs every start and additionall a pam_unix-entry for each session opened and closed for the user running cron. This is a lot of babbeling in the journald log. How can I set the log level in a systemd-environment, that I only get errors and fatalities documented? |
NGINX Unicorn 504 Gateway Time-out Posted: 09 May 2022 04:05 AM PDT I try all what I found in the Google by this question, but - nothing. It doesn't work anyway. My NGINX default: NGINX Error log: Can you help to fix it? /home/rails/config/unicorn.rb |
Displaying a remote SSL certificate details using CLI tools Posted: 09 May 2022 03:02 AM PDT In Chrome, clicking on the green HTTPS lock icon opens a window with the certificate details: When I tried the same with cURL, I got only some of the information: Any idea how to get the full certificate information form a command line tool (cURL or other)? |
How can I check the partition name in FreeBSD? Posted: 09 May 2022 03:22 AM PDT I am currently running my server in the rescue mode, due to the firewall issues. In order to disable the firewall thing I would have to mount the My problem is that I dont know/remember what is the partition name to mount. I though that would be the OVH web tutorial is saying that its possible to check the partition table via the Is there an other possibility to check the partition table? |
Automate mounting a persistant CIFS drive natively on Windows. Posted: 09 May 2022 03:06 AM PDT Trying to create a script to automate mounting CIFS shares as drives on windows 2008/2012 server. The share requires a login (Unfortunately, AD can not be used) and needs to be mounted as a persistent drive that survives reboots. Windows allows below However above won't save credential for next boot. We need to use But this cmd only accepts the login details via a prompt and difficult to call from the script. Not sure if default windows server install has a native tool like 'Expect' to automate this. I like to avoid installing a third party utility. NOTE: You can not combine /USER and /SAVECRED. This apparently was supported in some older version of windows though. The other commonly suggested solutions is to put the cmd into startup folder. But I don't want to expose the password in plain text. Can anyone recommend a native solution ? |
Logwatch configured for nginx with custom log format gives empty output Posted: 09 May 2022 03:06 AM PDT Problem I have configured logwatch (CentOS 5.8, x64) to include nginx, using this as a guideline and using the Apache and nginx documentation on log formats. The problem is, that I'm using a specific log format, being: (from I have translated this log format into: for Logwatch. While studying Logwatch doesn't give any output, though, considering nginx. What I've done I have created the following logwatch files:
And I have symlinked This does not give any error when executing logwatch, but it also doesn't give any output, while there are definitely logfiles to parse. Executing Why am I not getting any output? |
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