Latest Server related questions

Score: 1
Nichlaus avatar
Postfix + Dovecot and folder "sent mail"
ws flag

We’re using for sending mails our own mail server Postfix + Dovecot with parameter for Postfix sender_bcc_maps which ensures that sent mail thanks to blind copy (BCC) is also sent to a sender’s address „[email protected]“. That way is mail saved to IMAP folder with other sent e-mail messages. Because of this we don’t have to rely on mail client which could do this for us. And yet we hav ...

Score: 0
ke xu avatar
SSH forwarding works on local but fails for the remote
au flag

I made a port SSH local forwarding on a remote machine:

ssh -N -L 127.0.0.1:3388:127.0.0.1:22 localhost

it works on the remote machine itself:

telnet localhost 3388

returns

Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
SSH-2.0-OpenSSH_7.4

However, when I use this forwarding from the local machine:

telnet remote.ip 3388

it fails:

Trying remote.ip...
telnet: Unable to conne ...
Score: 0
AdjunctProfessorFalcon avatar
What is an HTTP Proxy (forward not reverse) required to do with a client's request headers?
in flag

1

Could someone help me distill down what, exactly, the minimum requirements are for a proxy server (just a forward proxy not reverse) with regard to headers? What headers absolutely must be deleted from the client request before it's passed upstream by the proxy server?

I'm trying to make sense of the rfc2616 doc but it's slightly impenetrable to me and I've yet to find any blogs or articles that j ...

Score: 0
Celongar avatar
VPN for specific addresses
us flag

Right now I have to connect to 2 separate corporate VPNs using different, proprietary VPN software for ssh/http/smb services. I can't use them at the same time and they take over my whole computer (slowing down downloads, etc). Is there a way I can set up an individual computer (Mac/Ubuntu) or a LAN so that I don't have to do this? I would like to be able to do "ssh [email protected]" and it ...

Score: -1
How to set machine state: poweron with community.vmware.vmware_guest_powerstate task?
uz flag

I'm pretty new with Ansible so I might configured things wrong
[I have a Docker container running Ansible service in CentOS8
I have an Ansible repository that include the Ansible files (this is a .Git repository]

My will was to automatically revert each lab (the lab is composed of 8 vms, 5 windows server 2016 and 3 windows 10. The DC include policy to enable winrm in those machines) in vCenter server t ...

Score: 0
16shells avatar
Syslog full of "CIFS VFS: BAD_NETWORK_NAME" errors
cn flag

I've recently move a mounted (windows) share in the fstab config from:

//[old server]/[share] /mnt/[share] cifs credentials=/etc/samba/credentials,x-systemd.automount,uid=112,gid=116  0  0

to

//[new server]/[share] /mnt/[share] cifs credentials=/etc/samba/credentials,x-systemd.automount,uid=112,gid=116  0  0

i.e. exactly the same config, but on a different remote server. The mount is all working fin ...

Score: 2
Cannot extend logical volume with ansible lvol module
us flag

I cannot extend an LVM logical volume with ansible lvol module This is an excerpt from my playbook:

- name: Create lv (lvcreate)
  become: true
  lvol:
    vg: "{{item.vg_name}} "
    lv: "{{item.lv_name}} "
    force: yes
    size: "{{ item.size | default('+100%FREE') }}"
    resizefs: yes
  ignore_errors: yes
  loop: "{{ volumes }}"

And this is the volumes definition:

volumes:
  - vg_name: probav ...
Score: 0
Why nginx "return 301" and ”try_files“ fall into an infinite loop
dk flag

my conf code:

index index.html index.php;
location / {
    if ($uri = '/a/') {
        return 301 https://example.com/a;
    }
    try_files $uri $uri/ =404; 
}

If url is /a/, 301 to /a, then try_files part, add / to /a end, become /a/.

Next step, I think it will try the index definition, become /a/index.html, and reach the file.

But actually, It tried /a/, and jump out the location, then goes int ...

Score: 0
Nihal Shantha avatar
gcloud CLI command shows error INVALID_ARGUMENT when listing assets for project ID for some accounts
cn flag

I tried to run following command

gcloud scc assets list projects/project-id

and I got this error,

ERROR: (gcloud.scc.assets.list) INVALID_ARGUMENT: Request contains an invalid argument.

I have already updated gcloud SDK to the latest version (350.0.0)

Score: 5
Ramkrishna Singh avatar
Compute Engine System service account service permissions issue
us flag

I am trying to setup an instance schedular for my VM instance to start and end at particular time. I am getting an error permission related to my google service account when trying to add the vm instance to the scheduler. I have added this roles (Compute Instance Administrator (Version 1),Compute administrator) to my service account via IAM but still getting the same error. the error message is "Compute ...

Score: 0
Somjit Nag avatar
Basic HelloWorld Nginx proxy_pass giving 502 bad gateway : WSL Ubuntu
uz flag

I am simply trying to learn nginx load-balancing, and have a very basic nodejs hello world server, 4 instances of which are running in port 3001-3004.

I want to load-balance across them, but proxy_pass will not work. Can someone please help ?

Below is my nginx.conf file. Nginx is running in WSL ubuntu

events {

}

http {

  upstream allbackend {
    server 127.0.0.1:3001;
    server 127.0.0.1:3002;
    s ...
Score: 1
McLayn avatar
Logging username in KeyCloak access-log
br flag

In KeyCLoak 15.0 (that is WildFly 23.0), I’m trying to configure access-log to also include username (or any ID of the user) when a user is logged in. In keycloak/standalone/configuration/standalone.xml, I configured XML:/server/profile/subsystem[@xmlns="urn:jboss:domain:undertow:12.0"]/server/host/access-log/@pattern pattern="%h %l %u %t "%r" %s/%S %b %T %I "%{i,User-Agen ...

Score: 0
Oli avatar
Routing traffic between two OpenVpn servers
cn flag
Oli

I'm trying to route traffic between two openvpn servers; I would like to have the following connection:

Client --> OpenVpnServer1 --> OpenVpnServer2 --> Internet

I have both servers running and working separately, but I have tried to configure OpenVpnServer1 to forward all it's clients traffic to OpenVpnServer2 using iptables but failed.

OpenVpnServer1 Interfaces and configs:

eth0 -- public inter ...

Score: 0
rumon avatar
"chmod -R ug+rwx" not working in Dockerfile
es flag

I am dockerizing php laravel application so my dockerfile looks like below, I am getting operation not permitted error after chmod command. Does anyone face this issue

RUN usermod -u 1000 www-data
COPY --chown=www-data:www-data . /var/www/html
USER www-data

RUN chown -R $USER:$USER /var/www/html/storage/*
RUN chown -R $USER:$USER /var/www/html/bootstrap/*
RUN chown -R $USER:$USER /var/www/html/pub ...
Score: 0
carlitobrigante avatar
Postfix doesn't send mail
cn flag

I am trying to learn about mail servers and am quite daunted by all of the moving pieces in the setup..

Currently I am unable to send via from my smtp server. I can receive mails fine from various domains.

In my logs I see the below entries when trying to send mail..

  • mail.log
Jul 31 11:59:15 mail postfix/submission/smtpd[1290]: connect from unknown[78.136.22.232]
Jul 31 12:01:03 mail postfix/posts ...

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.