Latest Server related questions

Score: 0
ihorc avatar
Using awk with column number in a bash script
cn flag

I'm using a command like this to get some connections from nf_conntrack:

awk '($3 == "tcp") && ($6 != "TIME_WAIT") && ($10 == "dport=1234")' /proc/net/nf_conntrack

How to use this command inside of a bash script and also add a script argument to it? If I just do:

awk '($3 == "tcp") && ($6 != "TIME_WAIT") && ($10 == "dport=$1")' /proc/net/nf_conntrack

It will suppos ...

Score: 0
Squid proxy: return header with origin server IP
ca flag

I am making a request to test.com via my squid proxy.

test.com domain can resolve to multiple ips: 123.2.3.4, 123.2.4.4

  1. Can I make squid return via header which IP of origin server was used?
  2. Can I choose a server IP squid proxy will use, while making a request?
Score: 0
Noobie avatar
ClientAliveInterval is not closing the idle ssh connection
gg flag

I have the task to close the idle ssh connection if they are idle for more than 5 minutes. I have tried setting these value on sshd_config

TCPKeepAlive no
ClientAliveInterval 300
ClientAliveCountMax 0

But nothing seems to work the idle remains active and does not get lost even after 5 minutes of idle time.

Then I came across this https://bbs.archlinux.org/viewtopic.php?id=254707 they guys says

T ...

Score: 0
TravelWhere avatar
How to set CORS header in cloudflare workers?
cn flag

I'm using cloudflare workers to create a reverse proxy but I can't use it to embed on main domain cause it gives CORS error:

Access to image at 'https://example.workers.dev/96384873_p0.png' from origin 'https://example.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

here's the code in workers

addEventListener("fetch", event => ...
Score: 0
"centos dhcpd server include external file" failed
sc flag

this is /etc/dhcp/dhcpd.conf

allow booting;
allow bootp;

ignore client-updates;
set vendorclass = option vendor-class-identifier;

include /etc/dhcpd-reservations.conf;

/etc/dhcpd-reservations.conf

shared-network managed {
  interface "eth1";
  subnet {{test ip range}} netmask 255.255.255.0 {
  option routers {{test router ip}};
  option broadcast-address {{test broadcast ip}};

  group {
    ho ...
Score: 0
madacoda avatar
How to delete a domain from a Domain Controller, but keep the subdomains?
jo flag

If I have a domain : corporate.com

With 3 subdomains :

  • dev.corporate.com
  • voice.corporate.com
  • vpn.corporate.com

How can I delete the top domain, but keep the 3 child zones?

Specifically for Windows DNS, this would look something like this : enter image description here

I suspect there is no easy way to do this, which means I manually have to edit the entire zone file to end up with 3 separate zone files for the child zones.  ...

Score: 0
Connecting to Amazon RDS using SSH client
br flag

I have created an Amazon RDS instance and I want to connect to it using an SSH client (puTTY).

I am following this document:

  1. Sign in to the AWS Management Console and open the Amazon RDS console at https://console.aws.amazon.com/rds/.

  2. In the navigation pane, choose Databases, and then choose the RDS Custom DB instance to which you want to connect.

  3. Choose Configuration.

  4. Note the Resource ID valu ...

Score: 0
madacoda avatar
How can you de-couple DNS server from the AD Domain Controller?
jo flag

I have an environment where Active Directory Domain Controllers host their own DNS domains (as is common).

However we are trying to separate DNS and host it on a standalone server (to eventually move to Linux Bind, but for now just the decoupling)

I have tested this in a lab environment but can't get the decoupling to work.

Step One - Basic Setup

  • Create an AD zone "mylab.com"
  • Add a domain controller "se ...
Score: 0
How to set time source on Hyper-V guest to VMIC
jo flag

I'd like to set the time source on my Hyper-V hosted Windows Server 2022 member server to VM IC Time Synchronization Provider. Currently it's at Local CMOS Clock.

It was set to PDC.DOMAIN.local, but I wanted it to get its time from the host instead of the PDC. So, based on this answer, I ran these commands:

net stop w32time
w32tm /unregister
w32tm /register
net start w32time
w32tm /config /syncfrom ...
Score: 0
Kelvin Lawson avatar
Service bound to ipv6 on linux machine - Can I disable IPV6 and access service on my IPV4 address?
mx flag

I am attempting to install Tableau Server on Ubuntu 18.04 and have the management service running on port 8850. I am unable to access the service at that port on my IPV4 address as it seems to be on my IPV6 address.

These are my listening ports:

systemd-r   898        systemd-resolve   13u  IPv4   14795      0t0  TCP 127.0.0.53:53 (LISTEN)                                                                ...
Score: 0
Unable to install Godaddy SSL on openlitespeed webserver
nf flag

I'm trying to install Godaddy Ssl to openLitespeed server but it's not working. I added .key .crt files to /usr/local/lsws/conf/cert/ then added the path to ssl listener as:

$SERVER_ROOT/conf/cert/server.key $SERVER_ROOT/conf/cert/server.crt $SERVER_ROOT/conf/cert/ca_bundle.crt

and restart the server but I got this error

/usr/local/lsws/conf/cert/server.crt and Key
File:/usr/local/lsws/conf/cert/server.k ...

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.