Latest Server related questions

Score: 0
AKS Azure Loadbalancer cause zombie websocket connections
cn flag

We are seeing a very strange issue using Azure Loadbancer with AKS.

We have a website that accepts WebSocket connections. this goes from client to AZ Loadbalancer and into the website itself inside AKS.

In our stress test app, we spawn 10k websocket connections. they all connect. If we then non-gracefully stop the connections, then we see an initial drop of connections between the loadbalancer and t ...

Score: 0
amirali avatar
Nginx docker container doesn't accept request
ru flag

I am trying to run a Nginx web server on a docker container. What I have done:

$ docker pull nginx
$ docker run -d -p 8080:8080 --name nginx1 nginx

Then docker ps shows the container is running. Also tesing nginx is up:

$ docker exec -it nginx1 bash
root@...:/# service nginx status
[ ok ] nginx is running.
root@...:/# curl http://localhost:8080/

{Shows the content of html file located on /etc/nginx ...
Score: 0
NGINX Redirect with a query string refusing to work
in flag

I'm adding around 30 redirects, 90% of them are straight forward URLs, however there's a few that have query strings e.g.

.com/?page_id=2966
.com/?page_id=2965
.com/?page_id=2964

All the other redirects work fine, however none of these ones work using the following rewrite rule:

rewrite ^/?page_id=2966$ /sustainable-travel? permanent;
rewrite ^/?page_id=2965$ /car-sharing? permanent;
rewrite ^/?p ...
Score: 0
vrms avatar
ssh-copy-id -- send pubkey to other location then ~/.ssh/auhtorized_keys?
de flag

I want to acces a remote server via ssh which has set the location for authorized keys set as /path/to/ssh/authorized_keys.%u.

Now I am wondering how I can motivate ssh-copy-id to create an authorized_keys file at that location following that naming convention.

I tried ssh-copy-id -i /path/to/id_rsa.pub username@[ip-addresse] -o /path/to/ssh/authorized_key.username but that gives me an error:

ERROR: comm ...

Score: 0
WireGuard allow access to single service on network
cn flag

I'm running a WireGuard server on my Raspberry Pi using the https://github.com/linuxserver/docker-wireguard image. I want to allow peers to do two things:

  1. Connect to a single NAS via SMB
  2. Ping the same NAS

I've written the following iptables rules to archive this (wg0 is the WireGuard interface, eth0 the one "towards" my network):

# Reset (flush) rules
iptables -t nat -F
iptables -F

# Allow WireGuard t ...
Score: 0
Migrating from Postgres RDS to Aurora without changing endpoint
it flag

I have around 40 micro services that connect to my Postgres RDS database. Now I am considering migrating to Amazon Aurora. Each of the connections connect to the RDS endpoint and modifying that across 40 micro services will mean that there will be quite significant downtime, coordination and stress. I am assuming that there would be a smarter way to do this, where I can somehow keep the endpoint and jus ...

Score: 1
Thomson avatar
Assigning public IP to OpenVPN client. iptables, route or what to use for that?
jp flag

I have a server with Pi-Hole configured to block Ads and trackers. The clients are connected via OpenVPN and get addresses from 10.8.0.0/24. OpenVPN only pushes the DNS to the client and the traffic is routed via the local gateway but of course, every client on the VPN can contact every other client via their 10.8.0.x addresses.

I have ordered a second ipv4 that I would like to use specifically f ...

Score: 0
Listing Scheduled Tasks
es flag

Hi I have some powershell code that lists scheduledtasks (Get-ScheduledTask) and processes them. This code works when run interactively, however when run itself as a scheduled task then some scheduled tasks are missing off the list.

I have tried using schdtasks.exe and the same occurs, although sometimes this command duplicates some of the scheduled tasks.

My issue is that I cannot understand why  ...

Score: 0
Sometimes POST request from client to backend does not contain body
pr flag

We run 2 different apps on Heroku. Both have an API written with PHP and Symfony and run through an Apache. One of the frontend clients is written with Vue the other with Angular.

In the API we serialize command and query objects from the POST body. Sometimes this process fails because fields that are needed are missing. We know this through Sentry error monitoring. There we can look into those r ...

Score: 0
Damiano Dotto avatar
sendmail not working and no log
sg flag

I'm trying to send mail from the amazon server with ec2 and ses. It's not the first time I've done this, the mail is production enabled and the amazon test works.

Trying to configure sendmail doesn't work and doesn't write any logs.

That's the only line of log /var/log/mail.log (I hide my domain and replaced with myprivatedomain.com):

The cmd: /usr/sbin/sendmail -vf academy@myprivatedomain.com my ...

Score: 0
AnJ avatar
Kerberos - configure constrained delegation using SQL Server's virtual accounts
cn flag
AnJ

I'm trying to setup Kerberos constrained delegation to solve my double hop problem.


I'm using standard SQL Server configuration with Virtual Account (NT SERVICE\MSSQLSERVER) as a service account for all my instances.

When I'm trying to perform double hop query via Linked Server I get this typical error:

Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'

The setup looks like this:

User Computer >  ...

Score: 0
Mara 01010011 avatar
Can't connect Client to other gateway when DNS is set to domain controller
ke flag

I recently configured an active directory and connected the clients via network connection settings by setting the DNS for the domain controller. But people who want to work in home office can't connect to their own gateway at home, since the network adapter settings are used for all networks.

How can I tell Windows 10 to use a different network adapter setting for the internal network but search ...

Score: 0
Kevin_Wales avatar
SPF/DKIM setup for a registrar's email forward
de flag

I have a number of domains with a registrar with straight forward forwards to another email address.

The system has worked flawlessly for a lot of years over a lot of domains but recently I created a new forward which failed on testing.

The error was not a SPF/DKIM error it was an address unknown error. The registrar insists the reason for failure is their system does not allow spf and dkim records  ...

Score: 0
Azure Security Center VM security configurations: how to suppress / exempt?
in flag

Azure Security Center has recommendations for the configuration of my Windows virtual machines (VMs).

Azure Security Center → Secure Score → Recommendations → Remediate security configurations › Vulnerabilities in security configuration on your machines should be remediated → Remediate security configurations

These recommendations are sensible and I intend to simply comply with most of them.  ...

Score: 0
PreetiManhas avatar
Unable to create WebApp in Azure
eg flag

I am unable to create Web APP because of the below error regarding the subscription even though I am the Global Admin on the tenant :

enter image description here

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.