Latest Server related questions

Score: 0
Running Powershell scripts pushed from AD GPO as admin on domain computers
eg flag

Needed some help getting a simple task done at work.

I have about 30 machines in my work domain that i want to run a power-shell script on at startup. I have created a GPO that runs the script on all machines at startup and all machines have the GPO applied successfully. The power-shell script is supposed to lookup a service on the machine and if it finds it, it starts it up and that's it. If the ...

Score: 0
zar3bski avatar
Iptables: how to allow forwarding from wireguard NIC only to some IP
cn flag

Context

I successfully integrated Wireguard in my LAN so I could access my NAS (192.168.1.45) from the outside.

|Router|     ===:5182=> |VPN server|        ====> |NAS|
192.168.1.254           192.168.1.21 (wlan0)      192.168.1.45
                        10.10.10.1 (wg0)

Packets forwarding through my VPN server relies on:

  1. ip forwarding in /etc/sysctl.conf (Cf my script)
  2. the following rules ad ...
Score: 1
Sergey Pervushin avatar
Subdomains as subfolders and symlinks
gp flag

I have a main wordpress and several subdomains. They were created in the usual way - I added subdomains to the panels (Fastpanel), and in the subdomain folders I added symbolic links to the files of the main domain. It works perfectly as expected. But the question arose about adding 100 of the same subdomains and creating new sites is not really very convenient.

I decided to try adding subdomains ...

Score: 0
Iptables hitcount instantly blocks ssh
mx flag

Need some help with iptables. I always use to have vps with public ipv4 ip and used these rules in iptables to block ssh connections that tried to connect too many times.
-A INPUT -p tcp -m tcp --dport 22 -m state --state NEW -m recent --update --seconds 180 --hitcount 3 --name DEFAULT --mask 255.255.255.255 --rsource -j DROP
-A INPUT -p tcp -m tcp --dport 22 -m state --state NEW -m recent --set  ...
Score: 0
Rob Campbell avatar
Samba Domain Member and DNS Problems
au flag

I am trying to use my Fedora 34 workstation as a domain member but I'm having problems. First problem is that when I join the domain, I get an dns error.

net ads join -U Administrator

Enter Administrator's password:
Using short domain name -- HOME
Joined 'FSDM01' to dns domain 'home.test-server.lan'
DNS Update for fsdm01.home.test-server.lan failed: ERROR_DNS_UPDATE_FAILED
DNS update failed: NT_STATUS_U ...
Score: 1
MySQL won't start randomly, can't figure out why
uz flag

I have tried every Stack Overflow article I could find and I can't get this to work. I had an EC2 instance that was a little too small so I upgraded it. MySQL won't start no matter what I do.

This is the error:

● mysql.service - MySQL Community Server
     Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2021-11-06  ...
Score: 0
newcomers avatar
access my website (Nginx) Through another machine from local network
vn flag

I work on K3S kuberentes cluster on ubuntu.

Local IP address 192.168.111.2
public IP address : 192.168.20.90
ip loadbalancer : 192.168.111.100

I build an Nginx with the k3sdomain.com domain on my K3S cluster.

I can access my k3sdomain.com from my machine and another computer in a local network, simply type k3sdomain.com through the browser, but I need to put my hostname On another /etc/hosts machin ...

Score: 0
How to install domain joined printer on print server via powershell on a non domain joined computer?
ai flag

My experience is that so far ANYTHING I tried the installed printers print properties / Feature / Color: section is always No unless the client computer is on the domain and I install it so it looks like "printername on printserver.domain.local"

We use Universal Printing Driver 6 PCL (7.0.0) because that is what the package was made for.

If we use the printer's unique driver, it works.

I find no way to ...

Score: 1
tmath avatar
Bitnami Apache: Rewrite HTTP to HTTPS
in flag

I'm trying to redirect all HTTP requests to HTTPS in a Bitnami LAMP environment.

At first I followed the steps here but it did not work. I also tried the answer of this question and basically everything in between.

Here is what I have currently.

bitnami.conf:

# Default Virtual Host configuration.  

# Let Apache know we're behind a SSL reverse proxy
SetEnvIf X-Forwarded-Proto https HTTPS=on

<Vir ...
Score: 1
Darrell Brogdon avatar
Why doesn't the "break" directive in my nginx configuration stop rewrite processing?
fr flag

I have the following nginx configuration:

server {
    listen 80 default_server;
    listen [::]:80 default_server;

    root /var/www/html;

    index index.php;

    server_name _;

    if ($uri = /foobar) {
        break;
    }

    if ($remote_addr != 1.2.3.4) {
        rewrite ^ https://google.com redirect;
    }

    location / {
        try_files $uri $uri/ /index.php$is_args$args;
    }

   ...
Score: 1
Postfix relay server - replace From address to strip out hostname
sy flag
Kim

Looking to have a postfix relay server that takes email from various users & servers user1@host.domain.com and rewrite the header to carry just the username@domain.com user1@domain.com

Easy enough to config the relay server to do this with email that originates from within, but I need it to do this to email that is being relay'd through the relay host.

The usernames will vary greatly and I just  ...

Score: 2
How can I get Egress Static IP per namespace within a EKS cluster
mx flag

My current setup involves an EKS Cluster with multiple namespaces (multi-tenant) across many different EKS nodes in private subnets. I would like the egress traffic from the pods to have a dedicated EIP per namespace. AFAIK there are no off the shelf solutions available for this problem. I have searched long and hard on the internet but in vain. Here are some of the solutions that I have tired, but even ...

Score: 0
winhttp proxy settings not being picked up by system account
us flag

We are in the middle of setting up Exchange Hybrid with new 2016 Exchange servers in their own network segment which the HCW was run and they have access to the Microsoft 0365 endpoints only through our firewall and are our existing Exchange 2010 mailbox servers which are on a different network segment and have never been internet facing.

Mail flow, Legacy public folders and Free/busy lookups are ...

Score: 3
My custom fail2ban jail fails to load even though fail2ban-regex suggests that it should work?
vn flag

I've written a custom jail and filter in fail2ban for logging into my service. The log file is located in /var/log/motion/motion.log and a failed login generates a line like this:

[0:ml1] [ALR] [STR] [Nov 02 11:42:59] handle_basic_auth: motion-stream - failed auth attempt from <ip>

My jail in /etc/fail2ban/jail.local looks like this:

[motion-auth]

enabled = true
port     = 8008
filter = motion ...
Score: 0
Eric F avatar
Email server will not receive emails - Postfix / Dovecot / Raspberry Pi
in flag

Background

I have been working on getting an email server set up using a Raspberry Pi as the host. I have been primarily using this guide as my help but I appear to be stuck. I do have a residential service but have an account at dynu.com with the services "SMTP Outbound relay" and "Email Store / Forward" to get around this. They also host my domain name as well.

Problem

I can send emails no problem ...

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.