Latest Server related questions

Score: 0
Bob5421 avatar
Way to know the current shell in a given terminal
hm flag

I have a shell on a Unix system.

Is there a command that can tell me which shell I am working ? (bash, zsh, etc. )

Score: 0
bapak71 avatar
: High CPU Usage By adr_character Command
sx flag

My linode server is running on UBUNTU 20.4 + nginx.

Recently my cpu usage increased up to 100%. At first I thought PM2 caused the problem. Uninstall PM2 but the problem still exists. Even rebooting did not solve the problem

When I run this command,

 ps fax o uid,%cpu,%mem,time,comm | awk '0+$0 == 33 {print}'

and it shows as belows

   33  0.3 13.3 00:00:08  \_ php-fpm7.4
   33  0.0 10.4 00:00:02  \_ php ...
Score: 0
Karthik B avatar
routing or redirecting a specific url traffic to different server
vc flag

Our LAN is connected to the internet through a local squid proxy setup (10.1.0.139:3128). All users on LAN used to access the internet through this proxy server.

Recently our head office has made a different proxy server (10.0.50.50:8080) for the purpose of accessing a specific secured URL (ex: securednet.org). This new proxy server is used for the internet and for specific secured URLs.

The problem ...

Score: 0
Imma avatar
Connection Error while connecting Azure Data Studio to the Docker Image
gb flag

A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - Undefined error: 0) . I got this alert while I tried to connect Azure Data Studio to the Docker Image (on Mac M1). I have no idea of how to solve it, even researching on the internet and looking up for other Q&A.

Score: 0
Abe avatar
Magento 2 running on Ubuntu 20.04 with Nginx returns Bad Gateway Error code 502
de flag
Abe

I have a fresh install of Magento 2.4.4-p2 on Ubuntu 20.04. The PHP version is 8.1.13 and the nginx version is 1.18.0 (Ubuntu). I can see and access the home page and the following pages without 502 bad gateway error:

https://example.com/sales/guest/form/
https://example.com/catalogsearch/advanced/

Everything else including the admin page and any activity on the above pages such as a search query retu ...

Score: 0
bxk-2596 avatar
OSSEC False Positive? Integrity Checksum Changed Again 3rd Time
bj flag

I am concerned about an integrity checksum change message from OSSEC. I haven't seen this particular message before in the five years since this server has been running (not that I examine these messages closely after the initial period of the server's setup ). The file in question is /usr/sbin/groupmems.

The server is an Ubuntu 18.04 on a VPS. I also have a VM running the same version of Ubuntu. I calc ...

Score: 1
MoRK avatar
Nginx Reverse-Proxy Only Works On Internal Network
ma flag

I wanted to accomplish the following goal and get it working on an internal network, however, this doesn't work externally.

Goal: Deploying nginx to reverse proxy n servers with different private ip addresses, and only open ports 80/443 on the router and forward it to the Nginx server in the backend.

Ngix version 1.18.0 on Ubuntu 22.04 LTS (Jammy Jellyfish)

I have a domain name which points to my router's ...

Score: 0
masgo avatar
IPSec VPN between StrongSwan and DrayTek Router fails on second rekeying
br flag

I want to establish an always-on IPSec VPN between a DrayTek Vigor2860 and an EdgeRouter X (which uses StrongSwan). The Draytek is behind a NAT and dials into the ER-X. The VPN connects and works, but disconnects at the second rekeying. It then reconnects a few seconds later, but these disconnects are annoying.

The VPN is configured as IPSec in tunneling mode with IKEv2 key exchange. It uses ESP  ...

Score: 0
hemmond avatar
NFS re-export between VPN-connected servers
gg flag

I have two Linux NFS servers on two locations (two different networks), each providing at least one NFS share.

Those servers are connected through VPN and each other NFS is mounted to folder on each other (per example below SrvA's /foo folder is mounted on SrvB:/mnt/foo and vice versa).

SrvA:/foo (Ubuntu 20.04, a.a.a.1, v.v.v.1) <-> SrvB:/bar (CentOS 8.5.2111, b.b.b.1, v.v.v.2)

LAN1: a.a.a. ...

Score: 0
JokerGermany avatar
Reverse Proxy - Using Subdirectory
hn flag

I cant use cname, therefore i would like to split my services into subdirectorys.

location /ha/  
    {
            proxy_pass              http://localhost:58123/;   #local IP of my HA server
            proxy_set_header   Host             $host;
            proxy_set_header   X-Real-IP        $remote_addr;
            proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
            pro ...
Score: 0
galuzan avatar
openssh multiplex - master is running but ssh connections hangs
sy flag

So I have a server running openssh 8

[root@jnode-fw15 ~]# rpm -qa |grep -i openssh
openssh-clients-8.0p1-12.el8.x86_64
openssh-askpass-8.0p1-12.el8.x86_64
perl-Net-OpenSSH-0.80-1.el8.noarch
openssh-server-8.0p1-12.el8.x86_64
openssh-8.0p1-12.el8.x86_64

The server has an open multiplex session connected (ips replaced)

[root@jnode-fw15 ~]# ll /tmp/wk-d0307-node-a_23
srw------- 1 cyc cyc 0 Dec 26 19 ...
Score: 0
Steve Moretz avatar
Does apache ProxyPass handle tls for websocket too?
in flag

I'm new to proxypass, Let's say this is our config:

<IfModule mod_ssl.c>
<VirtualHost *:443>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's H ...
Score: -4
sgfit avatar
Why are Class E IPs in use?
cn flag

According to all documentation, class E IPs - those in the range 240.0.0.0 to 255.255.255.255 - are for research purposes only and should never be assigned or used. And yet, according to a review of access logs in a site I run, upwards of 70% of visits are coming from IPs in this "forbidden" range. Some tools break when applied to IPs in this range, so I am a bit concerned.

I was able to send p ...

Score: 0
Old Geezer avatar
User unable to access files in a folder with SUID S bit set
us flag

I have a folder which I want to share with users of a group named frx. I had applied chmod g+s to the folder, but for some reason the SUID bit (for folders in the /home/frx directory) came out as S instead.

> pwd
/home/frx

> ls -al
drwxrws---+  14 ferc frx    4096 Dec 24 23:20 .
drwxr-xr-x    8 root root   4096 Dec  2 12:48 ..
... 
drwxrwS---+  20 pi   frx    4096 Dec 19 18:50 views

From what I  ...

Score: 0
GreenCap avatar
Is there a way to create a bridge using interfaces with static routes?
mh flag

For context, I'm setting up a 3-node Proxmox cluster for personal use and am setting up 2 different mesh networks on 4 interfaces (2 interfaces per node for each mesh network). That way each node has a direct connection to every other node. To get networking to work I'm depending on static routes on each interface, configured as such:

auto lo
iface lo inet loopback

iface enp5s0f0 inet manual

ifac ...
Score: 0
André Nasturas avatar
How to rewrite completly the sender of all outbound mail in sendmail?
de flag

How to set an arbitrary sender and name and address in the From field of every email sent via sendmail, ignoring any sender information already set, replacing original.sender <[email protected]> by Noreply <[email protected]> whatever original.sender and host.tld are ?

For context, the mails are sent by a java application using simplejavamail library, which sets variable sender names ...

Score: 0
Secure SQL Server and other traffic with end to end security
cn flag

All,

I am wondering if there are any best practices or ways that I can open up secure access to a service such as (for example) SQL Server, or any other program normally requiring a port to be opened and whitelisted?

I have a non-production development server in AWS and I want to allow port 1433 open to my lab at home, but I want to lock down the data, keeping it secure.

Currently I have bi-directional ...

Score: 0
sanja avatar
Couldn't resolve host name for http://vault.centos.org/centos/8/AppStream/
cn flag

Every time I run a command on my virtual server, I get the following error centos8

[root@servers03 ~]# dnf install epel-release CentOS Linux 8 - AppStream 0.0 B/s | 0 B
00:00 Errors during downloading metadata for repository 'appstream':

Score: 0
Kani avatar
In centos7 using iptables how to allow port 3306 for only specific ip
in flag

I'm trying to setup a rule in iptables where I allow port 3306 with only specific ip. tried this below command, not working. any help could be appreciated.

iptables -A INPUT -p tcp -m tcp -s 122.16.69.56 --dport 3306 -j ACCEPT

Score: 0
Jayser avatar
Setup mail server in Docker with FreeIPA and Roundcube
de flag

I try to setup my own mail server with authentication against a Ldap(FreeIPA). All of them must running within a docker container. I don't know what I'm doing wrong. Maybe it's my ldap configuration.

version: '3.9'

services:
  freeipa:
    image: freeipa/freeipa-server:centos-9-stream-4.10.0
    container_name: ipa
    restart: unless-stopped
    tty: true
    stdin_open: true
    hostname: ipa
   ...
Score: 0
Maksim Zakharenka avatar
VPN IKEv2 connection problems on Android, IKE_SA failed
bf flag

I have a big problem with connecting to my VPN server from 50% of Android devices. Cannot resolve it 2 weeks with network and android developers

VPN server based on IKEv2 with Charon and Strongswan libs, and it works stable with iPhone devices But on Android devices it fails with error “IKE_SA failed, peer not responding” after 3 retransmits of sending IKE_SA_INIT requests

I tried to gather info ...

Score: -1
fortyfeet avatar
Can't connect to AWS RDS unless using a VPN?
pg flag

I've been trying to connect to an AWS RDS (postgres) instance. It is setup to be publicly accessible, and I've checked the inbound and outbound security rules. The port is set to the default of 5432.

I have been trying to open a socket to the endpoint, using:

telnet ****.amazonaws.com 5432

this has been hanging, but when I use a personal VPN I've setup (through digitalocean), the connection succe ...

Score: 1
Shiyao Wang avatar
Can DHCP Option121 work with DHCP Option3 together?
cn flag

I have a router with DHCP Option3(Router) set, and it works well.

DHCP Option3

My Ubuntu22.04 machine was able to configure the default route automatically.

Ubuntu Route Option3 Only

Yesterday, I configured DHCP Option121 (Classless route) on my DHCP Server.

DHCP Option121

After this configuration change, my Windows machine was able to get both configuration information (3 and 121) from DHCP.

However, my Ubuntu22.04 machines dropped configuration informat ...

Score: 0
Aakash Gujar avatar
Renamed executable files Cmd and Utilman and now its not opening
ga flag

I forgot my windows password So I tried to change "Accessibility" to "Cmd" on Sign-in windows by following these steps:

Opened Advanced Startup Menu > Trouble Shoot > Advanced Options > Cmd

In cmd I renamed my files in my System32 :

1)Renamed utilman.exe to utilman1.exe
2)cmd.exe to utilman.exe

I tried renaming it back to it's default name But it's not working for me and I'm unable to open bo ...

Score: -1
RDP Client showing different screen (related to SConfig) on VM Startup
US flag
  1. I have created a VM of Windows Server 2022 Datacenter Azure Edition x64 bit in Central US.
  2. I have installed the IIS Web Server while provisioning the VM itself by selecting the custom script extension at Advanced Menu:

https://i.stack.imgur.com/oB4Hb.png

  1. I have selected the PowerShell script stored in the Storage account container.
import-module servermanager
add-windowsfeature web-server -include ...
Score: 0
rnd om avatar
Cockpit using Nginx - with private ip only
cn flag

Context:

I have an ec2 ubnutu 20.04.5 LTS instance - which sits in a vpc with no public ip.

On that, I have nginx:1.23.2 running in a container and cockpit installed directly on the host.

The way it is currently configured, if I visit my private ip in the browser while on vpn, I am able to reach the login screen for cockpit. For example http://10.235.66.23/ leads me to login.

When I attempt to logi ...

Score: 0
lovellax avatar
Combine netem with pfifo_fast at the root
nl flag

I am unable to combine netem with pfifo_fast so that at the root I have pfifo_fast and then netem as sub childs on the same interface.

I can afford to run sudo tc qdisc add dev <interface_name> root handle 1:0 pfifo_fast and then sudo tc qdisc add dev <interface_name> parent 1:1 handle 10: netem rate 200mbit but running the same 2 commands but with swapped positions for pfifo_fast and ...

Score: 0
droid001 avatar
Stuck on php8.1 when downgrading to php7.4
ba flag

I upgraded the php version on my Apache server running on Debian (buster) from 7.3 to 8.1. Due to an older Nextcloud installation I had to downgrade to php7.4. The downgrade worked well following instructions like this, but the server is still reporting it is on the previous version 8.1.13. I placed a simple phpversion() file to check out the server version and the Nextcloud installation is complaining ...

Score: 0
Charles Johnson avatar
Nginx - redirect subdirectory to a different domain without changing URL
jp flag

We've set up a Matrix-Synapse chat server at the root of one domain, and we'd like to redirect the /element subdirectory to the Element client hosted at another domain, but without changing the browser's URL.

We've previously used an nginx configuration like this to achieve it, but for some reason it's not working with this setup. The redirect works, but it's changing the browser URL. Here's the  ...

Score: 0
How to set "mode" in mdadm
ng flag

Want to "activate" RAID5 spare by using spare-devices=0

nov25-1@nov251-desktop:~$ sudo mdadm --detail /dev/md122 --spare-devices=0

getting this response:

mdadm: :option --spare-devices not valid in misc mode

How do I add correct "mode": to the mdadm --detail /dev/md122 --spare-devices=0 command ?

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.