Latest Server related questions

Score: 7
Oscar Andersson avatar
Give non root users permission to use one port
jp flag

I host a lab server where I am root (and a regular user).

The domain name is example.org and I give each member a subdomain, for example bob.example.org for Bob and anna.example.org for user Anna. I think you get the deal. :) The subdomains are reversed proxied using nginx to a specific port.

My question is, is there any way that I can give permission to non root users to start docker containers on the ...

Score: 2
How to block devices connecting to a specific wireless interface from accessing the internet?
eg flag

I have configured my OpenWRT WiFi router with two wireless interfaces: wlan0 and wlan0-1. My WAN ethernet interface is eth0.2.

How do I prevent devices that connect to wlan0-1 from accessing the internet, e.g. using iptables?

My context is that I have some devices (air-filters) with WiFi access to support monitoring and control, however they also upload data to a cloud server, which I want to prevent ...

Score: 0
Route traffic through IPSec tunnel with gateway host
pk flag

Considering the strongswan wiki, this appears to be a standard problem, but I can't get it working quite right.

Network layout

network layout

The local site (client and gateway) is under my control, the remote site (remote gateway and remote server) is not. The IPSec tunnel is a split tunnel such that only requests to the 10.10.0.0/16 subnet are sent through the IPSec tunnel.

Goal

I would like the client to communic ...

Score: 1
How to prevent changes of GRUB_ENABLE_BLSCFG in /etc/default/grub
id flag

With Rocky Linux 8.4 (clone of RHEL 8.4) in /etc/default/grub I have GRUB_ENABLE_BLSCFG=false

A “dnf update” that included grub2-tools changed it back to GRUB_ENABLE_BLSCFG=true

Is there some way to prevent this from happening in future grub2-tools updates? Note that the update didn’t change other entries back to their default values. For example, it kept my GRUB_TIMEOUT=20

Thanks!

Score: 0
Configure NGINX to deliver different JSON content based on $http_referrer
cn flag

I am working on a service + webapp + mobile app combo where

  • the mobile app is used to consume content
  • created by an open community of authors on the web app
  • with the whole being serviced by a server running Nginx on Ubuntu (well some requests are proxied off to backend Nginx servers) but that is a detail

The issue that I want to deal with efficiently is the one arising from the fact that the conten ...

Score: 2
Francesco Galgani avatar
Searx (based on Nginx) "Let's Encrypt" SSL certificate is not valid for Safari (iPhone and MacOS), it is valid for the rest of the world
eg flag

I have a customized installation of Searx (https://searx.me/) at: https://ricercaalternativa.mydissent.net/

It has been working properly with Letsencrypt for years now. As of a few days ago, however, the certificate provided by Letsencrypt is compatible with everything except Apple (Safari on iPhone and on macOS).

This test shows a "chain issue": https://www.ssllabs.com/ssltest/analyze.html?d=ricercaalter ...

Score: 0
Windows routes through wrong interface
in flag

I'm using Windows 10 21H1. There are several networks connected to my machine. I've noticed I cannot ping hosts in 192.168.3.* network. Here's my routing table:

          0.0.0.0          0.0.0.0      192.168.0.1    192.168.0.126     25
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    331
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    331
  127.255.25 ...
Score: 0
Juan Carlos L.A. avatar
Revert chantes after test new repository without installing new packages
bd flag

I wanted to test the changes that occurred if I installed a new PHP repository on Debian 9.
Before adding the repository I did an apt-get update and an apt-get dist-upgrade, and there were no changes.
So I added the repository, did an "apt-get update" and then an apt-get dist-upgrade --dry-run ", and also a couple of" apt-get install --dry-run package1 package2 ... "
I didn't like the changes it propo ...

Score: 2
Sara June avatar
How to load configmap from a properties file using kustomize?
cn flag

I have tried using kustomize to load properties file as a configmap.

For that, I created a sample set as in github link.

With base files:

#kustomize build base
apiVersion: v1
data:
  config: |-
    dbport=1234
    dcname=sfsdf
    dbssl=false
    locktime=300
    domainuser=
kind: ConfigMap
metadata:
  labels:
    owner: sara
  name: database-configmap
---
apiVersion: apps/v1
kind: Deployment
metadata:
   ...
Score: 0
mattb avatar
nginx upstream keep connection alive
lk flag

I'm trying to work out if it is possible to use nginx to work around the 230s idle timeout Azure App Services impose.

Our application currently has some long running http requests (and there is work to move to an async pattern, but looking for something in the meantime).

I've read that if you can pass some data over the connection then the request can run for longer than 230s - so bring in nginx!

Score: 0
Routing not working properly when two NICs connected
jp flag

We're running a server with a NetXtreme BCM5720 2-port Gigabit Ethernet PCIe card. This has two ports, which each maps to different physical id and logical names;

sudo lshw -class network
  *-network:0               
       description: Ethernet interface
       product: NetXtreme BCM5720 2-port Gigabit Ethernet PCIe
       vendor: Broadcom Inc. and subsidiaries
       physical id: 0
       bus inf ...
Score: 0
YonzLeon avatar
How to make a custom docker image can define the ENV variable
de flag

I've created a custom homemade docker image containing the vhosts configuration, how can I define variables like ServerName, DocumentRoot in an ENV when running the container.

Thanks, really appreciate to all answers

Score: 0
Dragos Andrei avatar
Files permission missing after upgrade
fr flag

I'm having the next issue.

I have a shared directory "/home/shared/users" with more users (let's say like an example user1 user2 )

Here in /home/shared/users an script generate files (let's say file1 and files 2

drwx-xr-x admin administrator /home/shared/user - have this permission and is owned by user admin and group administrator

User1 and user 2 aren't included in administrator group

In cront ...

Score: 1
Sara June avatar
How to load ConfigMap in Kustomize YAML file?
cn flag

My original YAML

base/deployment.yaml

apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: nginx
  name: nginx
spec:
  replicas: 1
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
        - image: nginx
          name: nginx
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: database-configmap
data:
  confi ...
Score: 0
Getting statistics from Exchange Online about inbound mails from external domains
it flag

I've been asked to see if we can get an idea of how many external mails we receive, and what external domains are the most "active".

Basically what's wanted is a report detailing how many mails we receive from external domains under a specified time period: I'm thinking something along these lines is what's being asked.

*@gmail.com; 450
*@yahoo.com; 200

I'm comfortable using Powershell and have started l ...

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.