Latest Server related questions

Score: 0
Ante avatar
Is there a way to proxy a request with Nginx without client knowing the request was proxied?
cn flag

I have an app making a request to www.example.com/blocked that is blocked by a browser plugin which results with an error GET http://www.example.com/blocked net::ERR_BLOCKED_BY_CLIENT. When in the app I change the request to go instead to my Nginx www.myproxyserver.ml/proxy, where I then proxy the request to the original website, the app still comes back with the same error message above. I am trying to  ...

Score: 0
Apache 2.4: how to show an index of files and directories?
cn flag

I'd like to configure Apache 2.4 so that where an index.html doesn't exist, the browser will display a listing of files and directories.

I have mod_dir and mod_autoindex installed and activated.

This is my config:

<VirtualHost *:80>
    
    DocumentRoot /var/www/mysite.localdev
    Servername mysite.localdev


    <Directory /var/www/mysite.localdev>
        AllowOverride none
        Fallba ...
Score: -1
krishna avatar
Is it possible to resolve a public domain in local network?
cn flag

Is it possible to resolve a public domain (ex: http://example.com/ ) in local network ?

The local network has a server which hosted a website with domain http://example.com/. The local network is connected to internet

If I enter http://example.com/ from browser, then the request should go to local DNS and fetch my web page from my server instead of public DNS and fetch public website

Score: 0
Docker postgres container instability and password fail error
ru flag

I'm running Docker 3.6.0 on a Mac. I only run one container, which is a postgres 9.6 instance. Over the last few months, I've noticed the stability of the postgres instance get worse and worse and eventually I just restart the container multiple times a day and then it keeps crashing later on.

If I stop Docker completely, then start it again, I run "container logs " (without even starting any con ...

Score: 1
NiBE avatar
Azure storage file share with AD and MacOS
ng flag

My actual simple infrastructure is composed by a VNET with inside these machines:

  • Windows Server 2019 that acts as AD controller and DNS server, sync with Azure AD.
  • Windows Server 2019 stand alone, not joined to the AD
  • A file share storage configured to use the AD for granular permission with a private end point
  • Linux box with OpenVPN server

From the AD server I mount the file share and add the righ ...

Score: 0
blacksoul avatar
Forward specific external traffic to LAN server
cn flag

I want to redirect the incoming traffic to my server, in which iptables is working, to another server in LAN. However, I only want this to work if the incoming traffic is coming from a specific external IP address. Otherwise, the traffic should be dropped.

Let me put an example to clarify it:

  • External client IP: 88.88.88.88
  • Server IP (in same LAN): 172.26.0.99
  • Destination IP (in same LAN): 172.2 ...
Score: 0
RenoFischa avatar
How to setup iptables port forwarding?
br flag

I want to access a ssh Server via a NAT. SSH Server Lan: 192.168.69.2:22 connected on interface wg0 (wireguard) local IP on interface wg0: 192.168.69.1 public IP is directly connected to eth0.

my current configuration:

sysctl -w net/ipv4/ip_forward=1
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 2024 -j DNAT --to-destination 192.1 ...
Score: 0
How do I figure out what prevents incoming connections on a certain port?
cn flag

I would like to enable SSH connections on an additional port on my machine, for reasons. It is a physical machine (not a VM), running Devuan GNU/Linux Chimaera (~= Debian 11.0 without systemd). The default SSH server (OpenSSH_8.4p1 Debian-5, OpenSSL 1.1.1k) is running fine and accepting connections on port 22 already.

I've added two Port entries to my /etc/sshd_config:

Port 22
Port 5123

and have re ...

Score: 0
dgarg avatar
why nethogs & iftop numbers for sent traffic are not correlating
gb flag

I am trying to understand the root cause of my high network egress..

GCP network monitoring shows approx 600 KB/s and bills accordingly If I do iftop on my VM, the sent (Tx) traffic sort of correlates with this number.. But if I run nethogs to understand the process which is initiating this traffic, I only get 20%-40% of the number reported by iftop..

Where is the discrepancy in nethogs vs iftop.. ...

Score: 0
my zhu avatar
VF in the same PF cannot obtain the other VF's egress
th flag

I generate 3 VFs in a PF using SR_IOV. Then I use ip link to set the VFs trust on, open the promisc mode and send pkts from VF0. But VF1 and VF2 cannot obtain the egress from VF0, the pkts go through to the other endpoint PF directorly.

I wanna know how can I catch the VF0's egress on VF1 or VF2 without set the pkts' dstmac?

My NIC is X710 and I use the command below to setup the VFs:

ip link set <pf& ...
Score: 0
Chakravarthi Selvaraj avatar
How to get internet on Custom Created DHCP Set
it flag

I have a doubt, I am having lab setup on AWS where i have AD environment. So i have Removed the Default DHCP set and Added a new DHCP set with DNS server that i have in the test environment.

Here my question is when i am using the Default Dhcp set with amazon provided DNS ineternet is working. but in when i am using custom DHCP set inter is not working on the instances. Can anyone help.

Score: 0
Public key for /etc/ssh/whatever does not match private key - but it does
cn flag

When I start my ssh service (on a Devuan Chimaera Linux box), I get the warnings:

Public key for /etc/ssh/ssh_host_rsa_key does not match private key
Public key for /etc/ssh/ssh_host_ecdsa_key does not match private key
Public key for /etc/ssh/ssh_host_ed25519_key does not match private key
Public key for /etc/ssh/ssh_host_rsa_key does not match private key
Public key for /etc/ssh/ssh_host_ecdsa_ke ...
Score: 0
france1 avatar
File uploads slow down over time with Nextcloud
in flag

When I upload a file to https://cloud.privacyy.ch I've to set File chunking to 1.5MB I also had a problem with file downloading but that was redis. I disabled redis cache..

Still, if I want to upload any file without chunking it would've 10MB/s and then goes down immediately to some KB/s like 700 and then slowly to 100KB/s and then 10KB/s. At the end you just stop it.

During uploading there's a ti ...

Score: 0
morleyc avatar
Zabbix alert on root login (but not other cPanel users)
ca flag

There is a very good answer Zabbix alert on root login for root login which makes sense.

In our scenario we have CentOS where users will login to shell accounts via SSH or SFTP, and this is creating a lot of alerts.

How would one alert on zabbix on logins on members of specific groups (in this case the wheel group), and ignore the other user level accounts?

Score: 1
Nick Hatfield avatar
Convert NGINX var from uppercase to lowercase
co flag

I need a little help with nginx conf setup. My config is basically this...

map $http_apikey $api_client_name {
    default "";

    "CLIENT_ID" "client_one";
}

server {
  access_log /dev/stdout main;

  listen 443 ssl;
  server_name localhost;

  # TLS config
  ssl_certificate      /etc/nginx/ssl/cert.pem;
  ssl_certificate_key  /etc/nginx/ssl/key.pem;
  ssl_session_cache    shared:SSL:10m;
  ssl_ ...

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.