New answers tagged

0 votes

How is it possible to connect multiple devices using the same IP to a machine with multiple interfaces and have them all work?

You might look into bonding ports together. It might be necessary for switch support to make this work as you desire.
mdpc's user avatar
  • 11.9k
0 votes

How is it possible to connect multiple devices using the same IP to a machine with multiple interfaces and have them all work?

For each device that has a mac address you need to assign a seperate ip. Or setup simple dhcp server and assign the ips dynamically. You can't assign the same ip to two different devices,that will ...
Turdie's user avatar
  • 1,307
0 votes
Accepted

not able to send mails from linux ubuntu : 20.04 by using email mailutils (sendmail or mail keyword)

You need to configure the sasl_password parameter: smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_tls_security_level ...
OscarG's user avatar
  • 16
1 vote

SSH Permission denied (publickey) fails on Ubuntu but succeeds on MacOS

RSA SHA-1 hash keys are depricated on new ubuntu version. For quick solution you can enable the RSA keys on the local computer, add these line in ~/.ssh/config or /etc/ssh/sshd_config and restart the ...
user103373's user avatar
1 vote
Accepted

How to upgrade kubernetes repos on ubuntu

Read the documentation you are linking to again. Quote from it: Change the version in the URL to the next available minor release, for example: deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring....
Gerald Schneider's user avatar
0 votes

Installing Ubuntu on a Dell R210 with S100 raid controller

I found a solution. The issue occurs when ubuntu need to make disk changes. Download DBAN linux image (https://dban.org) Burn ISO in usb or cd or dvd boot with this disk Execute a Wipe in your disk(s)...
Nilcemar Ferreira's user avatar
2 votes
Accepted

What is the meaning/cause of this extra entry in the output of `ip address` when another device connects to the network?

The likely cause of the observed symptom: a new IPv6 address appears on a node (which happens to be running microk8s) in the LAN after booting an IPv6 router on the same LAN is that the router sent ...
A.B's user avatar
  • 11.6k
1 vote

Why am I not able to resolve names on subnet behind a lab network?

It seems like your dns server is not reachable on 10.150.0.5, because you forward everything to 172.16.0.2. You could try to change your iptables rules for dns forward to something like this iptables -...
Turdie's user avatar
  • 1,307
0 votes

Is opening SMTP port with default Sendmail config safe?

Outgoing SMTP is not a problem. Incoming could be. Make sure in your sendmail config that you are not an open relay. You could run this to prevent an open relay sudo sh -c 'echo "FEATURE(`...
Turdie's user avatar
  • 1,307
1 vote
Accepted

Is opening SMTP port with default Sendmail config safe?

Yes, you're very probably running a wide-open mail server and will shortly become a spam source if you aren't one already. You do not need to be able to receive email in order to send it. In your ...
tsc_chazz's user avatar
  • 1,351
1 vote

Forbid characters in Ubuntu password

As recommended by @HBruijn you can use the pam-script module. Example /etc/pam.d/common-password # here are the per-package modules (the "Primary" block) password requisite ...
der_wolle's user avatar
  • 193
0 votes

Very low resource usage on Openlitespeed (LOMP) on Ubuntu 22.04

Figured it out. I noticed this issue didn't exists with MySQL. Turns out mariaDB has a max_connections parameter. I edited it under the file /etc/mysql/mariadb.conf.d/50-server.cnf and then ran the ...
Noob YT's user avatar
1 vote

How can I route traffic over IPSec tunnel?

I up this intersting post. I have a similar problem. Normaly ipsec manage the main route via the file ipsec.conf and the directive leftsubnet=10.0.0.0/8 and rightsubnet=192.168.0.0/16. So for he main ...
nel23 FX's user avatar
0 votes

virt-manager Spice copy paste doesn't work

I don't have enough reputation in order to comment so I'll just leave this as an answer. Since Debian 12, I've had to manually run spice-vdagent as the user even though the service/socket are running ...
theCalmChameleon's user avatar
0 votes

How to replace failed disk on Linux Raid (mdadm)

About the only clue I see is this: /dev/sda1 2048 3886718975 3886716928 1.8T fd Linux raid autodetect It appears that your /dev/sda partition table, and probably /dev/sda1, is so messed ...
tsc_chazz's user avatar
  • 1,351
0 votes

If I have multiple versions of Postgres installed, how do I use a version specific tool?

2 things: Your "viceversa" not working actually is not true. pg_dump is able to connect to databases of an older version. So a pg_dump version 14 should work with a postgreSQL 12 database. ...
jdorio's user avatar
  • 1
2 votes

Recover ZFS mirror from pool with unavailable device

SHORT ANSWER: restore from backup. If that fails, try the suggestion below. If even that fails, contact a professional recovery service. LONG ANSWER: you basically added the disk as a top level vdev (...
shodanshok's user avatar
  • 48.9k
0 votes
Accepted

How can I keep track of nginx restarts and reloads?

With some auditd rules -a always,exit -F path=/usr/sbin/nginx -k nginx_exec -a always,exit -F arch=b64 -S kill -F a0=1 -F a1=9 -k nginx_restart -a always,exit -F arch=b64 -S kill -F a0=1 -F a1=1 -k ...
Turdie's user avatar
  • 1,307
0 votes

How to get URLs for requests currently served by Nginx?

To show the full url, add the following log_format main '$remote_addr - $remote_user [$time_local] ' '"$request_method $scheme://$host$request_uri $server_protocol" ' ...
Turdie's user avatar
  • 1,307
1 vote
Accepted

Set stack limit on WSL2 permanently

/etc/security/limits.conf are used by pam_limits. You need to authenticate via ssh, su, sudo, for PAM and limits.conf file to be taken in consideration. I see as alternative to set the limits in ~/....
Mircea Vutcovici's user avatar
0 votes

Postgres /root": Permission denied

Step 1 stat -c "%G" . Step 2 sudo usermod -aG <the output from the step 1> postgres df.tips/t/2063/2
Dmitrii Fediuk's user avatar
1 vote

Nginx Embedded Variables - How do you get the domain name used in a request?

From server_name variable documentation, you can try with "named capture groups". This handles subdomains (but not the subdomain-less corner cases...): server { listen 80; listen [::]...
sphakka's user avatar
  • 222
2 votes

Turn off buffering in systemd unit-file?

You may be encountering a long-standing systemd bug. For more info, see the accepted answer to: systemd does not consistently capture and log stdout
MilesF's user avatar
  • 33
1 vote
Accepted

Configure nginx running locally to server the port running docker container locally

Firstly, open the configuration file located at /etc/nginx/sites-enabled/default. Check the file's content; you will easily find a location /. Add these three proxy lines inside the location /. ...
Shivam Ahuja's user avatar
0 votes
Accepted

How to properly do ip specific routing on sbc gateway/router? Not forwarding responce

Try adding a NAT on the VPN interface, the issue could be the destination serve/ the network from the other VPN side is not ware of the 192.168.100.0/24 try adding a nat on the VPN Interface. iptables ...
Roid's user avatar
  • 199
0 votes

How to properly do ip specific routing on sbc gateway/router? Not forwarding responce

The remote end needs a route for how to reach 192.168.100.0/24. That route will be via the VPN server. Remember that routing works both ways, and need not be symmetrical; a packet is a discrete unit, ...
vidarlo's user avatar
  • 8,144
0 votes

Configure nginx running locally to server the port running docker container locally

Did you added these lines in your nginx configuration for configuring reverse proxy from 9000 to 80 port. location /some/path/ { proxy_set_header Host $host; proxy_set_header X-Real-IP $...
Shivam Ahuja's user avatar
0 votes

Configure nginx running locally to server the port running docker container locally

You need to bind the docker container 9000 port to your localhost. Use the following command for binding. docker run -d -p 9000:9000 <your_container_image>
Shivam Ahuja's user avatar
1 vote

pm2 process kill the server by running pm2 update multiple times

Try using below command options while starting pm2 process. It will automatically restart pm2 according to adjusted RAM or Cron time pm2 start app.js --max-memory-restart 1G pm2 start app.js --cron-...
Shivam Ahuja's user avatar
0 votes

Rkhunter reports file properties have changed

Since you mentioned Ubuntu which indeed comes with APT, this happens because you update executable files via apt update && apt upgrade but the dabatase of rkhunter is not updated accordingly. ...
João Pimentel Ferreira's user avatar
0 votes

How to install postgres and create new user and db using ansible playbook?

You can read in this link that: Ansible modules are executed on the remote machine by first substituting the parameters into the module file, then copying the file to the remote machine, and finally ...
J.M. Robles's user avatar
  • 1,020
0 votes

poor docker / nginx throughput when running with bridge network on ubuntu

Do you need PHP - and PHP-FPM? Your question speaks about profiling using a static HTML file. The response will clearly be different for static vs dynamic PHP. If you are only interested in static ...
TuneLinux's user avatar
0 votes

Remotely use root over ssh for unison

Running Unison as root on a remote system carries security risks, and it's generally not recommended. However, if you have a specific use case that requires it, you can use sudo and SSH to execute the ...
Don Globian's user avatar
1 vote

Swap file is not recognized by the Ubuntu server

You probably can find out better where the OS has it swapfile mapped by executing cat /proc/swaps before doing anything "in the blind". Anyway, to create a new swapfile is follow this steps: ...
Jorge Lourenço's user avatar
0 votes

ufw blocking apt

This issue has been driving me mad for days, ended up resolving it by just completely uninstalling ufw and cleaning up any leftover resources and then doing a clean install again with the same port ...
M.Ed's user avatar
  • 101
5 votes

Is it bad that I don't update the server?

Yes, it is always a bad idea to ignore updates, as this will make your server vulnerable to known exploits / zero-days (And by the way, it is possible to revert an update in linux). Your ...
Martin's user avatar
  • 2,264
0 votes

Strongswan on host, docker container unable to pass through

That NAT rule is incorrect as that is basically what Docker already does anyway (NAT private Docker networks to the IP of the host). Since the local traffic selector (leftsubnet) for the VPN is the ...
ecdsa's user avatar
  • 4,003
1 vote
Accepted

Did I just watch my NVMe drive fail? Or possibly my motherboard?

I just had a look at your pastebin and that doesn't look good :( I'm going to throw ideas your way anyway: NVME tend to run hot when heavily used. If it's overheating, it could cause premature wear ...
kbftech's user avatar
  • 26
0 votes
Accepted

LACP between Ubuntu 22.04 and Open vSwitch: Ubuntu neither responding nor sending LACP PDU

I took another stab at this on another set of VM and it's now working! The difference I can see is that I added the interfaces in netplan yml ie: network: ethernets: ens1: addresses: ...
Xuo Guoto's user avatar
2 votes
Accepted

In apt, How to move package from direct package to transitive package?

You can use apt-mark to set a package to automatically installed. Example: $ sudo apt install php8.1-cli $ apt search php8.1-cli php8.1-cli/jammy-updates,jammy-security,now 8.1.2-1ubuntu2.14 amd64 [...
Gerald Schneider's user avatar
1 vote

How do I restart the Samba service?

You might want to try this: systemctl restart smbd systemctl restart nmbd This will work if you are using systemd.
Konrad Gajewski's user avatar
1 vote

Missing php8.0-fpm sock file

Support for Ubuntu 18.04 was removed from Ondřej Surý's PPA on June 15, 2023 as that version of Ubuntu is no longer supported. If you really must use PHP 8 on an Ubuntu 18.04 server, then your only ...
Shivam Ahuja's user avatar
0 votes

Missing php8.0-fpm sock file

You don't install it - it is created automatically when PHP-FPM is run. It is created in the location defined in the FPM config. The valid use-cases for running multiple PHP versions on the same host ...
symcbean's user avatar
  • 21.9k
1 vote
Accepted

How Can I Automatically Restart MariaDB After Memory-Induced Crashes to Reduce Website Downtime?

Based on my research the best practice is this: # Restart crashed server only, on-failure would also restart, for example, when # my.cnf contains unknown option Restart=on-abort RestartSec=5s In this ...
Turdie's user avatar
  • 1,307
2 votes
Accepted

connection refused mysql with telnet

Your mysqld is only listening on the loopback interface. Add the bind-address parameter to the [mysqld] section and restart mysqld. [mysqld] bind-address=0.0.0.0
Gerald Schneider's user avatar
0 votes

How i can init kubeadm on containerd or cri-docker?

I had the same problem and I solved it by doing what is written in this tutorial : https://www.jjworld.fr/kubernetes-installation/
Kevin Jj's user avatar
1 vote
Accepted

Apache2 not listening on SSL on Ubuntu

If the Apache process is not listening on port 443 you are missing the Listen 443 directive in your configuration. It should be enabled by default if the ssl module is active, so make sure the module ...
Gerald Schneider's user avatar
2 votes

Apache2 not listening on SSL on Ubuntu

Also (check other answers) you chould change the files in the config. This: SSLCertificateFile /root/cert/ca-bundle.crt SSLCertificateKeyFile /root/cert/Private.key SSLCertificateChainFile /root/cert/...
Romeo Ninov's user avatar
  • 5,533
0 votes

Apache2 not listening on SSL on Ubuntu

It looks like your domainname.conf file is not enabled. Checkout the /etc/apache2/sites-enabled and to find out which configuration file is enabled.
Shivam Ahuja's user avatar
0 votes

Apache2 not listening on SSL on Ubuntu

Configuration from /etc/apache2/sites-available is not included in the apache2.conf, but configuration from /etc/apache2/sites-enabled. Create a symlink using sudo a2ensite domainname
Esa Jokinen's user avatar

Top 50 recent answers are included