Latest Server related questions

Score: 2
laolux avatar
openssh failing with "client_loop: send disconnect: Broken pipe", but works in debug mode
us flag

I am trying to run openssh on my openwrt router. To test it, I start openssh via /usr/sbin/sshd -D. When I try to connect from my computer I get asked for the password and then (if the password is correct) the connection drops and client_loop: send disconnect: Broken pipe is shown in my terminal (bash, if someone is curious).

Now I tried to debug the problem, but when I run openssh in debug mode via  ...

Score: 0
xcopy nfs share fails from bat file, but works in terminal
cn flag

I have a short script xcopy_recursive.bat which is literally:

xcopy /E /Y '%1' '%2'

an attempt to run it as follows:

xcopy_recursive.bat '\\nfs\dir' 'C:\destination'

results in

xcopy '\\nfs\dir' 'C:\destination'
File not found - dir

While if I copy echoed command xcopy '\\nfs\dir' 'C:\destination' and execute it directly from cmd it works just fine.

Any ideas what happens here?

Score: 0
Dns for internal network setup
in flag

Primary network IP addresses ppp.ppp.ppp.0-255. Primary has its own name resolution. Manufacturing network IP addresses xxx.xxx.xxx.0-255. I have a block of IP addresses with which to work with on my Manufacturing network xxx.xxx.xxx.0 - 255. I am not the primary network admin here. For some reason unknown to me the standard network cannot handle (or won't be set up) DNS for local name lookup for client ...

Score: 0
Nish R avatar
Nginx error_page not working for ngx_http_limit_conn_module
in flag

I have an http block where i define limit_conn_zone like so: limit_conn_zone $host zone=test:10m; and i have a reference to another .conf file where I have my server configuration

server {
..
...
limit_conn_dry_run off;
limit_conn test 2;
limit_conn_log_level error;
limit_conn_status 429;
error_page 429 /429.html;
...
....
..
error_page  429     /429.html;
location = /429.html {
    root /usr/share/ ...
Score: 0
jsnnsns avatar
Why won't this open a file on launch of Google Cloud?
in flag
sysprep-specialize-script-ps1
Invoke-Item "C:\Program Files\Google\Chrome\Application\chrome.exe"

I then RDP in and wait a couple of minutes and see no file started.

The path is correct.

Below is a photo of the setup 1

Why doesn't it start?

Score: 0
Have lvm spread LVs across several PVs
ng flag

I have a server with multiple disks. Most are raid1:

  PV /dev/md127   VG HDDs            lvm2 [465.63 GiB / 421.63 GiB free]
  PV /dev/sdg1    VG backup          lvm2 [<931.51 GiB / <931.51 GiB free]
  PV /dev/md0     VG SSDs            lvm2 [<1.82 TiB / 1.16 TiB free]
  PV /dev/md1     VG SSDs            lvm2 [<1.82 TiB / <1.82 TiB free]
  Total: 4 [5.00 TiB] / in use: 4 [5.00 TiB] ...
Score: 2
Kermit avatar
Reverse Proxy for IP Camera
it flag

I'm using an Amcrest camera which requires basic auth to render its stream (documentation - page 17). The camera is accessed through http://admin:password@IP_CAMERA/cgi-bin/mjpg/video.cgi .

When I try to hit :56700, I am prompted for auth even though it's hardcoded (below). Even when I enter the correct credentials, it fails. What am I doing wrong?

    server {
        listen 56700;
        locat ...
Score: 0
I Setup A VLAN. Now what?
et flag

I have setup a VLAN (I think), and can't figure out how to use it. A basic description of my setup is:

EdgeRouter PoE5:

  • eth0 is PPPoE WAN interface to DSL modem in bridge mode
  • eth1 is unused with its own DNS and DHCP on its own subnet 192.168.1.0/24
  • eth2, eth3, eth4 are combined into switch0 using hardware offload
    • eth2 is connected to wireless AP
    • eth3 is connected to a switch
    • eth4 is connected to DHCP ...
Score: 0
Having one ESXI VM serve DHCP addresses for two VLANs?
ru flag
jdm

In our office, I want to create two different networks. Depending on which LAN socket a cable is plugged in, I want the device to receive an IP in a different subnet.

I have a server running VMWare ESXI. On the server, Windows Server is running in a VM. I also have a HPE 1820 switch. It is my understanding that I can achive what I want with VLANs and DHCP relay, however the HPE 1820 does not supp ...

Score: 0
iptables forward port to new destination ipaddress
cn flag

I'm trying to simply forward all requests to port 8080 to a new server destination port 80 so I set up the following iptables rule:

sudo iptables -t nat -A PREROUTING -p tcp --dport 8080 -j DNAT --to-destination  10.0.1.5:80
sudo iptables -t nat -A POSTROUTING -j MASQUERADE

but then

> curl 127.0.0.1:8080
curl: (7) Failed connect to 127.0.0.1:8080; Connection refused

I know that 10.0.1.5:80 is ope ...

Score: 0
Sarriman avatar
AWS WAF not working for Domain Name of AWS API Gateway
cn flag

I have set up a service which is exposing an API Gateway link, let's say foobar.execute-api.eu-west-2.amazonaws.com.

I have created an AWS WAF to limit traffic to certain IPs. Everything works fine on the subdirectories (e.g.: foobar.execute-api.eu-west-2.amazonaws.com/bar, foobar.execute-api.eu-west-2.amazonaws.com/bar/foo) and the response is a 404 not found as it has been set up for IPs that do ...

Score: 0
codeneuss avatar
Nginx + PHP-FPM starts crashing after suspicious pentesting request with hexadecimal http verb/method
tr flag

my server crashes everytime an annoying pentester tries to find security-holes in my application. I see this in the errorlog:

17:48:48 +0200] "\x16\x03\x01\x00M\x01\x00\x00I\x03\x03\xDBJA\xC5\xB17\xF6\xDA \xD4\xEEEg0\xE0\xF2\xF2\xC9S\xE4\xF9v}\x1E\x00\xC8\xC3d\x 80h;= \x1F\xD2\xAF?\x88\x8A\xA2\xCF\x16G\x99\x1D\x91" 400 173 "-" "-"

The server is configured like a normal nginx + php-fpm server. Por ...

Score: 0
0diseus avatar
Issues with node - Error: Cannot find module 'firebase-functions'
cn flag

One of our devs is trying to run a script with node, but it gives this error output:

internal/modules/cjs/loader.js:818
 throw err;
 ^

Error: Cannot find module 'firebase-functions'
Require stack: ...

Since this dev is new to node, and so do i, what exactly can we do?

We have node 12 running

Score: 3
Daniël van den Berg avatar
Kubernetes coredns not receiving requests
cn flag

I've set up a kubernetes cluster, single node, debian 11. However, my CoreDNS doesn't seem to resolve anything. I'm noticing this by portainer being unable to load resources.

http: proxy error: dial tcp: lookup kubernetes.default.svc on 10.96.0.10:53: read udp 10.244.0.4:57589->10.96.0.10:53: i/o timeout

Seeing as this is a timeout to my DNS, I checked the service:

root@dmvandenberg:~/kubernet ...
Score: 0
A-S avatar
Proxy with mobile IPs
bd flag
A-S

How can websites, like BrightData, rsocks.net, and others, offer a proxy product that is using a mobile IP address?

To my understanding, mobile operators block all incoming communications in their NAT. So how do the clients of the proxy reach those proxy servers?

All I can think of is that maybe they initiate the communication from the mobile device itself, and get the requests of the proxy-client as  ...

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.