Recent Questions - Server Fault |
- Combining security key based login with sshfs mount on PXE booted live system
- Pfsense ftp connection
- Reject mail based on FROM domain
- dial tcp i/o timeout then logging in to minio
- Logrotate Create Mode Issue
- Best AWS service to host a software that can listen on the given ports [closed]
- Rewrite DNS requests using iptables
- Alert created with wazuh-logtest but not in real
- Nagios on a virtual network
- Apache2 on Ubuntu EC2 goes down and does not restart
- Can't Recover Space from qcow2 image without deleting wanted snapshots
- Kubernetes Nginx Ingress could not load custom certificate from cert-manager
- Cloud Functions return status 500 and doesn't show in registries
- IIS Application Pool taking too much memory
- infoblox Cannot add records to a zone that is not authoritative
- How to diagnose/troubleshoot tftp timeout
- MySQL Bad Handshake to MySQL Cluster behind Proxy
- Validate nginx.conf during ansible deploy
- Creating a docker container from a capistrano deploy
- Changing host permissions for MySQL users
- Hadoop: Slave nodes are not starting
- truncated headers from varnish configuration file
- Web Deploy to IIS7 fails with 401 (Unauthorized)
- XenApp will not "stream" published applications, but will run "installed applications"
- rsyslog to external script
- Migrating from SVN to GIT with all externals
- Missing Dependency Errors when Installing OpenVas Server
- mdaemon bad mails queue
- Remote installing an msi on citrix servers using WMI
Combining security key based login with sshfs mount on PXE booted live system Posted: 29 May 2022 11:25 AM PDT TL;DR: What is the best way to mount user homes via SSHFS (or any other encrypted protocol) at login while enforcing the use of security keys like Yubikeys and Nitrokeys? The long version: I need to build a new network consisting of (initially at least) one central server and multiple clients. Idea is to let the clients boot via PXE and then mount all needed folders via SSHFS. That should be no problem at all with a correctly configured pam_mount if I only wanted to use username and password, but I also need to enforce the necessity to use a Yubikey as second factor to unlock the SSHFS mounts. Do you know of any more or less ready-to-use solutions which I can use to reach my goal? For the sake of completeness of course I also had a few ideas, but I don't know if one of them is actually feasible:
Thanks in advance for any hint. |
Posted: 29 May 2022 10:33 AM PDT |
Reject mail based on FROM domain Posted: 29 May 2022 09:38 AM PDT I'm wondering if it's possible to setup filter in sieve to catch the FROM domain and match that with the TO recipient mailbox name. Usage is to filter unwanted emails when companies sell/share my personal information. ex. This should be accepted: This should be rejected: |
dial tcp i/o timeout then logging in to minio Posted: 29 May 2022 09:15 AM PDT I've setup an minio installation via docker on one of my servers. I can access the login screen without a problem. However, when the login itself does not work.
What could be the reason for this? This is my docker-compose.yml there is also an nginx running on that server but I don't think that's the issue. |
Posted: 29 May 2022 08:45 AM PDT I have a trouble with logrotate service in linux. I have a logrotate config for mongodb log as below: As can be seen, I expect that mode of new mongodb file to be 644 but it is 600 and only the closed log file mode is 644.
I don't understand what problem is exactly. |
Best AWS service to host a software that can listen on the given ports [closed] Posted: 29 May 2022 07:36 AM PDT I am looking for the correct AWS service to use to host a software. The software itself includes modules that acts as a mini server, the users can start the module and then it will listen on the given port and should be accessible externally. Currently, I am using AWS Ec2 to do it, as it allow me to open all the ports 0-65535 and it gives the public IP too. I am wondering if there is any better and cheaper alternative for this use case? I heard EKS,etc. |
Rewrite DNS requests using iptables Posted: 29 May 2022 07:19 AM PDT The local PC is behind a NAT, and say has a local address of 192.168.1.234, and the public IP is 1.2.3.4. If it is desired to have port 23451 open to the outside world and for it to behave exactly like the local Ubuntu's |
Alert created with wazuh-logtest but not in real Posted: 29 May 2022 06:56 AM PDT I created a custom decoder and a custom rule to generate alerts when receiving UniFi logs via syslog. When I use the Here are my decoder and rule : Here is how I configured my Wazuh manager to listen for Syslog : For now they are really simple, as I just want to trigger the rule and have an alert generated with any message received from the UniFi controller. I want to be sure that the log matches with my decoder. No need to extract any information for now. FYI, here's what an UniFi log looks like (listened with a Syslog server) : As I said, it triggers the rule and creates an alert when I try it with I already configured the same stuff for Synology logs and it works great. But for Unifi it doesn't. I am using Wazuh v4.2.5 and UniFi controller v7.1.65 My Wazuh and Unifi servers are both Debian VMs. The Wazuh agent is not installed on the Unifi controller, I only want to use Syslog for now. Many thanks for your help ! |
Posted: 29 May 2022 06:46 AM PDT I am trying to emulate a virtual network in Kathara (ex. NetKit), based on OSPF and BGP routing and I am new to this. After emulating the network I need to monitor it using Nagios, but my question is how is it possible? My virtual network is running on an Ubuntu distro, do I need another virtual machine where I should install Nagios, or how does it work exactly? I am new to these technologies and I don't really understand what point I am missing. From what I know Nagios should be installed on a server and the NRPE on the monitored one..but in this situation I just cannot see clearly. Thank you in advance and excuse me if any mistakes have been made. |
Apache2 on Ubuntu EC2 goes down and does not restart Posted: 29 May 2022 05:01 AM PDT History: We moved a Codeigniter 3 Installation from Bluehost to a T3.2xlarge. That single instance is hosting apache2 and a mysql server as a local database. On Bluehost, the instance was running fine, migration was done since Bluehost itself had outages and we wanted more reliable hosting. Error Since the migration the Page is randomly going down completely. Trying to restart apache2 with: Does not work, it requires a full reboot of the EC2 instance to get the service running again. After rebooting EC2, apache2 and mysql is running and the page is up without starting the services after the reboot of the instance. Debug attempt 1 Since the page went down when database intense crons were run, I assumed the mysql server is the bottleneck. Migrating the full database into a serverless RDS should eliminate all database related bottlenecks. The same database intense crons are finishing now. To further eliminate the cron being the reason for the system going down, I cloned the EC2 and used the clone to run the cron while the original hosts the webpage the domain is pointing to. However, random outages still persist. Debug attempt 2 Assuming it is a memory issue, after checking phpinfi.php I saw that PHP had 128Mb of RAM ( on a 32Gb machine ), so just to see if more RAM helps:
phpinfo confirmed the memory_limit is set to 8192M. Random outages still persists. Debug attempt 3 Checking the command: returns:
Checking the command: contains:
So I assume, that Apache somehow is shutting down for some reason but is not able to restart. Checking the command: does not throw errors Checking the command: does not throw errors Checking the command: shows:
Where I can see 2 things:
Checking the command: returns:
What does not show a MPM module. Checking the command: returns:
Checking the command: returns:
Question: And this is where I have been kinda stuck now. Is there anything else I can check or read from debug attempt 3 to see why apache stops/does not restart and requires a full server reboot? |
Can't Recover Space from qcow2 image without deleting wanted snapshots Posted: 29 May 2022 09:34 AM PDT I have a virtual machine that started out with 5 snapshots 1,2,3,4,5. I used qemu-img to delete snapshots 1,2,3. Snapshots 4 and 5 are still needed and were not deleted. How can I release the space used by snapshots 1,2,3 and retain snapshots 4 and 5? I have spent a lot of time searching for a solution, and the solutions I have tried got the following results:
How can I recover the space in a qcow2 file after deleting snapshots, while retaining remaining snapshots? I find it difficult to understand why there isn't an easy way to achive this that is clearly documented Edit: Is there any way to copy Snapshot 4 to a new file as a snapshot, and then add the delta for snapshot 5. Then I could just discard the extra file with the wasted space. |
Kubernetes Nginx Ingress could not load custom certificate from cert-manager Posted: 29 May 2022 05:09 AM PDT I am using I am deploying Nginx ingress with kustomize When I open the logs of the ingress controller, I could see this error
What I can do to troubleshoot this? UPDATE If I run
It returns nothing. However, if I run
It returns However, if I change to this on YAML, I get the same error |
Cloud Functions return status 500 and doesn't show in registries Posted: 29 May 2022 08:01 AM PDT I'm getting a strange behaviour, I have a few http functions in Firebase Cloud Functions. They work perfectly, but there are days that they start returning status 500 for a while and then go back to working normal for a few minutes and then start returning status 500 again, this behaviour remains for the entire day. The most strange part is that I don't get any error messages on my stack driver, in fact, there are no registries about these calls, it is as if the calls doesn't reach google's services somehow or it is just rejected and there are no registries about it. I'll post the implementation of one of the most used functions in my application: And this is how I invoke it, the client application is running on Xamarin Forms app usinde the c# language:
Subscribe to:
Post Comments (Atom)
|
No comments:
Post a Comment