Questions tagged [linux]
Linux is the generic term for a UNIX-like open source operating system based on the Linux kernel.
38,310
questions
1
vote
0
answers
6
views
Azure NFS migration from on prem NFS
Context: We are working on a data migration project involving the synchronization of data between an on-premises NFS filesystem and an Azure NFS-based file share. The goal is to ensure a seamless ...
0
votes
1
answer
21
views
Bash script : Print all lines between two pattern in variables with slashes
I have a directory that looks like so :
/path/to/files/data-file.1
/path/to/files/data-file.2
/path/to/files/data-file.3
/path/to/files/data-file.4
/path/to/files/data-file.5
/path/to/files/data-file....
-1
votes
0
answers
10
views
pcap_inject fails with error "No buffer space available" on CentOs
I am creating an application where I am sending packet to network port / veth port with pcap_inject(). It was working few days back but now it started throwing error as "No buffer space available&...
0
votes
0
answers
8
views
Using sssd for local authentication and identification against /etc/passwd?
This question is about RedHat Enterprise Linux 7/8/9 and Ubuntu 22.04, but it is probably pretty universal for most distros.
I have sssd working for authentication against both Active Directory and an ...
0
votes
1
answer
37
views
Apt asks me "Which services should be restarted?", but won't accept my answer
Restarting services...
Daemons using outdated libraries
--------------------------------
1. containerd.service 4. fail2ban.service 7. networkd-dispatcher.service 10. systemd-logind.service ...
0
votes
1
answer
40
views
Logging Source IP of SMB Login Attempts
We have an TrueNAS System running TrueNAS-13.0-U5.3. It is bound to Active Directory and used solely for SMB file sharing. Recently there have been periodic event where SMB service quality is degraded ...
0
votes
0
answers
6
views
Fluentd logs not sent to Elasticsearch on K8s
I have a cluster in VirtualBox to learn kubernetes. I have a deployment that contains MySQL and phpMyAdmin. I created a DemonSet that has the fluentd image and collects the logs to transmit them to ...
1
vote
1
answer
71
views
Blocking traffic from specific countries. How to kill existing connection?
Using Linux Debian Bookworm.
Problem
I want to block all incoming connections to my server coming from specific countries.
Edit
As someone pointed out in the comments, I really shouldn't be doing this ...
1
vote
0
answers
15
views
Replacing Xcfe4 to GNOME [closed]
We are planning to make a Linux Distro using EznixOs and I want to change the environment to GNOME from Xfce4. How can I do that?
-1
votes
0
answers
45
views
Convert plain TCP package into http request
I have an Apache server set up on port 80, and I receive data (text string) in plain TCP/UDP packets on port 8082.
I need my Apache server to receive these text strings for processing.
If I have ...
-1
votes
0
answers
20
views
Small linux box suitable for router [closed]
I'm looking for small (maybe ARM) box suitable to work as a router.
The point is it should have pure Linux distro (maybe Debian or Arch based) and allow installing new packages.
The perfect candidate:
...
0
votes
0
answers
24
views
In Linux how to find if a file was read and at what time [migrated]
Is there a tool or command where we can see if a file was read and at what time? I would only find for last modified.
0
votes
0
answers
10
views
Performance problems when running Wireguard between Linux virtual machines. Same config on physical hosts works fine
I’m running into performance problems with Wireguard tunnels running between two virtual machines on the same hypervisor (running under Qemu/KVM) and I would greatly appreciate any insights/advice ...
0
votes
0
answers
26
views
Simple solution to archive dovecot/postfix emails to second server nightly for long term storage with roundcube access
Our email server has ~150 email accounts containing material that cannot be deleted for 10 years. Some accounts are heading towards 10gb of data so I'd like to setup a nightly archive process that ...
0
votes
1
answer
40
views
VPN on Linux - IP routing issue
I got the following scenario:
an ubuntu server 20.04 lts, for simplicity named A server with the following network interfaces:
loopback
enp1s0 (wan) PUBLIC-IP/23
enp8s0 (lan) 10.9.96.3/20
ppp0 (l2tp) ...
0
votes
0
answers
23
views
Trigger OS shell script post kubernetes container boot
I am running truenas scale 23.01 with kubernetes. On the system I have a container X and a small app Y running natively that interacts with this container through its local IP and port.
Whenever ...
1
vote
1
answer
19
views
Exim, Debian 12 (bookworm): Tainted '..Maildir/' (file or directory name for maildir_local_delivery transport) not permitted
I have this Exim transport that works just fine on Debian 10:
maildir_local_delivery:
driver = appendfile
group = mail
maildir_format = true
create_directory = true
directory = /home/${...
4
votes
1
answer
41
views
Filtering for HTTP methods in IPv6 packets using tcpdump
I am using "tcpdump" to capture traffic, and I want to filter by HTTP methods. When I have IPv4 packets, I am using: tcpdump -s 0 -A 'tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x47455420' ...
2
votes
1
answer
201
views
Samba share not accessible to client in the same network
Two servers in the same network, a
Windows server (client), and a
Linux server (samba share host)
The shared folder can be seen by the client but not accessed. See below for the configuration:
smb....
1
vote
2
answers
82
views
How to use nft on linux bridge to block access to certain ip addr?
I have an Ubuntu box with a bridge br0 defined. The bridge has eth0 connected to the internet service and eth1 connected to the network port of a PC. The bridge is functioning as expected and passing ...
0
votes
0
answers
45
views
Very strange behavior of OpenVPN between two sites
We've got a OpenVPN configured with layer2.
It is connected to a BGP router which announces a /24 IPv4 and a /29 IPv6. The purpose of the VPN is to redistribute IPv4 and IPv6.
However, recently I have ...
0
votes
0
answers
23
views
OpenVPN connected with route errors [closed]
When connecting to OpenVPN, i get new IP and 2ip shows me it (even though it shows me another country). Whenever i cannot acces websites that are not working without VPN. OpenVPN GUI shows me message &...
0
votes
0
answers
21
views
How to secure linux Server for dev purpose [closed]
I'm working on a website project with a friend, and we're using instances like Keycloak and MongoDB for our project. To avoid the need to install everything on each of our devices, I've rented a ...
0
votes
0
answers
20
views
Systemd sequencial stop of template unit instances
I have a template unit that that I have to created in order to start/stop some services running an a given port. something like [email protected], ser[email protected].
[Unit]
After=network.target
...
0
votes
1
answer
32
views
Have you got a worked example of using Postgres through ODBC with openssl and the Progress DataDirect Linux driver?
I am new to openssl configuration, Postgres, and the Progress DataDirect ODBC driver, and I am trying to set this up. I have Postgres working in a container, set up with
tjcw:~$ openssl req -new -x509 ...
0
votes
1
answer
51
views
Is it possible to configure a Linux/Ubuntu computer to be network silent?
I'm testing a customized network device using a Ubuntu computer from which I send network packets and check the actions on the network device. I'd like to only send over the packet I want, but since ...
0
votes
0
answers
19
views
AWS CodeDeploy - Must be connected to a terminal
I have a CICD Bitbucket pipeline that runs and tries to execute a deployment script.
appspec.yml
version: 0.0
os: linux
files:
- source: scripts/osgi-deploy.sh
destination: /home/...
-1
votes
1
answer
46
views
SSL Certificate Renewal Broke Payment Gateway - Modulus Mismatch
I have encountered a problem with my website's SSL certificate renewal, and it seems to have affected my payment gateway. Here's a brief overview of the issue:
Background:
I have a payment gateway ...
3
votes
0
answers
53
views
Reading from software RAID in parallel is slower than it "should" be, given other benchmarks
Note:
I have seen some somewhat similar questions here, but:
none of them concern reading many files in parallel, and
most are 10+ years old and concern no-longer-relevant hardware and kernel ...
0
votes
0
answers
21
views
umount a bind source won't work, and device out of space
I think I may have shot myself in the foot. Long ago I tried to backup a old linux machine to a nas using the mount bind command:
mount --bind / /mnt/src
tar -C /mnt/src -c . > /mnt/backup_to_nas/...
1
vote
0
answers
50
views
Nftables does not work as expected to block with meter
Goal:
Account for excess packets whose rate source IP and destination port are greater than 200 packets per second, example:
1s to 2s:
IP 1.1.1.1 to MyServer:80
[This happens 201 times in second 1]
...
0
votes
1
answer
37
views
Unable to Connect To Repo Server On Local Network
I currently have two VMs:
node1 (192.168.55.201)
repos (192.168.55.203)
I'm trying to set up node1 so that it can retrieve packages from the repo server. I currently have the AppStream repo, and ...
0
votes
0
answers
25
views
Building server for research team
this is kind of a big task for me, I have an engineering background with computer science knowledge but I'm no expert in servers and networking.
I want to build a GPU-enabled computing platform that ...
0
votes
0
answers
29
views
TPROXY is not redirecting all traffic to a specified port
I'm writing a UDP transparent proxy in Rust, I'm using several crates
socket2 => Access to the creation of a RAW socket
nix::sys::socket => Access to all of the low level socket API calls
std::...
4
votes
1
answer
83
views
Different behavior of `man` for root and user
Recently a user asked me for help and wrote:
"Why does invoking man /bin/find display gibberish?"
I answered that he was using man incorrectly by providing a path, that man was ...
0
votes
0
answers
16
views
Possibility to handle HTTPS connections by retrying failed ones via proxy, solve occational "connect: connection refused"
Sometimes I receive this error:
Error: Get "https://example.com/etc/etc": dial tcp 10.0.0.1:443: connect: connection refused
The connection fails occasionally. When I try again, it works.
...
0
votes
0
answers
16
views
Root user action constraints with sticky bit
I have an ubuntu 20.04.x instance on AWS which displayed very unexpected behaviour.
I have a file in /tmp:
root@ip-10-0-1-145:/tmp# ls -l api_requests_2023-08-23.log
-rw-r--r-- 1 www-data www-data ...
-1
votes
0
answers
33
views
NTP / Chrony time sync with no external source
we have a customer who doesn't allow internet access, so all servers are in their own clock mode.
we used windows Domain controller to be the Source but as it cant talk to internet, STRATUM is low so ...
0
votes
1
answer
35
views
AD Domain joined linux server equivalent of NLA
First, some background.
Today, if you're in a mostly-Windows Server AD environment with just a small number of linux servers, you have a choice for authenticating to the servers via SSH:
Manage the ...
0
votes
1
answer
27
views
Best Practices for Setting Up Multiple OpenVPN Instances for Different Clients
I'm working on a project where I need to set up OpenVPN instances to connect IoT devices from various customers to a central server. Each client should have its own isolated VPN connection. I'm ...
0
votes
0
answers
26
views
kafka kraft configuration + dedicated controllers machines
We are preparing Huge Kafka Kraft cluster
Installation is on 35 physical Linux machines and 3 dedicated controllers on 3 VM Linux machines
each broker machine include:
512G RAM memory
64 CORE's
...
-1
votes
0
answers
38
views
Access Ubuntu OpenVPN Client From Other Machines on Local LAN
I have an OpenVPN client running on an Ubuntu machine (192.168.107.1/24) and able to successfully connect to a remote OpenVPN server (10.0.0.1/24). The problem is when the client is connected, other ...
0
votes
0
answers
37
views
Prometheus Server Pod Suddenly Crashed (unexpected fault address 0x7f911b1795d4)
With traffic Prometheus server pod getting restarting with below error stack. This is happend when the live traffic of the system. But could not be able to reproduced with the load testing.
Grafana ...
0
votes
1
answer
74
views
KVM: qemu-system-x86_64: cannot set up guest memory 'pc.ram': Cannot allocate memory
When trying to start a VM (1GB allocated) I have run into memory allocation issue even though I have more than enough memory on the system (16GB):
error: Failed to start domain exampleVM
error: ...
0
votes
0
answers
33
views
RHEL9.2 complains about missing /lib/modules/5.14.0-284.25.1.el9_2.x86_64 when rebuilding initramfs
The kernel on one of our RHEL9.2 servers was recently upgraded to 6.2.8 in preparation for a software upgrade but due to complications, we've had to revert back to 5.14.0-284.25.1.el9_2.x86_64.
I've ...
-1
votes
0
answers
24
views
Accessing IML log on a HP Miniserver Gen10 plus v2
I have an HP Gen 10 server running Proxmox hypervisor that frequently hangs and restarts. I found nothing in system logs.
Is it possible to access IML logs without having a subscription for the ILO?
1
vote
1
answer
106
views
Show quota limit of user's home directory
What I am trying to do is to get quota limit of current system user's home directory, which is btrfs quota-enabled, using the following command:
/usr/sbin/btrfs qgroup show-reF ~/
The above command ...
-1
votes
0
answers
30
views
Disk capacity discrepancy in gparted linux
I just buy an old server which has an old HDD hard disk with Ubuntu OS inside. I want check capacity of hard disk and when I check this with gparted command, result show in gparted result. In line &...
0
votes
0
answers
45
views
NTP symmetric key authentication to chrony servers
Pretty simple question (I think), but in reading chrony's own docs and perusing through RedHat's docs, I can't find a firm answer. Probably because it's too dumb of a question to need an answer :P
If ...
-2
votes
1
answer
45
views
Tomcat Service failed
Hello I am trying to run the status of my Apache tomcat and I keep having it failed. this is what I am getting
tomcat.service - Tomcat 10 configuration file
Loaded: loaded (/etc/systemd/system/...