Latest Server related questions

Score: 0
How to get Cipher details from .ppk file
cn flag
404

Is it possible to get the Cipher name from .ppk file? For e.g. name like TLS-CHACHA20-POLY1305-SHA256 or ECDHE-ECDSA-AES256-GCM-SHA384

Edit: Based on the responses in answers and comments, it seems I posted an invalid query here. Apologies, I am a newbie so was not aware about the concepts.

Score: 1
Mervin Hemaraju avatar
Environment Variable Empty in Bash Script
pl flag

I have an EC2 instance that I am deploying on AWS.

I am using an Amazon Linux 2, and I am passing a user data to it as such:

userdata_file.write(
        f'''
        #!/bin/bash\n
        export PAGERDUTYAPIKEY='mykey'\n
        sudo yum install git -y\n
        chmod +x ./basic_test.sh \n
        echo $PAGERDUTYAPIKEY> /home/ec2-user/pagerdutyapikey1.txt\n
        sudo ./basic_test.sh
        ''' ...
Score: 0
Debian: Find unknown process pinging ip on old subnet after subnet change
cn flag

I changed my network subnet from 192.168.1.0 to 10.10.10.0, but some rogue process is trying to hit port 9100 on 192.168.1.145

I have tried sudo lsof -n | grep TCP | grep 9100 with no luck.
I have also tried sudo netstat -nlpt | grep 192.168.1.145 without luck.
My conclusion is that this isn't working because of the fact that the connection is not being established.

Besides waitig for a complete search  ...

Score: 1
tm1978 avatar
BIND9 Forwarding Reverse DNS
in flag

I've set up a BIND9 DNS Server. It should only do forwarding:

  • local.domain1 - forwarders 172.24.16.10 / 172.24.16.11
  • local.domain2 - forwarder x.x.x.x
  • internet - forwarders 8.8.8.8 / 8.8.4.4

My files look like:

named.conf

acl internals { 127.0.0.0/8; 172.24.0.0./14; 10.42.42.0/24; };
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.defaul ...
Score: 0
Jeff avatar
Are Apache Define directive variables allowed to be overwritten?
dj flag

Are Apache httpd Define directive variables intended to be allowed to be overwritten?

For example,

Define SITE example1.com

<VirtualHost *:80>
    ServerName ${SITE}
</VirtualHost>

Define SITE example2.com

<VirtualHost *:80>
    ServerName ${SITE}
</VirtualHost>

It seems to be working, my SITE variables are being overwritten, but I won't put it into production if it's no ...

Score: 0
How can I configure Postfix to relay emails addressed to particular domains through a separate SMTP relay
cn flag

I have a few domains that won't accept emails from my ip address, regardless of anything I've tried (submitting requests to whitelist, etc). These are transactional emails for customers of an e-commerce site - I've gotten almost all services to whitelist the ip. The biggest offender is icloud.

I'd like postfix to use a dedicated SMTP host (like Mailgun, etc.) to relay only mail that's addressed t ...

Score: 2
Greg avatar
Directory traversal fix for nginx config
in flag

I discovered that my website has this issue and I wasn't able to fix this. I tried several things like to checking if parent prefixed locations for Nginx alias directives end with a directory separator , but no luck so far. Merge_slashes on - is the default setting. I've read about AppArmour or SELinux. Is that the way to go? I have Ubuntu 18. In other words, I'm able to download this file http:/ ...

Score: 0
Cebrayil avatar
Nginx reverse proxy doesn't work
ng flag

After configured TheHive incident response platform,I am trying to configure redirection domain to ip adress but not working.when I write ip adress on browser,I can access web page.It is not possible with domain.I checked with "nslookup thehive.example.com" ,it shows me ip adress correctly.

Note:I redirected domain name to ip adress in our DNS server

server {
  listen 443 ssl;
  server_name thehive.ex ...
Score: 0
unable route traffic
cn flag

unable to ping from one instance to another instance (Different AWS account) through VPC peering**

As a part of learning I have created VPC peering between two different AWS account similar region

1.VPC A (vpc-0101125afe156bXXX) created in my account 1(Ohio) - with EC2 instance test1 (173.15.2.42 )has been launched.  VPC A

2.VPC B (VPC-09abfe7f4c7c7cX7XX) created other Account child(Ohio)- with EC2 i ...

Score: 0
CentOS 7 : NTPd (wierd?) behaviour with FQDN vs IP
cn flag

I recently setup NTP server on my environment, along with DNS. And when I configure an NTP client, I see the below behaviour:

[root@template ~]# host mydns.mydomain.ops
mydns.mydomain.ops has address 10.10.5.2
[root@template ~]# grep mydns.mydomain.ops /etc/ntp.conf
server 0.mydns.mydomain.ops iburst
[root@template ~]# systemctl status ntpd
● ntpd.service - Network Time Service
   Loaded: loaded  ...
Score: 0
How to enable java agent for every new java process on the host?
jp flag

I have a java agent that I want to be automatically enabled for any arbitrary java process running on the host.

I cannot rely on aliases or environment variables like PATH, JVM_OPTS etc as I want any JVM process to pick the agent even if run directly as /usr/bin/java -jar my-app.jar.

One (rather dirty) way of doing it is physically replacing java binary with my custom bash script like this:

#!/bin/bash ...
Score: 0
Álvaro avatar
Nginx 413 - Client intended to send too large body - Node app
hu flag

I am runing a node app on nginx under Ubuntu and I am having problems uploading a 200M json file. On my local I use nginx on a Mac and I am not having this limit issue.

I have set the nginx.conf http client max size to 0 and 1000M but I am still getting the error

/etc/nginx/nginx.conf

http {
   client_max_body_size 1000M;
...

On the front end I use express and have done this but I am not sure if the prob ...

Score: -1
Oleksandr avatar
How to add user to postfix?
fr flag

I created and configured postfix with davecot, everything seems to work:

Dec 20 10:31:32 mailer dovecot: master: Warning: Killed with signal 15 (by pid=8470 uid=0 code=kill)
Dec 20 10:33:03 mailer dovecot: master: Dovecot v2.3.7.2 (3c910f64b) starting up for imap, pop3, imap, lmtp, pop3 (core dumps disabled)
Dec 20 10:36:26 mailer dovecot: master: Warning: SIGHUP received - reloading configuration
 ...
Score: 0
Iggy avatar
every LDAP user gives "permission denied" with LDAP and sssd (Centos7)
in flag

I am trying to limit LDAP logins to the "admin" group.

This is my /etc/sssd/sssd.conf file:

[domain/default]
autofs_provider = ldap
ldap_tls_reqcert = allow
auth_provider = ldap
ldap_id_use_start_tls = False
chpass_provider = ldap
cache_credentials = True
debug_timestamps = True
ldap_default_authtok_type = password
ldap_search_base = dc=example,dc=com
id_provider = ldap
ldap_default_bind_dn = cn=moder ...
Score: 0
How to pass enveronment variable in gitlab to setup cicd gitlab-ci.yml
in flag

Running with gitlab-runner 14.5.2 (e91107dd) on ibrahimrunner a8c7nx2r Preparing the "shell" executor 00:00 Using Shell executor... Preparing environment 00:00 Running on ip-172-31-5-177... ERROR: Job failed: prepare environment: exit status 1. Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information

I have install gitlab server in one aws ec2 and in the same ...

Score: 2
Periodically audit file permissions for mistaken leaks
in flag

I'm looking for a way to periodically check a file system tree for permissions that have been set incorrectly.

The context is:

  • this is in an academic compute environment, with students, researchers and overworked sysadmins
  • the focus is not on malicious actors, but rather mistakes made by any of the above
  • existing users/group hierarchy
  • prevention does not have to be immediate, we're thinking of so ...

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.