Latest Server related questions

Score: 0
at-command: Scheduling and process priority
cn flag
SEU

I have about 10 "at" jobs. There are cases where there is a conflict of resources and I am trying to find a neat way to schedule this. Say, job#5 may want to start before the job#4 ends. Each job has a priority/weight. If job#5 has higher priority, it can kill job#1 and start. How do I incorporate such a method of scheduling?

Thanks.

Score: 1
polymath avatar
How to prevent remote access in iptables
cn flag

I have iptables set up with docker-compose but my whitelisting of only the ip addresses I want doesn't seem to be working as the server is still getting remote access attempts:

Connection matched pg_hba.conf line 95: "host all all all md5"
2021-09-01 21:36:42.132 UTC [8821] FATAL:  password authentication failed for user "postgres"
2021-09-01 21:36:42.132 UTC [8821] DETAIL:  Role "postgres" does no ...
Score: 1
azure linux has not default ipv6 route
id flag

Environment

  • VM: Linux Debian 10.10
  • Virtual Network with ipv4 and ipv6 address space and subnets
  • Public ipv4 address and public ipv6 address (standard SKU)
  • VM NIC associate public ipv4 and public ipv6 address
  • VM NIC assigned private ipv4 and ipv6 address (check with ip address)

Network Security Group:

enter image description here

Network NIC Effective routes

enter image description here

Problem

Cannot connect http://ipv6.google.com

# curl -v http://ip ...
Score: 0
DrKumar avatar
Is there an advantage to using discreet ZFS datasets/filesystems in a single zpool?
sy flag

I have a Centos server utilizing ZFS on Linux. The disks are in a single zpool. When you type in zfs list it shows a single filesystem(?)(dataset?), tank1.

NAME         USED  AVAIL     REFER  MOUNTPOINT
tank1       18.4T  25.1T     18.4T  /tank1

Inside tank1 are several directories. Let's call them myFiles, images, and users

Is there an advantage to having it setup this way versus using zfs create

Score: 0
Lucas avatar
Nginx patch request ends up with Invalid CORS request
ch flag

It's simple set up.

Three docker containers in same network.

  1. ReactJs - production build on nginx server
  2. Spring Boot
  3. Mysql

GET, POST request works like a charm but when i try to use PATCH request i ends up with

Invalid CORS request

2021/09/01 23:17:27 [notice] 31#31: *5 "/api/(.*)" matches "/api/task/assign/5/S01", client: 172.18.0.1, server: localhost, request: "PATCH /api/task/assign/5/S01 HTTP/1.1",  ...
Score: 0
suyuan xu avatar
how do I redirect a location to another but not changing its URL in Nginx
co flag

I am working on a website to display different products, users can access different product page by urls like 'mydomain.com/product/1.html', 'mydomain.com/product/2.html'

but I don't want to present those static html files directly, instead there is a php script will be loaded first at mydomain.com/product.php

so I want to redirect 'mydomain.com/product/1.html' to 'mydomain.com/product.php' but don' ...

Score: -1
Hawkmx avatar
Cannot connect a Fortigate VPN behind a static NAT to a GCP VPN gateway
cn flag

Here's the need:

Connect a Fortigate device behind a static 1:1 NAT to the Internet to a Google Cloud Platform (GCP) VPN gateway.

Simplified ASCII Diagram:

LOCAL_LAN ---- Fortigate ----- Fiber modem ---- Internet ---- GCP VPN Gateway ----- GCP_VPC

The Fiber modem is doing NAT 1:1 to the Fortigate, DMZ Mode is called on this modem.

I've followed several instructions:

How to create a VPN to an external Ga ...

Score: 0
RookieBeotch avatar
Raid 5 disk replace Centos6
us flag

I have centos 6.6 with a 4 disk raid 5. One disk is bad.

I removed the bad disk by serial number (it was sdc1).

When i rebooted with a new disk the sd labels changed.

My new disk is now sdb.

Mdadm shows my raid inactive.

Before i do anything else i wanted to know how important are the device names.

Does the same disk need to show up as sdb sdc etcc?

My mdadm conf lists them by name: sdb sdc sdd sde

 ...
Score: -2
EoGn avatar
Linux bin folder is broken
in flag

by mistake i accidentally broke my system , i installed 7zp with wine , i went to my media folder, my mouse struggled and i accidentally dragged a folder named with my user name into the main directory , i don´t know where the folder was supposed to be . the data inside that folder looked like the data from the ´´bin´´ folder. then i saw, that the bin folder was empty. i copied the data from the fo ...

Score: 0
Temporary redirects (302, 307) on a static site, frequently updated
mx flag

Optional background (to avoid the XY problem): I'm working on a static site which will contain URLs like www.example.com/książka/. The problem with those URLs is that when you share them / paste to an IM program, etc, the diacritic characters are expanded into %<hex> and become unreadable: www.example.com/ksi%C4%85%C5%BCka/. So I'm considering the following:

  • setting the canonical URL of the  ...
Score: 0
ssh into a server without a public IP from a server without a public IP that is hidden behind a server with public IP
sk flag

I have the following setup: I would like to access machine A from machine C, but neither of those have a public IP address. Machine C is, though, in the same network as machine B, which has a public IP access, hence I can access machine C from anywhere by first ssh'ing into machine B and from there ssh into machine C. I don't have root access on machine B, while at both A and C I do. See the following d ...

Score: 2
Phil avatar
How to set value of ipa_hostname directive in sssd.conf using Augeas
tn flag

Using Puppet versions

Master: puppetserver 6.7

Client: puppet-agent 6.10

I have other Augeas code in other modules that works just fine.

Example sssd.conf

[sssd]
services = nss, sudo, pam, ssh
config_file_version = 2
domains = abc.def.net

[domain/abc.def.net]
cache_credentials = True
id_provider = ipa
auth_provider = ipa
access_provider = ipa
ipa_hostname = xxx.abc.def.net

...

I need to update/ver ...

Score: 1
named rate limiting - DDOS prevention
br flag

I'm wanting to implement some rate-limiting onto our named servers and am looking for some help on making sure the values are "sane". This is what I'm thinking...

rate-limit { errors-per-second 2;responses-per-second 15; window 60; };

Even after reading the docs, I'm still not 100% sure on how "window" is working in the case, so I just wanted to get an outside opinion. Do these values look 'sane'  ...

Score: 0
woter324 avatar
Unable to connect to ESXi NFC (902) from one particular LAN segment
pk flag

I have an issue with Veeam Backup & Replication backups failing because the Veeam proxy servers cannot connect to the ESXi host over port 902 (NFC). The ESX hosts are on VLAN65 and the Veeam proxies are on VLAN60. What is really strange is that my laptop that is on VLAN50, can connect.

The Veeam error is:

31/08/2021 20:25:32 :: Processing WSVR12 Error: NFC storage connection is unavailable. Storag ...
Score: 1
Filename without extension in nginx SCRIPT_FILENAME
jp flag

I serve both php and executable files via nginx. Thus, I separate the by the extension of request URL as

location ~ \.php$ {
fastcgi_pass   127.0.0.1:9000;
fastcgi_index  index.php;
fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}

location ~ \.c$ {
fastcgi_pass  unix:/var/run/fcgiwrap.socket;
fastcgi_index  index;
fastcgi_param  SCRIPT_FILENAME $ ...

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.