Latest Server related questions

Score: 8
How to overwrite a very large hard drive (18TB) with random data using shell commands in Linux
cn flag

I would like to overwrite a very large hard drive (18TB) with random bytes, to then check smart data for reallocated sectors or other errors.

Since badblocks has some limitations on number of blocks it will work with in a single run, I have tried the "cryptsetup method" described on archlinux wiki:

https://wiki.archlinux.org/title/Badblocks#Finding_bad_sectors

I set up an encrypted logical device eld o ...

Score: 0
Testing IPv6 gateways/routers inside my network
ar flag

I am currently using a Linux (Debian) box as my router/gateway and would like to test some other solutions (like VyOS, PFSense, OPNSense...) without replacing it (for now).

The testing would happen with VMs and/or spare machines.

While the IPv4 part isn't a problem, I'm wondering how to do the IPv6 routing.

Currently I'm getting a /48 from my provider and then use radvd and wide-dhcpv6-client to give / ...

Score: 0
Expose specific parts of the Backlog and let users report bugs in Azure DevOps
cn flag

Posting this here since it got closed on stackoverflow:

We are working with Azure DevOps to organize our development process. Recently we started to additionally develop a fork of our standard product directly for a customer.

Is it possible to let them view a specific part of our backlog and let them report bugs directly to us with our on-boarding them completely into our project?

The customers project ...

Score: 0
fahad shaikh avatar
Cannot find php module of apache
pl flag

I am running Apache 2.4.52 on Linux CentOS 7 server. I have installed PHP 8.

Followed many blogs to configure Apache to run PHP 8. Now I am at a point where visiting server IP address loads the index.php file but as a plain text instead od executing the script.

As I read, to overcome this, I need to load php module in httpd.conf file. I found the follwoing command

LoadModule php_module "/usr/lib/ ...

Score: 1
BritanyTaylor avatar
AWS/Strongswan-Ubuntu Site to Site Tunnel Cannot Ping Remote
in flag

Ubuntu (Linode) Strongswan 5.6.2 Connecting to AWS (site to site).

  1. I can ping from AWS endpoint to Ubuntu VPN.
  2. I cannot ping from AWS endpoint to Ubuntu endpoint.
  3. I cannot ping from Ubuntu VPN to AWS anything.

Ubuntu (VPN) public: 1.2.3.4 | Ubuntu (VPN) private: 192.168.234.113/24

AWS (VPN) public: 4.5.6.7 | AWS (VPN) private: 169.254.177.44/30

AWS (endpoint) private: 10.11.1.197

Ubuntu (endpoint ...

Score: 0
raitech avatar
HP DL380 G8 - P420i Raid Controller - How to monitor physical disks on a slow hardware raid volume?
cn flag

There is an HP DL380 G8 server with P420i Raid Controller, containing a RAID5 volume. It suddenly became slow, but all physical disks are ok.

[root@localhost ~]# ssacli ctrl all show config detail

Smart Array P420i in Slot 0 (Embedded)
   Bus Interface: PCI
   Slot: 0
   Serial Number: XXXXXXXXXXXX
   Cache Serial Number: XXXXXXXXXXXX
   RAID 6 (ADG) Status: Enabled
   Controller Status: OK
   Har ...
Score: 0
Network Security: Hardening IPv6 on Ubuntu Server?
tr flag

I am familiar with hardening IPv4 on Ubuntu server, but when I use the same rules for IPv6 with ip6tables, the IPv6 connectivity is lost resulting in Destination unreachable: Address unreachable errors during ping. Could you please advise on how to fix this issue? My logic is the following:

#IPv6
#Reset all rules (F) and chains (X)
ip6tables -F
ip6tables -X

#Force SYN packets check
ip6tables -A INPUT -p  ...
Score: 0
Adrian avatar
What is the default RBAC scope used when assigning a role in Azure with the CLI?
us flag

This is the documentation for the az role assignment create command: https://docs.microsoft.com/en-us/cli/azure/role/assignment?view=azure-cli-latest#az-role-assignment-create

--score is an optional parameter. This is what the documentation says about it:

Scope at which the role assignment or definition applies to, e.g., /subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333, /subscriptions/0b1f6471- ...

Score: 0
how to use ipv6 subnet (2302:1400:3010:3731:0:1/96) for outbound connection from linux?
cn flag

how to use 2302:1400:3010:3731:0:1/96 subnet for outbound connection from linux?

I'm trying to use something like this curl --interface 2302:1400:3010:3731:0:1:5fff:8 ifconfig.co in GCP VM

this is working if I add with ip -6 addr add 2302:1400:3010:3731:0:1:5fff:8/128 dev ens4, but I want to use all address of 2302:1400:3010:3731:0:1/96 or at least 2302:1400:3010:3731:0:1/112

but if I add with ip -6  ...

Score: 0
TravelWhere avatar
How to not redirect if is from social media site with Nginx?
cn flag

How do I not force a redirect if it's from a social media site like reddit,facebook & twitter? Currently my setting is set to redirect any direct access to image files but I don't want to redirect if it's from social media sites so it can fetch image preview.

proxy_cache_path /var/www/img.example.com/htdocs/cache-store levels=1:2 keys_zone=pixstore:10m max_size=5g inactive=7d use_temp_path=off; ...
Score: 0
How can you manage Google Workspace with Infra-as-code?
il flag

I'm starting as a new Google Workspace manager and prefer to manage configs, especially critical services used by the entire company, via source control for change management, revision control, and peer reviews.

Is there a way to manage Google Workspace with something like Terraform or even a checked in config file that I run against a CLI?

Score: 0
after restart pdns-recursor tried to resolve via 0.0.10.240 first
cn flag

I enabled tracing on pdns-recursor and study the logs. The recursor tried to resolve via the ip 0.0.10.240 first after restart. That's not configured and looks like an "internal" value.

What does pds-recursor trying here? What is this ip for?

Jan 21 17:30:22 XXXXX pdns_recursor[498463]: [1] XXXXX.YYYYY.ZZZ: Nameservers: +0.0.10.240:18(0.00ms), +x.x.x.x:53(0.00ms)
Score: 0
SSH not working properly - Server not sending data to complete login
za flag

I just started having trouble with my ssh logins today. Have had remote access to my server for months but today when I tried to login with Putty from my Windows machine I get no response. Tried to figure out what is going on and used putty telnet to port 22 on the server and get a response from the server of:

 SSH-2.0-OpenSSH_7.4

With just a standard ssh sending of user@host I just get a block cursor ...

Score: 0
Google Cloud Console access for invited users
ng flag

I registered a domain (for ex. mydomain.com) and I opened a Cloud Identity (free edition) account attached to that domain.

Then I configured a Google Cloud access for this Admin user. So, I finally had my Cloud Identity account with my user as an admin, my organization and my Google Cloud account with which I can access Google Cloud Console.

After accessing Google Cloud Console, I setted up the paym ...

Score: 0
Maciej Cygan avatar
Exim4 - prevent unauthorized users sending emails
cn flag

I am having some trouble securing my MX (Exim).

At the moment anyone who telnets to my mail server on port 25 is able to just send an email. I am trying to figure out how to allow outbound traffic only from users that authenticate.

dc_eximconfig_configtype='internet'
dc_other_hostnames='<domain list here>'
dc_local_interfaces='[127.0.0.1]:25; [127.0.0.1]:587; [<ip>]:25; [<ip>]:587'
d ...
Score: 0
SureThing avatar
Configuring a VPN using Policy Routing on Zorin (Ubuntu 20.04)
br flag

A bit stuck here. Semi familiar with routing and semi familiar with linux. Just enough to be dangerous but apparently not enough to be dangerous enough.

Hoping someone can point me in the right direction here. I am pretty sure what I need to be implementing is Policy Routing.

I have 2 NICs (one onboard, and another a separate PCIe Wireless Card). I have connected both to my local network 192.168 ...

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.