Latest Server related questions

Score: 1
Ansible include_vars: Including dictionary variables from a file

I'm trying to load dictionary variables from a file and can't access the variables inside. Could you please help me? sorry for so simple a question

Here is a working code example:

---
  tasks:
  - name: Dict test
    vars:
      users:
        alice:
          name: Alice Appleworth
          telephone: 123-456-7890
        bob:
          name: Bob Bananarama
          telephone: 987-654-3210
    debu ...
Score: 2
Fail2ban ipset - which conf to use?
in flag

I have read that iptables can be slow in case of large number of ip addresses and ipset is more preferred in that scenario. I would like to use ipset banaction but there are at least 3 of them, iptables-ipset-proto4.conf, iptable-ipset-proto6.conf, iptables-ipset-proto6-allports.conf, so which one to use?

OS: Ubuntu server 20.04
Webserver: Nginx
Fail2ban: 0.11.1
Ipset: 7.5

Score: 0
nginx nested location directive inheritance when applies and when does not
cn flag

I know that I have to duplicate the proxy_pass in both locations below, do the proxy_set_headers also have to be duplicated?

location / {
  proxy_pass http://mywebfeservers;
  proxy_set_header  X-Real-IP  $remote_addr;
  proxy_set_header  X-Client-SSL  YES;
  proxy_set_header  X-Forwarded-For  $remote_addr;
  proxy_set_header  X-Forwarded-Host  $host;
  proxy_set_header  X-Forwarded-Port  443;
  pr ...
Score: 0
Connection randomly timeouts
br flag

I had to develop an application that makes a request to an external web server and get the response back, sounds easy right? Well no.

The problem is that not all the request I make to that server are correctly routed, by means sometimes the request arrive at destination and other do not (it gives me ECONNTIMEDOUT)

I have tried to use the ping command to that server, and I get the exact behavior as befor ...

Score: 1
cjones avatar
ProxyPass and ProxyPassReverse causing 500 error on server
in flag

We have the following:

  • WordPress static website at https://www.domain1.com.
  • React/Django Web application at https://www.domain2.com with three main URIs:
    • /
    • /admin
    • /api

We would like them to appear like they are the same domain at https://www.domain1.com. I was told this could be done by setting up a Reverse Proxy on the Apache web server that is at https://www.domain1.com. Due to this we'd ha ...

Score: 0
John Rambo avatar
Salt state file doesn't load info from pillar
no flag

I'm getting this error when I'm trying to apply my statefile to my minion: client.school.test: Data failed to compile:

Rendering SLS 'base:nextcloud2' failed: Jinja variable 'list object' has no attribute 'db_name'

I'm trying to enter the data required to create a mysql database and user. The data is the file mysql.sls in the directory /srv/pillar

  mysql:
  - user: dbuser
  - password: Password91!
  - d ...
Score: 0
louis habert avatar
Nginx/proxy not working properly
de flag

I recently uninstalled apache2 for Nginx I'm trying to listen on 88, 808 and 888 for my sites and redirect different subdomains for each (and another domain to another server). the problem is that Nginx is giving bad gateway for all proxied requests and timeout for the direct ip access.

proxy conf : --> otherdomain.fr = eror 502 bad gateway

# HTTP
server {
    # Listen on ipv4
    listen 80;
    #lis ...
Score: 1
Asmodean avatar
Firewall to use when server has docker app hosted?
us flag

I use ubuntu 20.04 with portainer and nginxproxymanager to host my apps. Some are still being hosted bare metal but I am planning to transfer all to docker soon enough.

But the problem is ufw, which I have been using does not integrate with docker apps. The set up is:

portainer - docker compose/stacks - nginxproxymanager - Gateway IP with its web UI port - subdomain name and ssl.

  1. once ufw is up,  ...
Score: 0
Postgres Role required to grant CONNECT on a specific database
cn flag

I am trying to GRANT CONNECT on a DATABASE to a user as a schema owner in that database.

The schema owner is not a superuser.

Do I need to be the owner of a database to execute

GRANT CONNECT ON DATABASE DBXXX TO USER_YYY; ??

What role should a user be granted other than superuser to allow it to grant connect?

Score: 1
user16411104 avatar
NFSV4 w/CHMOD & CHGRP
ro flag

I'm just starting off with NFSV4 and had a few questions. So normally when creating an NFS share on a NAS filer and mounting on a client I would run a chmod & chgrp to set things up the way I want.

Now, I have done that already on existing exports.

When I move to NFSV4, what happens to those changes that were made on the exports?

Do the ACL's that get applied for NFSV4 surpersese those changes?

 ...
Score: 0
Mehran avatar
How can I setup and verify GRE tunnel pn ubuntu server?
ar flag

In the scenario below, I'm going to configure SQUID and WCCP for web caching mechanism.

Currently, WCCP is configured on router and squid is configured on UbuntuServer,

but really I do not know anything about GRE tunnel and how it can be configured on Ubuntu Server.

Can anyone help me, please??

enter image description here

Score: 2
Grant Curell avatar
How does RDMA transfer between two servers without the CPU?
mx flag

I've been reading about RoCE and it talks about transferring data zero copy between the memory in one server directly to the memory of an application in another server. Most articles make a point to say this is done without involvement from the CPU. I don't understand how this is accomplished though. How does the data get from the adapter to the RAM without any processing from the CPU? How does it know  ...

Score: 3
Add a server to an already running DRBD9 configuration
mx flag

I am on CentOS7 and I have an existing two-cluster HA node running pacemaker (1.1.23-1.el7_9.1) and DRBD (kmod-drbd90-9.0.22-3.el7_9). The backing partition for the DRBD drive is LUKS encrypted. We are adding a third server to the stack, but after updating the configuration, the drbd drive on the new server does not connect.

Status

The current status, as shown by the new box is:

[root@svr3]# drbdadm st ...
Score: 0
GuyMatz avatar
fine-grained access for GCP OSLogin / osAdminLogin?
id flag

Is it possible to control which users/groups get which sudo privileges? Or is it an all-or-nothing proposition?

Score: 0
John Beavers avatar
How do I, or is it possible to, in rsyslog map non-standard field names to standard variables?
de flag

I'm working on centralizing my logs to a syslog server and will have a fortigate and Windows servers (2016) sending syslogs to a single linux server running rsyslog and store them in mysql. I configured the fortigate to send syslogs, but the rows in mysql from the fortigate do not have the same field names, so the data is not recorded in all of the columns in mysql.

For example, a syslog from the ...

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.