Latest Server related questions

Score: 0
Dan Wilt avatar
Why is my PHP CLI Curl version different from curl and libcurl even if I try to force it with --with-curl flag during compilation?
jp flag

I have compiled PHP after compiling Curl 7.73 .

Curl -v shows me it's 7.73, and if I go to my web server and check phpinfo() output it's also 7.73 .

However, the compiled php cli is showing me that it's running Curl 7.68 !

To confirm this, I checked the output of php --ini and also ran a script from cli to get the output of curl_version() .

In order to try to force php cli curl version to be 7.73 I recomp ...

Score: 0
Docker container port mapping 80:80 only works on localhost but not from external access?
id flag

Logged in my intranet server via SSH on IP 10.10.245.209 (port 22 of course)

Created a docker-compose.yml:

version: '3.8'
services:
  php-apache-environment:
    container_name: php-apache
    image: php:8.0-apache
    volumes:
      - ./php/src:/var/www/html/
    ports:
      - 80:80

And in ./php/src I have index.php:

<?php
echo 123+123;

I use docker-compose up -d in the current directory, an ...

Score: 0
GeoCom avatar
Use online VM as default Gateway (Jump box)
ru flag

I have two Ubuntu servers:

  • Server 1 (IP: 192.168.10.11) is online and connect to two network interface (internal, public)

  • Server 2 (IP: 192.168.10.10) with no public access (internal)

I am trying to use server1 as a default gateway for server2, and this is what I've done:

# on online server (Jumpbox)
iptables -t nat -A POSTROUTING -s 192.168.10.10 ! -d 192.168.30.1/24 -j MASQUERADE
echo 1 > /p ...
Score: 0
Segfault avatar
Nginx how to forward 8080 to 80
cn flag

Currently i have wordpress running on 192.168.2.1:8080

Nginx listening on port 80

I want to redirect all http request on port 8080 "http://192.168.2.1:8080" to port 80 "http://192.168.2.1"

My current nginx conf me does the opposite : "http://192.168.2.1" points me to "http://192.168.2.1:8080"

server {
listen 80;
server_name 192.168.2.1;

location / {
  proxy_pass http://192.168.2.1:8080/;
}

How shoul ...

Score: 0
Postfix SPF mailfrom
ma flag

I've setup postfix on my VPS Ubuntu 18.04 and I've followed guides to setup DKIM, DMARC and SPF. I have multiple domains on the server and I'm trying to send email from a domain which is not the same as my hostname. (sending via php mail() function)

I have sent an email to Gmail and I've got 3 passes:

       dkim=pass header.i=@second-domain.com header.s=default header.b="xxxxxx/M";
       spf=pass (g ...
Score: 2
Cannot SSH to github.com after changing to static IP
br flag

I've been using github.com for a long time, but just had my ISP switch my home internet to a static IP and now I can't SSH to github.

What happens with SSH?

The id_ed25519 key has just been re-generated. SSH just stops:

$ ssh -T -F ~/.ssh/config git@github.com -vvv

OpenSSH_8.1p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/xxxx/.ssh/config
debug1: /Users/xxx/.ssh/config line 1: Appl ...
Score: 0
how can I check which process is sending SIP and RTP traffic to which server on windows
cn flag

My company uses a web based softphone to receive or make calls to customers. but that softphone platform is provided by a third party.

Now I want to figure out, our web based softphone will connect to which server when user is making call, I need to know the FQDN or IP address of server, in order to route those voice traffic to a dedicated link.

I tried to find that by using tcpview64 , but it can't ...

Score: 0
wrieedx avatar
Adding "Never saved" websites to Edge via Group Policy, Registry, Script, etc
cn flag

I would like to push "Never saved" websites to users' Chromium Edge settings. The goal is to disable password saving for these particular websites/domains.

The method doesn't matter, only the end result. In this way, solutions that use Group Policy, registry change, script, etc. are all okay if they work. (Of course, adding the settings manually is no good).

NOTE: I have searched the Group Policy se ...

Score: 0
Build a collection of unique root directories
cn flag

I have recently purchased around 125 Wordpress sites. They're all based around the Avada theme but have a customised child theme. FYI (from what I've learned) child themes are basically a directory into which override files are placed to change the behaviour of a parent theme. For example if I wanted to change an aspect of the header, I'd copy the header.php from the parent theme into the child theme ...

Score: 0
NBajanca avatar
GitLab Runner for GitLab server with CA signed certificate failing with: self signed certificate in certificate chain
md flag

My company changed the Certification Authority (it was a single CA and now we have a root CA and an intermediate CA). I changed the configuration in the GitLab instance with success and moved to the runner (that is on a Ubuntu 18.04.5 LTS). I tried to follow the GitLab docs without success.

I followed the default approach here that says "Default - Read the system certificate", and so I added the  ...

Score: 0
KKlouzal avatar
Disable Anonymous Proxy (Force Kerebos Proxy)
es flag

We have a proxy server in place in our corporate environment, recently a major version upgrade to the proxy server has created some headaches.

Is there any way in windows, either via registry or GPO, to disable anonymous proxy server access and force it to use authentication every time?

I can see in my proxy server logs when a user requests a resource on the internet two things will happen, first an ...

Score: 0
Tylor Pater avatar
OpenVPN Allowing Cross-NAT traffic over two NICs
id flag

I'm running OpenVPN on Ubuntu 20.04, and I'm trying to allow users to access servers that are on a different subnet. Here is a diagram of what the network looks like:

Diagram of network

So, eth1 is connected to DHCP and the wider internet, and eth0 is connected to a private network with the servers on them. So the VPN is running on eth1 (192.168.1.0/24), but I need to be able to access the machine ...

Score: 0
Joe avatar
Can I have specify TLS configurations in a template?
br flag
Joe

I am trying to set this up for SIEM ingestion on RHEL 8. I have this configuration below, however, the normal non-tls TCP doesn't work.

I know the problem is because I have gtls globally and in my imtcp module - that is obvious, but what I cannot find is how to add this configuration into just a single input template that I can add to each need ruleset. Can that even be done?

I have tried adding the ...

Score: 0
MS365 + Hybrid Exchange Distribution Group Oddness?
co flag

So, one of the companies I work with encountered some chaos in their hybrid MS365 / on-prem deployment.

There is a distribution list (we'll call it distlist1@example.com) which is present on both the on prem and MS365 side of management consoles. However, while on-prem Exchange control panel shows distlist1 as accepting mail from both inside and outside the organization, MS365 has decided to ignore  ...

Score: 0
RightNow avatar
How to redirect UDP traffic based on conditions?
ma flag

I have several programs which accepts UDP connections for certain ports (for example, it’s 8899, 8898). I’d like to forward connections from port 8888 to one of these based on some conditions: they may be stores in a file on the system or in redis, etc… Connections will be from external clients. So I need to add/remove these conditions at any time. Also there maybe no conditions for certain connec ...

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.