Latest Server related questions

Score: 0
Iluvatar avatar
How to change destination mac address with iptables
cn flag

How to replace MAC address of a IP packet with iptables(if possible)?

I can only find examples of --mac-source rules used in iptables but those are used to MATCH not to replace mac address.

My problem is that i have one way fiber connection and broadcasts sent from sending side are dropped on receiving side (I can see them in tcpdump but these are dropped somewhere). Packets are dropped before en ...

Score: 0
Harald Thomson avatar
On-premise network to public internet through a seperate network with configurable proxy
cn flag

Software running on a local network (a) needs to connect via HTTPS to a publicly accessible cloud service (b). However, for security reasons the connection can not go directly from (a) to (b), but instead it needs to be routed through infrastructure (c) first from where it can reach (b).

One idea is to use a proxy installed in (c) to allow the connection from (a) -> (c) -> (b).

However, to al ...

Score: 0
samtech avatar
Throwing 404 errors AWS
us flag

What might be the possible reason why the 502s were being returned here?

The 403s also look like WAF is firing them. Could anyone please suggest a way to allow those resources to be safely given to clients?

Below is a list of the errors:

Non 200 returned on https://www.abcd/files/ftp_upload/61325/61325fig1large.jpg on 61325.
Headers: HTTP/1.1 502 Bad Gateway
Server: awselb/2.0
Date: Sat, 25 Sep 20 ...
Score: 0
Ricky avatar
Can I redirect one specific url in Nginx for WordPress?
in flag

I want to redirect one specific url in Nginx to 'not found' or 'hidden'

url: /wp-admin/load-scripts.php?c=1&load[]=jquery-effects-blind

reason: https://hackerone.com/reports/925425

my codes in nginx.conf are, it's not working :(

server {
    listen 80 default_server;
    server_name _;
    location ~ load-scripts\.php|load-styles\.php {
        deny all;
    }
}
Score: 0
Nginx multiple IPs to origin
br flag

I need to set up Nginx as a reverse proxy to my origin. The origin has a restriction of 50 concurrent HTTP connections per IP address.

My Ubuntu server has multiple IPs attached to it. I want to use these IPs to achieve more than 50 concurrent requests to my origin.

Below is how I am trying to do it. I have created multiple server blocks where each block listens on a particular IP. I have also added th ...

Score: 0
Miantian avatar
How to create new subnet block size in the current VPC with some used cidr range on AWS using Terraform?
dz flag

I want to use Terraform to create a new subnet for EKS. In the same account, the VPC has already been created and some subnets have been created.

locals {
  vpc_cidr_block = "10.148.52.0/22"

  public_subnets = [
    "10.148.52.0/27",
    "10.148.54.0/27",
  ]
  # ...
  private_subnets_3 = [
    "10.148.52.80/28",
    "10.148.54.80/28",
  ]
  subnets_4 = [
    "10.148.52.240/28",
    "10.148.54.240 ...
Score: 0
Nigerian Prince avatar
WinSCP claims that Ubuntu server folder is full, but folder is on a 2Tb free system
cn flag

I have an Ubuntu server, to which I'd like to transfer a Minecraft server. However, in using WinSCP or File Explorer to transfer said server, I get told that I do not have enough space. However, not only is my server containing 2Tb free space, but File Explorer tells me that I lack 190 Mb of space, implying that most of the folder has a set amount of space. How do I resolve this?

Score: 1
kex_exchange_identification error with Windows10 OpenSSH server
bm flag

I installed OpenSSH-server on my Windows 10 PC (probably a "home" version, not a Windows server) using the Microsoft guide. I did not change the C:/Windows/System32/OpenSSH/sshd_config_default file (although I don't think that's relevant here anyway). I can log to the machine from a terminal on that same machine:

localhost SSH

I have another machine running on the same LAN (both wired to the same SoHo router) ...

Score: 0
MySQL CPU usage difference between my local server and Linode server
cn flag

I have 2 similar servers, one on my local computer, the other on Linode. OS is Ubuntu 20.04 LTS on both.

When I import a large database into MySQL, my local computer uses less than 10% of CPU while the Linode server uses 100% of CPU. So Linode server completes the import much faster than my local computer.

What configuration makes the difference?

Score: 1
catleeball avatar
BTRFS on RHEL8 - compiling kernel module or making userspace tools work
it flag

Context

I recently installed RHEL 8 without realizing that it no longer supports BTRFS.

Unfortunately, I have 4 disks in BTRFS RAID10. I don't have enough space on my other disks to hold the data present on the BTRFS disks, so copying it all elsewhere while booted from a USB drive is out the window.

I have my initial question, then some followup questions regarding the approaches I took that failed. Feel  ...

Score: -1
pbuzz007 avatar
DNS setup for no subdomain
si flag

I can't figure out why going to my website, mywebsite.app does not work, while www.mywebsite.app and anythinghere.mywebsite.app works.

Am I missing something in this DNS list?

All these CNAMEs area working

  1. * eg whocares.mywebsite.app points to my main S3 bucket and works
  2. admin eg admin.mywebsite.app points to my secondary S3 bucket and works
  3. api eg api.mywebsite.app points to my heroku app and works ...
Score: 0
Evgeniy Berezovsky avatar
Windows NLB: Stability of source IP -> target machine mapping
cn flag

We are using Windows NLB in our production environment to load balance https requests to ten IIS servers.

The settings are:

Setting Value
Port 443
Protocol TCP
Filtering Mode Multiple Hosts
Affinity Single
Timeout (in minutes) Disabled

So as long as there is no change in the NLB cluster membership, i.e. no hosts are leaving/joining the cluster, the same source ip will always be m ...

Score: 0
OpenVPN clients still getting assigned same ip with duplicate-cn in server config
eg flag

Clients are still getting assigned same ip as each other even with duplicate-cn in server the config. I can't figure out what I'm doing wrong. I've restarted all the machines involved after changing the config. Here is my server.conf.

port 1194
proto tcp6
dev tun
user nobody
group nogroup
persist-key
persist-tun
keepalive 10 120
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ip ...
Score: 0
Stefan avatar
Grafana deploy in kubernetes with Letsencript certificate in ingess
mx flag

I want to deploy grafana in my AKS kubernetes cluster. For deployment I use helm

helm install grafana grafana/grafana --namespace=grafana --set "service.type=ClusterIP,persistence.enabled=true,replicaCount=1,persistence.size=10Gi,persistence.accessModes[0]=ReadWriteOnce,plugins=grafana-azure-monitor-datasource\,grafana-kubernetes-app,ingress.enabled=true,ingress.tls[0]=enabeld,ingress.tls[0].hosts[ ...
Score: 0
serverNewbie avatar
"CORS Multiple Origin Not Allowed" - using parse-server and apache2
gi flag

I am using apache2 as a reverse proxy for my parse-server. In order to allow Cross Origin Requests I originally tried setting:

Header always set Access-Control-Allow-Origin "*"

in the apache config file together with:

ProxyPass /parse/ http://localhost:1337/parse/
ProxyPassReverse /parse/ http://localhost:1337/parse/
RewriteEngine On
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ $1 [R= ...

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.