Latest Server related questions

Score: 0
Sara June avatar
How to fix this yaml script of github actions?
cn flag

I am trying to learn github actions, so I purchased a course in udemy, but no response from the instructor yet.

I got stuck with the first snippet itself and getting syntax errors.

This is the action snippet I am trying, tried changing different indentations but still getting same error as syntax issue.

name: Shell commands
on: [push]
jobs:
  run-shell-command:
    runs-on: ubuntu-latest
    steps:
      ...
Score: 0
how to make vpn use other interface
mx flag

I need to establish the vpn connection on other non-default interface because vpn restricts all traffic except vpn due to security reasons and I want to keep access to the server. I have an ec2 instance (no other options for me here) with a single default interface eth0. I attached another network interface eth1

I have an ec2 instance with single default interface eth0, I attaсhed another networ ...

Score: 0
Андрей Щеглов avatar
How can i control "Disable class based route addition" with PowerShell?
cn flag

I use powershell to create a connection to VPN users. The default route checkbox can be unchecked with SplitTunneling, but what about routes based on classes ? VPN Server is StrongSWAN

My script for add VPN:

Add-VpnConnection -Name $VPNServer -ServerAddress $VPNServer -AuthenticationMethod Eap -RememberCredential -SplitTunneling -TunnelType Ikev2 -PassThru
Add-VpnConnectionRoute -ConnectionName $VPNSe ...
Score: 0
Oleksii avatar
ADFS as proxy to some IDP
cd flag

As far as I know, Exchange does support WS-Federation, but it does not support SAML. At the same time I have IDP that does support SAML, but does not support WS-Federation.

Is it possible to configure ADFS as proxy? For example: Exchange OWA/ECP -> redirect to ADFS using WS-Fed -> and ADFS speaks to IDP using SAML -> user is getting transparently authenticated using IDP?

Thank in advance. ...

Score: 0
David avatar
NGINX rewrite URL on wordpress but getting 404
my flag

I have a WordPress website where my URLs are currently written as follows
http://example.com/for-sale/12345-aaa-123-street-bbb-city/

and I would like to still serve the same URL, but I want the URL to look like
http://example.com/city/street/

I have created a rewrite rule of rewrite for-sale/([0-9]+)-aaa-(.*)-bbb-(.*) /$3/$2/ permanent;

This does rewrite my URL but returns a 404 error. Here is what the r ...

Score: 0
Windows Server 2019 accessing shares over VPN for some users
nl flag

I'm using Windows Server 2019 and have setup a OpenVPN 2.5.4 Client as a service to start a VPN link back to my pfSense box at another location. The problem is only some Windows Server users can access the Samba shares on a Debian machine on the other side of the VPN.

If I login as user A, they can see the mapped drives at \192.168.0.4 but user B cannot. User B can however ping the 192.168.0.4 ma ...

Score: 0
Enabling Hibernation of Existing VM on AWS
gh flag

I have created an EC2 VM on AWS. I have not selected the ability to Hibernate the VM during its creation. From my understanding after doing some reading, I should be able to change this setting even after its creation, but I am not able to find any reliable source regarding the procedure to follow. As an example, this site provides the process, but I am not able to see my VM at step 2, as indicated  ...

Score: 1
Awbmilne avatar
Wine in Docker - "reg add" only keeps effects temporarily
cn flag

Ive been bashing my head against a wall about this.

I'm looking to add an executable to the PATH under wine on Ubuntu 20.04. Trying to configure this from the dockerfile, but having a weird issue. Specifically, i'm trying to install python under wine such that you can call wine python. I have opted to try using embedded python and manually installing pip through get_pip.py (Not shown here).

In the Docke ...

Score: 0
Miantian avatar
Is it possible to communicate between different CIDRs?
dz flag

For example, there are two CIDRs in the same VPC on AWS. One of them is public and one is private. They are in the different segment.

# Public Subnet CIDR
10.124.42.0/27

# Private Subnet CIDR
10.124.43.128/25

If want to connect from public to private's network, is it possible?

Score: 0
O'Niel avatar
Apache2 serves PHP as plain text after updating to PHP 8
in flag

I just updated from PHP7 to PHP8. Now my Apache2 is going crazy. The server is or not accessible, or shows my PHP as plain text.

php -v

iel@MacBook-Pro-van-Niel apache2 % php -v
PHP 8.0.12 (cli) (built: Oct 21 2021 14:38:26) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.12, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.12, Copyright (c), by Zend Technologies

cat /var/log/apac ...

Score: -2
Can you find an hidden domain on a server?
br flag

I have a public server with a hidden domain that I use for dev/admin stuff. I added a "dev.com" domain in Plesk but the domain is not pointing to my server, so no one can access the website. Then I modified the windows hosts file to make dev.com point to my server IP. So when I go to dev.com in my browser, I can access the domain and use the admin features.

My question: is there a way for a hacke ...

Score: 0
FreeIPA not resolving itself
ec flag

I plan on using FreeIPA as my authoritative DNS server for my network. All other records resolve just fine, however, FreeIPA is not resolving itself.

Running dig ipa-hermes.lan.example.com yields no A records

bash-5.1# dig ipa-hermes.lan.example.com @10.0.1.14

; <<>> DiG 9.16.19 <<>> ipa-hermes.lan.example.com @10.0.1.14
;; global options: +cmd
;; Got answer:
;; ->>H ...
Score: 0
ehammer avatar
NGINX reverse proxy "if not" statements syntax?
us flag

I have an nginx reverse proxy that I want to basically redirect any url request that isn't my specific top level domain to 404.

So far I think I want something like this at the bottom of my /etc/nginx/sites-enabled/site.conf:

server {
        listen 80;
        if ($host != *domain.com) {
                return 404 http://$host$request_uri;
        }
}

but I don't know the exact syntax here. I already ...

Score: 0
yvalcorp avatar
SAS Drive Upgrade
ug flag

We have a HP Proliant server with a RAID 1 disk ( 2x 146Gb 15K SAS) configuration. The logical drive is full and I would like to expand it.

  1. I've purchased 2 x 300GB 15K SAS to replace the 146K
  2. Operating System: Windows Server 2012

Any advice on how how to replace the drives without losing data?

I have attached the RAID configuration's screen print.

enter image description here

Score: 1
Apache Not Redirecting Non-WWW to WWW HTTPS
us flag

I have a site, www.example.com, that I can't visit without entering the www. Using an Apache Virtual Host, I'm trying to make it so if non-www is entered, it's automatically redirected to www.

If I try going to http://www.example.com, it redirects to https://www.example.com and works

If I try going to https://www.example.com, it also works.

However, the problem is:

If I enter http://example.com, it red ...

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.