Latest Server related questions

Score: 2
Make NFS server listen only on a specific interface
ru flag
mat

I am trying to run a NFS server (nfs-kernel-server package) on a Ubuntu 20.04 machine and want to make it only acessible via VPN.

I have set the appropriate IP address in the /etc/exports file and my firewall. Nevertheless, the rpc.mountd daemon is still listening on all interfaces (0.0.0.0 and ::). As a defense-in-depth measurement, I would like to restrict it further to only listen to connections on ...

Score: 0
SSHD keeps asking for user password even though it was configured with publickey,keyboard-interactive
us flag

I'm trying to configure sshd on a VPS instance, and would like to have an authentication witch is publickey,keyboard-interactive (public key AND keyboard-interactive).

The problem is that the server keeps asking for serveruser password on login after the public key was sent and accepted. It should only ask for the 2FA code. I am able to login using publickey, serveruser password and 2FA code.

I have ...

Score: 0
HenryM avatar
Change postgres password
jp flag

I've forgotten my postgres password for my local install (Ubuntu 20.04).

I have postgres installed and running

henry@henry-Apollo:/$ service postgresql status
● postgresql.service - PostgreSQL RDBMS
     Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)
     Active: active (exited) since Thu 2021-08-19 18:16:09 BST; 2 days ago
   Main PID: 1924 (code=exited, st ...
Score: 0
kodeone avatar
Exchange 2010 on prem to hybrid
cn flag

I'm in the middle of an Exchange 2010 to hybrid Exchange Online migration and I think that I have a problem...

I'm alone with this and I'm getting the knowledge reading the Microsoft documentation. I have a doubt and I hope that anyone of you can help me.

Right now my incoming email flow is something like this:

Internet email (I.E Gmail, hotmail, etc) --> On Prem AntiSpam (ASSP) --> On Prem Exch ...

Score: 0
user67327 avatar
Can I start gcloud shell in a specific region or zone?
id flag

It seems that running gcloud cloud-shell --project project-name always seems to start the shell instance near me rather than in the default region/zone for the project.

Is there any way to specify which region/zone to start the gcloud-shell instance?

Score: 1
jlo-gmail avatar
Reference existing resources in cloud formation
dz flag

Is there a way to reference an existing resource in cloudformation. I am looking for something similar to terraform’s datasource facility where I can find a resource by tag, etc. and then use a property such as Id.

I have an existing security group with a consistent name across accounts. If I could look up this SG in the template I could use the ID.

Azure does this. terraform does this.

Score: 0
Nostradamus avatar
Apache2 in docker using IPv6
fr flag

I'm trying to configure IPv6 on my docker container. I want to expose port 80 on my IPv6. But my website still not working on IPv6. How to check where is the problem? Maybe someone can find it in my config files:

docker-compose.yml:

version: '3'
services:
    web:
        container_name: ci4
        build:
            context: ./docker
        ports:
            - 80:80
        volumes:
            -  ...
Score: 1
alancc avatar
Rewrite Rule for URL with query does not work
cn flag

I write the following rewrite rule:

<IfModule mod_rewrite.c>
RewriteCond %{QUERY_STRING} rp=\/knowledgebase\/.*
RewriteRule ^\/customer\/index.php /knowledgebase/ [R=301,L]
RewriteRule ^\/customer\/knowledgebase\.php$ /knowledgebase/ [R=301,L,QSA]
</IfModule>

To redirect URL such as

https://www.example.com/customer/index.php?rp=/knowledgebase/5/DataNumen-Excel-Repair to https://www.e ...

Score: 0
Jérôme P. avatar
Authorize an external SMTP server to send emails for a given domain
gl flag

We're using a postfix server to send and receive mails for a domain (let's say example.org) with configured DKIM and SPF and users authenticated via SASL

We decided to externalize an application that needs to send @exemple.org emails via an external smtp server for 5 known email addresses.

No problem to send emails to all SMTP servers except to our one cause the senders email addresses are considered a ...

Score: 0
Ajaib Singh avatar
iptables not working with "x-forwarded-for" (behind Cloudflare)
jm flag

I have a webserver (Ubuntu with Apache) running behind Cloudflare. I want to block a user using the iptables. Here I want to implement the string match extension of iptables and drop the connection if x-forwarded-for matched. I am adding the rule with following command:

iptables -I INPUT -m string --string "x-forwarded-for: 216.244.66.205" --algo bm --to 65535 -j DROP

After adding this rule the client is ...

Score: 1
RUFmord avatar
Kubernetes dashboard does not start
cn flag

On my ESXi hypervisor I installed two PhotonOS VMs and made the first one a Kubernetes Master and the second one a Kubernetes Node according to this instructions from VMWare and the following two sites.

Both servers

The /etc/kubernetes/config file on both:

KUBE_LOGTOSTDERR="--logtostderr=true"
KUBE_LOG_LEVEL="--v=0"
KUBE_ALLOW_PRIV="--allow-privileged=false"
KUBE_MASTER="--master=http://k8s-master:8080"
 ...
Score: -3
Masuk avatar
Need help installing Google Manage SSL
my flag

I am trying to install google managed SSL in my website but I am seeing below error after all setup:

  1. SSL certivate status says: Provisioning

Error: Server Error The server encountered a temporary error and could not complete your request. Please try again in 30 seconds.

Website: https://www.gears4fitness.com/

Please advice.

Thank you much, Masuk

Score: 1
adeel avatar
HP server is replaced and RAID 10 started rebuilding
cd flag

We've server HP Proliant DL360p Gen8 which was recently replaced with HP Proliant DL380p Gen8. Both have same P420i Raid controller. We setup RAID 10 on DL360p, 4x500GB where 1000 GB 1 Logical Drive. We simply inserted these 4 drives in DL380 in right order just like they were in DL360. Server is restarted and started rebuilding its 2nd drive (green, blinking) while number 4 drive is with white DO NOT E ...

Score: 1
systemd terminates etcd service started with podman - reception only permitted for main PID
jp flag

I try to start etcd as a systemd service run in a container with podman.

After start I get this error log from systemd:

systemd[1]: etcd.service: Got notification message from PID 4696, but reception only permitted for main PID 4868

But etcd seem to be able to start an try to notify the container daemon:

21T15:31:08.817Z","caller":"etcdserver/server.go:2500","msg":"cluster version>
Aug 21 15:31:08  ...
Score: 2
openvpn client-connect script can't see local files?
fr flag

I run an openvpn server and I connect to it from home. My home IP is dynamic and I want to store it in a file on the server.

OS is Debian 10 and OpenVPN 2.4.7.

server.conf:

proto udp
port 1234
comp-lzo
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
dh /etc/openvpn/easy-rsa/key ...

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.