Latest Server related questions

Score: -2
Michael Altfield avatar
Programatically get full path to binary in powershell (which, where, Get-Command)
cn flag

How do I get the absolute path to a given binary and store it to a variable?

What is the equivalent to the following for Linux Bash in Windows Powershell?

user@disp985:~$ path=`which gpg`
user@disp985:~$ echo $path
/usr/bin/gpg
user@disp985:~$ 

user@disp985:~$ $path
gpg: keybox '/home/user/.gnupg/pubring.kbx' created
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
gpg: Go ahead  ...
Score: 0
Chr avatar
Postfix and Subdomains
ci flag
Chr

I set up Postfix on an Ubuntu 20.04 machine. However, I am not sure where I have to use the subdomain and where the domain. Let us call them mail.example.com and example.com respectively.

The system is a null client, sending emails but not receiving any (implemented via inet_interfaces = loopback-only in /etc/postfix/main.cf). I intend to send messages from noreply@example.com exclusively.

  • The MX r ...
Score: 0
devesh joshi avatar
How to make Ip6tables output drop rules to work
ae flag

I have an openvpn setup on my server where my openvpn interface is tun0 and normal internet interface is eth0. I am trying to drop all outgoing packets from server with destination in range 2a03:2880:f11c::/32. These packets are received from openvpn clients and are internally forwarded to eth0 which sends them out. For this I tried rule

sudo ip6tables -A OUTPUT -d 2a03:2880:f11c::/32 -j DROP -p ic ...
Score: 0
What is best practice for reporting vulnerability scans?
ve flag

While reading our logs I came across several requests that seems to be scanning for vulnerabilities on our web app.

2021-09-25T17:32:44.164858+00:00 app[web.1]: 54.39.216.121 - - [25/Sep/2021:17:32:44 +0000] "GET /wp-includes/js/jquery/jquery-migrate.min.js HTTP/1.1" 404 136 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
202 ...
Score: 0
not2savvy avatar
Is there any good reason not to use IPv4 only within a local network?
ar flag

We have a small office with maybe 10-20 devices connected to our local network (LAN). We are running an internal DNS for resolving local network domains. The DNS has been configured with only IPv4 addresses, because it was easier to set up like this, and there seems to be no reason to use IPv6 addresses for our local network devices. None of the devices needs to be reached from outside (WAN).

Am  ...

Score: 0
Alessandro Valentino avatar
Make apache accept requests only if who sent requests is a domain i specified
in flag

I currently have an apache2 server accepting api requests on the url mydomain.com/api and i have a client application that runs at mydomain.com.
Also, in my api, one can access mydomain.com/api/files/fileId to get a file.
Now, in my client application, i have a page like mydomain.com/file/fileid which instead of directly downloading the file like the corresponding api endpoint does, it displays a page  ...

Score: 0
rcsvivk avatar
Apache Let's Encrypt Certbot Challenge Failed on Linux
tr flag

I have a Fedora 34 server running Apache Tomcat. I had certificates from Let's Encrypt working. I installed them with certbot (as one does) and everything was working well. Now, when I go to renew my certs, I get the following error:

[root@app myname]# certbot
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache

Which names would you lik ...
Score: 0
Aboodnet avatar
Exchange 2016 ActiveSync in Edge Server
hk flag

Dears,

We currently have an Exchange 2016 Edge server located in our DMZ and it is handling all our inbound and outbound emails. I noticed that there is no Activesync service/role inside Edge server. I can only see it inside our internal mailboxes servers which are located in our private, LAN, network.

Is it possible to enable/install Activesync role inside Edge server? Because we do not want to exp ...

Score: 0
Vahid Alimohamadi avatar
auto cinder volume when creating nova instance via REST API
kz flag

When i use horizon to create a nova instance, it is creating volume based on selected flavor and image. But when i determine flavorRef and ImageRef via rest api endpoint, the created instance has no volume!

Have to create a volume and attach it manually?

Score: 0
Rogelio Bautista avatar
Wireguard network peers access to lan
ng flag

I hope you can help me with my problem. I am building a network for personal use and I found some issues, I don't have experience in networks. I will explain using the attached image:

Network Infrastructure Diagram

Problem: I cannot reach devices on a local network using Wireguard and a Raspberry-based VPN router, that includes services within the local network (cameras, personal web server, database ...

Score: 1
How I can send all logs from journald to GCP Logging?
cn flag
Raf

Don't know what to add more to question, just want to send all logs. My applications write logs to journald, there is no files on disk.

UPD. Just to clarify, there are files where journald store logs, my application do not create any logs files.

Score: 2
iptables/nftables: how to exclude all forwarded traffic from connection tracking on a router?
ua flag

A Linux box has multiple network interfaces. IP forwarding is enabled for IPv4 and IPv6.

I would like to protect the services running on the router itself via a stateful firewall. For that, connection tracking needs to be enabled. At the same time, I would like to exclude all traffic that is forwarded from one interface to another from connection tracking.

For the stateful firewall, I would typical ...

Score: 0
mr L avatar
Use multiple dockerized Nginx behind a host Nginx
in flag

I have multiple and different dockerized applications, each one comes with its proper Nginx service which sends traffic to its containers based on some rules.

I need to put those applications on the same server, so I added a new Nginx in the host that will handle SSL, and forward the traffic to the correct dockerized Nginx.

Question: Is it ok to use Nginx in the host which will forward traffic to mu ...

Score: 0
Esmail Amini avatar
Configuring PFSense to exclude specific external ip address
id flag

Pfsense is installed on top of five dedicated servers, NAT rules are already defined and everything works fine. Now, I want to have one of the external IP addresses to be ignored by pfsense gateway. In other words, for that IP, there is no Pfsense installed, no address translation is done, no internal IP exists, etc.

Is/how it possible.

Thanks

Score: 0
alanvictorjp avatar
apache2, I can't suppress this line from apache logs
ne flag

I've done this and other attempts, but not working for me:

<IfModule mod_ssl.c>
<VirtualHost *:443>
...
setEnvIf Request_URI "refresh.*" dontlog
CustomLog /home/alan/logs/apache.log common env=!dontlog
...
</VirtualHost>
</IfModule> 

this line in apache.log obs: the numbers after the refresh.php file, it's dynamic

123.123.123.123 - - [25/Sep/2021:06:54:41 -0300] "GET /test ...

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.