Latest Server related questions

Score: 0
lzkill avatar
GUID packet routing on Amazon Linux 2
cn flag

I have several programs that interact with a rest api, each one with a different call rate. My goal is to run all of them on the same vps using supervisord. But if I do it without any control mechanism the remote api gives me lots of rate violation errors. I'm running an Amazon Linux 2 instance with two interfaces and two elastic IPs attached.

What I'm struggling to do is routing the calls from so ...

Score: 0
OSCAP doesn't work for remediation on Ubuntu 18.04 install
dz flag

my oscap for ubuntu 18.04 doesn't remediate with the commands or through the gui through the scap workbench

oscap xccdf eval --remediate -profile profilename xmlfilename

this checks and shows the results for each STIG configuration, but then at the end of the output from the command it shows

---starting remediation---

but never performs the remediation

do I need the ubuntu advantage subscription for os ...

Score: 0
SSH login to gcp instance from unknown address?
in flag
bnh

I just logged into one of my Debian GCP instances and it reported the last login was from an IP address owned by google that I am not familiar with (not me and I have not given third parties access). Has this happened to anyone on GCP before?

Score: 0
Kim avatar
Creation of a windows service with credentials powershell
in flag
Kim

I am trying to create a powershell script that can set up and configure a windows service on application server

[string]$serviceAct = "myadminact"
New-Item C:\Temp\pas.txt
Set-Content C:\Temp\pas.txt '72233322d113443434343'
New-Item C:\Temp\e.key
Set-Content C:\Temp\e.key '113' (The key is longer I just shortened)

$serviceActPw = Get-Content C:\Temp\pas.txt | ConvertTo-SecureString -Key (Get-Conte ...
Score: 0
Major Kuprich avatar
Varnish doesn't open backend connection
us flag

How can I connect Varnish container with PHP-FPM + NGINX containers? Docker started correctly, site works but backendopen logs are empty.

Backend is healthy (returns HTTP 200 status).

varnishlog -g raw -i Backend_health

0 Backend_health - default Still healthy 4---X-RH 7 5 10 0.048069 0.065633 "HTTP/1.1 200 OK"

From http (nginx) container I see request in docker logs.

docker logs http

[10/Sep/2021:17: ...
Score: 0
Julian Bechtold avatar
Ubuntu server 20.04 LTS - Installing nvidia & cuda installs gnome as well
uz flag

I have a GPU server which requires cuda for example for machine learning tasks.

unfortunately, as soon as I install the NVIDIA drivers and cuda, apparently a variant of gnome is installed as well. This gnome variant can almost do nothing, the shell is not working and apparently it comes with some desktop settings which are really annoying me.

For example per default, it sets shutdown after 20 minute ...

Score: 0
nftables loopback connections not working in CentOS 7
ru flag

I have removed firewalld and installed nftables in CentOS 7 (kernel 3.10.0-1160.42.2.el7.x86_64). My ruleset is as follows:

# nft list ruleset

table ip my_table {
        set ssh_evils {
                type ipv4_addr
        }

        set sip_evils {
                type ipv4_addr
        }

        set dialers {
                type ipv4_addr
        }

        set sip_origins {
                 ...
Score: 0
Chris Stankevitz avatar
"logon session does not exist" when cmdlet wrapped in do-nothing Invoke-Command
in flag

While logged into HOST1, my user can successfully run this powershell command to move a running VM from HOST1 to HOST2:

Move-VM -Name DC02 -DestinationHost HOST2 -IncludeStorage -DestinationStoragePath "V:\Virtual Machines\DC02"

However, this command (which does the same thing because HOST1 is localhost) fails:

Invoke-Command {
  Move-VM -Name DC02 -DstinationHost HOST2 -IncludeStorage -DestinationSto ...
Score: 0
Elcid_91 avatar
New Samba user creating folder missing write attribute
za flag

smb.conf:

[Client-Billing]
   path=/server/Client-Billing
   force group = company
   guest ok = no
   valid users = @company
   writeable = yes
   create mode = 0775
   directory mode = 2775

Several users use this folder without issue. Created a new user but when a folder is created by this user, Samba is not setting the proper "write" flag on the folder; therefore, no one can place files inside it. ...

Score: 0
onev avatar
Sievie for outgoing mail - dovecot
jp flag

I need to make a filter for outgoing mail. To copy messages if "to" contains the given e-mail address.I have:

# rule:[Copy to slack]
if address :contains "to" "test@example.com"
{
    redirect :copy "XXXXXXXXXX@example.slack.com";
}

and i try

# rule:[Copy to slack]
if address :contains "to" "test@example.com"
{
    redirect :copy "test2@example.com";
}

or

# rule:[Copy to ]
if address :contain ...
Score: 0
Boppity Bop avatar
How to reset / renew / edit GCP ephemeral external IP?
cn flag

I have dynamic external IP on a GCP VM. I need it to be different. However I tried to restart VM it is always the same. I appreciate that Google is trying to do good for their customers and it is cool to have quasi-static IP for free.. But I need to change it!

Is there simple way to do so ? (I mean without re-creating VM, some CLI command for example?)

EDIT since not even clearing networking settings i ...

Score: 0
John Beavers avatar
Can I segment my network based on two different criteria?
de flag

I work at a school with several campuses and I would like to segment my network with VLANs. So, phones on one vlan, printers on another, etc. I was thinking it would be nice to segment by campus, as well. That seems like it would be some sort of nested vlan where there is a vlan for the High School, and then for the phones in the HS, and so on.

Other than nested vlans, I thought about making the  ...

Score: 0
Disallow access to all files except a alias in Apache 2.4
ru flag

I have a Debian 11 web server that is setup with the Matomo analytics PHP software. In the site's configuration I have these lines:

<Files "*">
    Require ip 192.168.0.0/24
</Files>

<FilesMatch "(^piwik\.(php|js)|^matomo\.(php|js)|^container_.*\.js|robots\.txt|optOut.js|favicon\.ico)">
    Require all granted
</FilesMatch>

Alias "/csp" "/www/vhosts/csp"
<Directory /www ...
Score: 0
Recovering image using sysrcd after boot failure?
us flag

I have a dedicated server was running centOS with CentOS Web Panel, I've moved some /boot files and rebooted the server and it did not reboot.

The server is unmanaged, sent a ticket for the hosting support they told me to reload using Sysrcd, did that.

I don't know how to use it and what to do next, can you guys please help?

Can I recover or get the files and databases at least using sysrcd (via SSH) o ...

Score: 0
mysql_install_db wrong charset and collation
in flag

I am creating a new server with the mysql_install_db tool. It sets the correct datadir, port, password, service etc. But My problem is that the charset and collation of my base tables are wrong. They need to be utf8mb4 and utf8mb4_general_ci.

I can't find a way to change these tables with the installation. When I change my.cnf/my.ini it only changes for newly created databases. But Since mysql_in ...

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.