Latest Server related questions

Score: 0
Ergest Basha avatar
iptables list line numbers script iptables-save -bash: number-rules: command not found
cn flag

I am trying to use a script for showing iptables line numbers from iptables-save command.

The script was taken from this site: https://blog.oddbit.com/post/2018-02-08-listing-iptables-rules-with-li/

And is as follows with number-rules name:

#!/bin/awk -f

state == 0 && /^-A/ {state=1; chain=$2; counter=1; printf "\n"}
state == 1 && $2 != chain {chain=$2; counter=1; printf "\n"}
!/^-A/ ...
Score: 0
N73k avatar
SQL Server - Optimizing Performance of a Large Dataset
pl flag

I'm using SQL Server running on an Azure VM with 8 SSDs. The SSDs are grouped together in Storage Spaces as 1 disk - in order to increase the capacity and also to combine the IOPS/Throughput. But the "combine the IOPS" part just doesn't seem to be working as far as I can tell by all of my tests/benchmarks (the "combine the throughput" part is working though). In fact, it looks like the SSD performance ( ...

Score: 0
nginx throwing 502 Bad Gateway after a period of time
in flag

We have a problem with our Nginx instance on Ubuntu (WSL) running on Windows 2019 server. We are using it as a load balancer.

It works fine but after a period of time Nginx starts throwing 502 bad gateway. Restarting the server fixes this but how do we prevent it?

Score: 0
raitech avatar
Two bonded 10Gb nics on an ESXi guest OS not using full bandwidth
cn flag

On an ESXi guest machine, with Ubuntu 18.04 operating system, two nics connected from two difference vswitch, each of them has a separate 10Gb uplink.

I made a bonded nic from these two links with balance-rr and balance-alb modes. When testing the bandwidth, it doesn't exceed the 10Gb (around 9.7gbps) limit for the bonded interface.

 bwm-ng v0.6.1 (probing every 0.500s), press 'h' for help
  input: /proc/ ...
Score: 0
Mogget avatar
How to get Gravitee to do recursive group lookups
ru flag

I have set up Gravitee APIM 3x (gateway, rest-api, console and portal). This work fine. When trying to replace the memory authentication with LDAP (FreeIPA) authentication, I am able to get the service to log users in, but they are not given a role.

The reason for this is that is, it is using the full DN of the user in the memberUid field, which only has a username in it.

A comment from @abbra made me  ...

Score: 0
WSL PING "system error"
mx flag

I have a weird PING error in WSL2, Ubuntu 20.04 distribution. When I'm doing nslookup - all ok:

root@i:~# nslookup google.com
Server:         172.19.224.1
Address:        172.19.224.1#53

Non-authoritative answer:
Name:   google.com
Address: 142.250.185.206
Name:   google.com
Address: 2a00:1450:4001:830::200e

root@i:~#

When I'm pinging by address - also ok:

root@i:~# ping 142.250.185.206
PING 1 ...
Score: -1
Why would MTU be a size of 96?
kr flag

So after discovering I can increase internet speed by tweaking the MTU, it appears I have a MTU of only 96 bytes. Any idea why that is?

ping -c 3 -M do -s 68 google.com
PING google.com (172.217.169.46) 68(96) bytes of data.
76 bytes from lhr48s08-in-f14.1e100.net (172.217.169.46): icmp_seq=1 ttl=119 time=20.2 ms
76 bytes from lhr48s08-in-f14.1e100.net (172.217.169.46): icmp_seq=2 ttl=119 time=21.7  ...
Score: 0
How to automatically save and force update of a dynamic DNS on pfSense?
ru flag

Everytime the IP address of my pfSense changes i need to manually log-in to the panel, go to Services > Dynamic DNS > Actions [Edit] > ♻ Save & Force Update

Please, how do i do this using Cron ?? I already installed Package 'Cron' and did the following (Based on another question here on ServerFault - It didn't work.)

1 1 * * * root /usr/bin/nice -n20 /etc/rc.force.dyndns ...

Score: 0
All subdomains except mail domain work, is there something I need to change?
do flag

I recently started hosting a website with Apache with friends and made a few subdomains for each persons' area. I did the DNS records and all of them work and reverse proxy to the correct subdomain.... all except for mail. No matter whether I put in the actual email server or just my test subdomain for the reverse proxy, it always comes back with ERR_CONNECTION_REFUSED. I have tried everything from swit ...

Score: 0
Forward UDP ipv6 port in a VPS to UDP ipv4 port in another VPS
in flag

I have VPS let's say VPS X that doesn't have IPv4 but only has IPv6.

and

I have VPS let's say VPS Y that doesn't have IPv6 but only has IPv4.

Since IPv4 is still common used today, and some device unable to access IPv6.

I want use VPS Y network card as an IPv4 for VPS X since VPS X doesn't have IPv4.

I want UDP Port in VPS Y is listening incoming connection from internet then forward the UDP datagr ...

Score: 0
Mohammad Saad avatar
Port forwarding on a FortiGate firewall sitting behind an ISP router
in flag

I have a FortiGate firewall (30E) which is sitting behind a router (provided by ISP). The router has allocated local IP to the firewall and from this firewall subnet is created on which the server is running. enter image description here

Router -> Global IP
Firewall -> 172.135.0.2 (Gateway address)
Server -> 10.0.0.3

Goal: I would like to expose an application (hosted on server's localhost) to the external internet.

Score: 0
In Gitab repo Merge Requests shows "Checking pipeline status" as stuck
ca flag
Geo

We recently updated gitlab server and we can see for some repos while creating Merge Requests we can see "Checking pipeline status" as stuck. We verified and confirmed settings for "Pipelines must succeed" is not enabled for this repo and also this repo has no .gitlab-ci.yml. On these job we had jenkins pipeline jobs as web hook. In https://gitlab.com/group/project/-/pipelines its empty.

But for other rep ...

Score: 0
netmat avatar
Terraform - Unable to get subnet id
th flag

I'm trying to create RDS instance via terraform and I'm having trouble getting subnet id from AWS to create aws_db_subnet_group.

I've tried many methods such as:

data.aws_subnet.test_subnet.id

aws_subnet.test_subnet.id

but everytime I'm getting error: "A managed resource "aws_subnet" "test_subnet" has not been declared in the root module."

In the root location I've defined output variable:

  output "out ...
Score: 0
F.M avatar
How to change pickupexten on asterisk 11
gh flag
F.M

I'm looking for a way to change ‍pickupexten in Asterisk 11. Is there a way?

The features.conf:

pickupexten = *8
pickupgroup=1
pickupsound = beep
pickupfailsound = beeperr

I want to change *8 with any number. But when I changed it, It doesn't work.(I restarted asterisk after the changes) I checked the source I think the *8 is hard code and it can't change so what is the solution?

Thank you for giving a ...

Score: 0
Tommy avatar
NodeJs app working when started using npm start, but not with PM2
in flag

Very new to server stuff, sorry if this may be a noob question.

Problem

I am trying to run React and Node/express on a server. React does work and when I start my node app via npm start the server actually works too, meaning: Opening the website on IP w.x.y.z shows my website and using a form submit will reach the node backend. When I try to use PM2 to run my node app it does not work. PM2 will start my  ...

Score: 2
Apache "freezes" few times a day
in flag
JYD

I'm writing here after weeks spent fighting an issue that cause Apache to stop responding until it is restarted. It happens 3/4 times a day, sometimes after hours, sometimes after some minutes, sometimes after a day. There's non relation (at least there's no evidence) with the number of concurrent connection to the server: it happens both during heavy traffic period (between 8.00am - 18.00pm) and during ...

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.