Latest Server related questions

Score: 0
STACK_MIN avatar
Cannot Forward IP and portnumber to another IP address
us flag

I am trying to forward the packets to another internal IP address in AWS. (Linux).

My scenario is Gateway(EC2)(9.19.22.22) and two internal IP address (10.0.0.5) and (10.0.0.6).

The packet coming to to 10.0.0.5 on 10009 from 17.16.0.99 (all) to be forwarded to 10.0.0.6 on 10010 port number.

iptables -t nat -A PREROUTING -p tcp -s 17.16.0.99/32 --dport 10009 -j DNAT --to-destination 10.0.0.6:10010

 ...
Score: 0
DSdavidDS avatar
Why are two IP addresses within the same subnet unable to ping each other?
be flag

I was setting up ip addresses between two devices and I noticed something odd. I feel like I am missing an important fundamental here:

Context:
Device A: 10.30.0.1/12
Device B: 10.2.0.2/12

if I set up the IP like this, then A and B cannot ping each other

However, if I do
Device A: 10.30.0.1/12
Device B: 10.30.0.2/12
OR
Device A: 10.2.0.1/12
Device B: 10.2.0.2/12

Then A and B can ping each other just fine. ...

Score: 0
Avv avatar
Will cars arrive to 2nd booth before all cars serviced at first booth?
kz flag
Avv

Suppose cars now “propagate” at 1000 km/hr and suppose toll booth now takes one min to service a car. It's also given each booth is 100 Km apart from previous booth (taken from Computer Networking: A Top-Down Approach, Jim Kurose, Keith Ross):

enter image description here

Question: Will cars arrive to 2nd booth before all cars serviced at first booth?

I answered yes, but the answer I got is, "after 7 min, first car arrives a ...

Score: 0
Max avatar
error: session_pty_req: session 0 alloc failed
cc flag
Max

error: session_pty_req: session 0 alloc failed

I am having this problem with one of my Vm's (Centos 6 in Promox). I tried the following :

# /sbin/MAKEDEV tty
# /sbin/MAKEDEV pty
# mount -t devpts devpts /dev/pts
mount: block device devpts is write-protected, mounting read-only
Score: 1
Is it bad form to create an Ansible role just for setting facts?
kg flag

I've got one of those situations where I could write a three task role to lookup, sort and extract a set of values like:

- name: Lookup available AMI instances
  amazon.aws.ec2_ami_info:
    filters: ...
  register: _ami_info
    
- name: Sort by creation date to get latest
  ansible.builtin.set_fact:
    _amis: '{{ _ami_info.images | sort(attribute="creation_date", reverse=True) }}'
    
- name: Se ...
Score: 0
Securing Apache against mod_proxy SSRF exploit CVE-2021-40438
kr flag

I'm tasked with securing Apache against CVE-2021-40438 in order to achieve PCI compliance. The server is running Apache 2.4.52 and PHP-FPM 7.4.26, each running in their own docker container. From what I've read, the version of Apache that I'm using has been patched against this issue, however, I think I'm re-introducing the problem with my need to configure Apache as a proxy for php-fpm.

The rele ...

Score: 0
hans2020dieter avatar
Routing Issue: Cannot reach target server from local network
my flag

1. my setup:

I've got an optical fibre ZTE router from my ISP for internet and telephone.

My old analog phone is connected directly to the router using the dedicated phone port on my router.

(For illustration I draw a network diagram down below.)

2. what I want:

I want to use SIP directly to make calls from my local network, instead of my old analog phone.

For example I want to install the softpho ...

Score: 0
Fred Fredonando avatar
I need to have my 2 websites to have an individual rDNS record but they both are running on the shared web hosting servers
cn flag

I'm a server noob and want to get some solution or some advice from the gurus of the ServerFault. I currently have two different live websites running and they both are using the shared web hosting servers. But I need to have those two websites to have an individual rDNS record set up for each and to work that out, it seems like I need to have those two websites migrate to two different dedicated server ...

Score: 0
Establishing SSL with MariaDB10 on Synology
cn flag

Can anyone please point me to a solution for enabling SSL connections for MariaDB10 on a Synology device?

The device is a Synology NAS running DSM 7.0.1 (Update 2).

I have:

  1. Created the recommended certificates (ca-key.pem / server-key.pem / server-cert.pem) via:
openssl genrsa -out ca-key.pem 2048
    
openssl req -new -x509 -nodes -days 365000 -key ca-key.pem -out ca-cert.pem
    
openssl req -newke ...
Score: -1
Squid is not returning http message body on debug
in flag

According to Squid documentation, when debug_options rotate=1 ALL,9 is set in squid.conf, I should see HTTP Message Body in cache.log

However, it's not showing up.

I do see, everything, including HTTP headers, but not the body.

I even tried to set debug_options to 11,9, but I only see HTTP headers, not the body.

Squid is configured as transparent proxy for both HTTP and HTTPS. The request I'm sending is  ...

Score: 0
With EDAC logging, how does one identify the DIMM slot on an HP DL380 G7?
in flag

This is a fairly specific, but basic question regarding a specific computer system in combination with Linux EDAC. If you're the TL;DR type, please skip to the section labeled Question. Otherwise, please bear with me as some information is in needed.

Motherboard Docs

The motherboard for the HP ProLiant DL380 G7 lists two ways to identify a memory slot:

  1. Population order (A through I)
  2. Slot number (1 throu ...
Score: 0
Kevin Vasko avatar
Where does /etc/pam.d/login come from and where can I tell when it changed between distro versions
ru flag

I think the first question will enable me to figure out the second question.

How can I determine when /etc/pam.d/login and /etc/pam.d/sshd changed from RHEL/CentOS 6.9 and RHEL/CentOS 7.9?

Maybe worded different. What is changing/adding/modifying /etc/pam.conf into its current on system state in RHEL/CentOS distributions.

I see https://github.com/linux-pam/linux-pam/blob/master/conf/pam.conf however it ...

Score: 1
NFS cache on Linux client but only for metadata?
tm flag

I have several mounts shared via NFS. They contain loads of files, from text files to RAW photos.

Issuing find on them is rather painful as even on 1GbE link it just doesn't happen as smooth as on local FS, even kept on spinning rust. Once i run find on given directory, subsequent reads are lightning fast. Keep in mind that i am talking about attributes as size, access rights and placement on directory  ...

Score: 0
evenyougreg avatar
Is there a way to restore a backed up .reg while deleting added keys, not just overwrite existing keys?
cn flag

I want do an export of the current state of the following path:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters

And so I can do that with:

reg export HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters C:\test.reg /y

What I would like is to perform a restore with that .reg but not just fix/overwrite existing keys, I also need to delete anything ...

Score: 0
Richard L. avatar
IIS FTPS with client authentication and OneToOneMappings
cn flag

I'm trying to implement an FTPS service on Windows 10 (i know ... i know ...), with client certificate authentication and authorization (if possible)

Environment : Windows 10 LTSC 2019 (1809) IIS (version 10 normally) Self Signed Certificate (CA will be available later) PC-A > Will host FTPS service PC-B > Will generate certificates and execute FTP client

Certificate setup : On PC-A, root certificat ...

Score: 0
MySQL memory usage crashing server
cn flag

I just want to preface this with the fact I am new to server admin work like this, but am very interested and eager to learn. I'm hosting a small WordPress site on Digital Ocean, the site is relatively new and has little to no traffic. The droplet is running a typical LAMP stack and has 1GB memory, which in my experience has been sufficient in the past as I tend to not use a lot of plugins and use fairl ...

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.