Latest Server related questions

Score: 0
sitick avatar
Best practice for deploying multi region ECS
mn flag

If I want to deploy to multiple regions on Amazon ECS, would I be able to do a Blue/Green deployment from one region to all? I can't find any indication on how to achieve this without having a Blue/Green deployment pipeline in each region. As I have the exact same infrastructure on each region it feels redundant to have to generate a pipeline for each one.

Score: 0
Multiple NAS-IP-Address check attributes in FreeRadius 3.x
ke flag

In 2.x I can add a attributes in radcheck table use the =~ operator, and a regex xxx.xxx.xxx.1|xxx.xxx.xxx.2

insert into radcheck (username,attribute,op,value) values ('username','NAS-IP-Address','=~','xxx.xxx.xxx.1|=xxx.xxx.xxx.2');

but in 3.x it failed (1) sql: ERROR: Error parsing value: Failed resolving "=xxx.xxx.xxx.1|=xxx.xxx.xxx.2" to IPv4 address: Name or service not known (1) sql: ERROR: Er ...

Score: 0
Jay avatar
docker - WebDriverError: unknown error: Chrome failed to start: exited abnormally
us flag
Jay

I am a novice in a docker container. I am trying to create a docker file that has npm, node js, chromedriver and selenium-chromedriver and run my javascript file. In my local , I run the script in the headless chrome browser.

Here is my docker file.

FROM node:17.2.0

USER root

WORKDIR /home/app

RUN apt-get update
  
RUN apt-get install git --yes

# Install Google Chrome
RUN apt-get install wget
RUN  ...
Score: 0
cloud-init userdata/metadata not loaded in ESXi
cn flag

I'm using Terraform to provision virtual machines in an ESXi environment. I do this by having once manually imported the Ubuntu Focal Cloud Image as template and cloning virtual machines from it, with parameters supplied by a combination of vApp properties and extra_config:

vapp {
    properties = {
      "hostname" = "terraform-test"
      # user ubuntu
      "password"  = "xxx"
      "user-data"  ...
Score: 1
Khan avatar
Nginx valid referers with IP
sz flag
valid_referers none domain.com;

if ($invalid_referer) {
return 403;
}

This code works perfect with domain name, I need to change domain with IP address, how this possible?

Score: 0
Jay avatar
docker - nodejs - selenium-webdriver - Error: Server terminated early with status 127
us flag
Jay

I am a novice in a docker container. I am trying to create a docker file that has npm, node js, chromedriver and selenium-chromedriver and run my javascript file. In my local , I run the script in the headless chrome browser.

Here is my docker file.

FROM ubuntu:20.04

USER root

WORKDIR /home/app

RUN apt-get update
  
RUN apt-get install git --yes

# Install Google Chrome
RUN apt-get install wget
RUN ...
Score: 0
Can I detect the event of a VM being shutdown on the OS level in Azure?
dk flag

When I shutdown a VM (Linux/Windows) in Azure it is still being billed until I explicitly deallocate it. I want to automate the deallocation after manual shutdown.

To achieve this, I need to identify stopped but still allocated VMs. Doing this on a regular interval works, but isn't as dynamic as I'd like it.

Is there any mechanism (Event Grid, Automation Account, Logic App, ...) that can be used in  ...

Score: 0
Tor transparent proxy on a middle box with nftables tproxy target
cn flag

I have the following network:

.________.             ._______.
| vm-cli | <==> <enp1s0| vm-gw |enp2s0> <==> internet
·--------·             ·-------·

vm-cli has address 192.168.255.2; enp1s0@vm-gw has 192.168.255.1; enp2s0@vm-gw, doesn't matter.

I want all the internet traffic to go through Tor. For that, I configure Tor to use a transparent socket, and use policy routing t ...

Score: 0
Kitserve avatar
Possible causes for Apache not responding on port 443
tr flag

Background: Debian Stretch amd64 server on Google Cloud with Apache 2.4.25. It's running a PHP-based website via proxy_fcgi to PHP-FPM. Backend database is PostgreSQL 10. Postgres packages have been installed from the official Postgres apt repo, everything else is vanilla from the Debian repos. There's a port 80 redirect to 443 with Let's Encrypt certificates. HTTP/2 and Brotli are enabled. There is als ...

Score: 0
fengye87 avatar
dnsmasq: serve DHCP on bridge whose IP is out of subnet
in flag

I want to use dnsmasq to serve DHCP on a Linux bridge:

  • only one VM is expected to connect to the bridge
  • the VM's MAC is fixed
  • VM should get a static IP via DHCP
  • the bridge itself should not take any IP from the subnet (but it's ok for it to take a dummy IP like 169.254.x.x/16)

Below is the config I'm using:

port=0
bind-interfaces
interface=br0
dhcp-range=10.0.0.2,static,255.255.0.0
dhcp-host=52 ...
Score: 0
Replace list placeholder with Ansible
th flag

I have a very simple ansible playbook which looks like follows:

- hosts: myhost
  tasks:
  - include_vars:
      file: ./resolved.yml

  - name: resolve placeholders
    tags: resolution
    template:
      src: "./placeholders.yml"
      dest: "/tmp/res.yml"

Given the following YAML with placeholders:

---
test:
  config: {{ prop.resolveme }}

and the following secrets YAML file:

---
prop:
  re ...
Score: 2
Torlarp Leenabanchong avatar
Identifying current main DHCP server
cn flag

There are two DHCP server of the same IP address example.(10.100.9.12 and 10.100.9.13). The gateway, subnet mask, and DNS is the same. The current DHCP are running on Vlan9. Is there any possible way to tell which one the main DHCP and which one is the backup one?

PS. In the given scenario the I'm assume both DHCP are redundant to each other and can perform Failback, Failover relationship.

Score: 0
Hussain Akbar avatar
Apache load balancing over WAN
kn flag

We have developed a PHP application to run on Apache on Linux.

Now, customer wants a load balanced & high availability setup. For load balancing, he proposes to use CloudFlare and deploy the app on on-premises servers. So, each server would have a public IP via the firewall.

However, he wants to place each server at a different location to protect against link failures as well as complete site f ...

Score: 0
wiltomap avatar
VNC viewer shows black screen without VPN access only
cn flag

I access to a Siemens HMI screen which natively includes a VNC Server.

I get a black screen when connecting either with TightVNC or VNC Viewer. After a few seconds, the VNC connection ends up and the viewer stops.

Surprisingly, if I connect through a VPN access from a public network (Forticlient VPN), the display is correct and I don't get any black screen at all.

I have tried to modify several parameter ...

Score: 0
pythonerdude avatar
django rest nginx server static in port 8000
cn flag

I am having trouble with showing uploaded media.

when I hit this URL: http://localhost:8001/media/avatars/Max.jpeg the image is found, it's working great,

but in django rest, it's showing my image url is: http://localhost/media/avatars/Max.jpeg which is wrong, coz, my server is running in different port. Also i dont want port 80 to serve my images.

enter image description here

This is nginx config

server {
    listen 8001;

    l ...
Score: 0
Zealcage avatar
Accessing to the Site to Site IPsec VPN with Remote Access VPN
fr flag

first of all sorry I am a beginner with networking/VPN.

We created a Site to Site VPN with Strongswan lets say between server A (our server 10.19.0.0/16) and server B (10.1.0.0/21). I can connect to the SQL server on B with ip 10.1.5.85.

But also I want to connect to the SQL server from my computer. We also established remote access VPN so we are able to connect to the server A from our computers. I ...

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.