Recent Questions - Server Fault |
- Why can't I ping a IPv6 enabled device?
- Btrfs on multiple disks with "archiving on slowest drive" balancing strategy
- Deny unencrypted s3 buckets via SCP
- Wordpress asking for FTP when deleting plugins
- JBoss AS v6.1: managing applications
- Is there a simple way to turn a Linux machine/cluster into an object based storage device?
- UFW OpenVPN issue on Ubuntu 20.04
- How do I change MySQL wait_timeout in production environment at runtime?
- Ping host with dual IPs on 1 IP, echo returns from other IP
- How to create an SSL certificate for an AWS application load balancer without a domain
- Can you modify the OWA redirection page in a hybrid O365 environment?
- File writing issue with mounted ftp drive with curlftpfs
- how to require publickey and otp, or password and otp when logging in with ssh?
- Postfix allow incoming mail for specified domain from specified ips
- Nginx configuration with HAproxy proxy protocol and internal redirection
- How to Easily Pass an Environment Variable to an .exe in "Bash on Windows 10"?
- Apache: Redirect everything from www to non-www using https only (including HSTS)
- Cisco SF500-24P Image Upgrade to 14088 fails
- Possibility to know who created an instance on Azure
- Why isn't the arc_max setting honoured on ZFS on Linux?
- Enabling DSA key authentification for SFTP while still keeping password login as optional (Ubuntu 12.04)
- Zabbix agent - high CPU usage
- Nagios Configuration Error
- Allowing Domain Users to run winrm commands
- How to formulate IP forwarding rule using iptables
- Restoring StaticFileModule in IIS
- How to understand /etc/mtab?
- God Process Monitoring - CentOS - Event System Not Found
- VSFTPD Virtual (Guest) Users with @ in username
Why can't I ping a IPv6 enabled device? Posted: 28 Aug 2021 09:13 PM PDT I have two devices, each connected to a mobile hotspot from different network providers. Going to myipaddress.com shows me IPv6 addresses from these devices. So I assume they can be accessed through the internet. However, when trying to ping these devices from my computer connected to a third network provider, I am able to ping the first device successfully, however pinging the second device returned a "request timed out". My question is, why does the ping only work on one network provider and not the other even though they both assign IPv6 addresses to these devices? Does one of the network provider restrict access through a firewall? If so, is there a way to get around it? Would appreciate a response. Thanks guys |
Btrfs on multiple disks with "archiving on slowest drive" balancing strategy Posted: 28 Aug 2021 07:58 PM PDT I was wondering if the following setup is possible using Btrfs. I have a laptop which has (and I guess this is going to be more frequent) a 500GB SSD and a 2TB HDD. I would like to mainly use the SSD to benefit from its fast performances. When running low on space on that device, I would like to use the HDD as a storage for files that are used less frequently and/or that are getting older (archiving). Currently, although I have Btrfs on both disks, I mounted them on two different mount points (e.g. SSD subvolumes on I was wondering if, with the right combination of multi-device profile ( The icing on the cake would be that it is subvolume-aware, so that system files are left on the efficient drive, while user files can be balanced. |
Deny unencrypted s3 buckets via SCP Posted: 28 Aug 2021 07:19 PM PDT Folks just wondering if there's ability to attach a SCP to OU accounts denying S3 buckets from being created if default encryption is not opted upfront. From cloud trail it's apparent that PutBucketEncryption and CreateBucket are not in the same transaction. Also CreateBucket doesn't take in encryption via headers in it's Api call. So adding a condition like below might not yield at all. ''' "StringNotEquals": { "s3:x-amz-server-side-encryption": "AES256" } ''' Any leads guys? Appreciate your responses. Cheers! |
Wordpress asking for FTP when deleting plugins Posted: 28 Aug 2021 06:41 PM PDT Wordpress asks me for FTP credentials when I try to delete or install plugins. I know it has to do with permissions but I have been unable to figure it out. I have a linux system user XYZ and apache2 run as www-data. This works: But it's unsafe. My initially planned configuration was: According to the wordpress docs, wp-content is the only folder which the webserver should have write-access to. It comprises the plugins and themes folders. But it doesn't work. I've spent several hours researching online but nothing has helped so far and I don't know what to try anymore. What are the right permissions to allow automated updates and plugin installation, without giving the webserver write-access to everything? edit: For whatever reason, the following does not work: I thought it to be identical to the first variant above, giving www-data write-access to everything. But it doesn't do the trick. |
JBoss AS v6.1: managing applications Posted: 28 Aug 2021 04:09 PM PDT On our installation we typically restart the entire JBoss AS every time we need to restart one of the WARs that are deployed (in expanded form) under ..../deploy folder. I thought I'd be able to individually start/stop/update WARs using the admin console and the CLI, and without stopping the entire AS, but just today I discovered that (a) our WARs are seen as "embedded" and cannot be managed via the console, and (b) there is no CLI for AS, only for EAP. Can I, perhaps, do the same thing by "brute force", i.e. removing the expanded WAR from the folder (to effectively undeploy), or replacing it with the new version (to effectively update), while the server runs? Please advise. PS. Yes, I know, 6.1 is very, very old, it's a long story. |
Is there a simple way to turn a Linux machine/cluster into an object based storage device? Posted: 28 Aug 2021 03:38 PM PDT I was wondering if there was like a software I can install on a Linux machine/cluster that could somehow "replace" the existing file system with object based storage. Something I can also run CRUD operations on. Is there an on-prem software I can install without purchasing an S3 AWS cloud or something? |
UFW OpenVPN issue on Ubuntu 20.04 Posted: 28 Aug 2021 04:43 PM PDT I've got a curious OpenVPN / UFW issue on Ubuntu 20.04. I have a rule set to allow outgoing traffic over tun0: I'm only able to route traffic through tun0 with UFW running, if I go through the following strange dance each and every time I want to connect to the VPN:
Now, I am able to establish connections through the VPN tunnel, as expected. However without steps 4 & 5, all connections are blocked by UFW; I am unable to connect through tun0 - even though there is an explict UFW rule set to allow it. Here is my UFW user.rules file (I have an SSH rule too): Any ideas why this bizarre behaviour is occurring? |
How do I change MySQL wait_timeout in production environment at runtime? Posted: 28 Aug 2021 09:39 PM PDT I'm running Windows, IIS, MySQL, PHP. In my.ini under [mysqld] the value for wait_timeout is set to 60. But when I execute the following: It shows me that the value is 28800, which I know is the default. So I tried to set the value by executing the following: But this doesn't seem to work. MySql Workbench tells me "0 rows(s) affected" and when I execute show variables like 'wait_timeout' it still tells me that the value is 28800. I've also checked interactive_timeout and the story is the same. The value is 28800 and I can't change it. What am I missing here? |
Ping host with dual IPs on 1 IP, echo returns from other IP Posted: 28 Aug 2021 07:54 PM PDT I'm running Fedora 33 on a host (i5 cpu, 8Gb RAM, SSD and hdd) which is set up as a router; it has 5 NICs. I've managed to get dual internet gateways and dual LANs working reasonably well using nftables. One gateway is DSL with pppoe, the other a cable modem. Both connect and can see the internet. Both LANs can see the internet and provide services which are seen by the internet. IOW, NAT and forwarding are working well. Here is the problem: I can't figure out how to set up the routing tables. What's going wrong is that whichever gateway has the lowest metric works with NAT and forwarding to its LAN, but it shuts off NAT and forwarding to the other gateway and LAN. I have everything working on only one gateway at a time from the LAN machines' perspective. I know it's possible to set up routes so that machines on 10.0.0.0 always use ppp0, and machines on 192.168.1.0 always use coglink, but web searches on how to do it have been fruitless. Same with the internet facing interfaces. If someone can point me to a lucid relevant tutorial on IP routing for multiple interfaces, I'd be very grateful. |
How to create an SSL certificate for an AWS application load balancer without a domain Posted: 28 Aug 2021 09:04 PM PDT I am trying to create a Cloudformation stack that can be provisioned by anybody (basically I want to share it either in the marketplace, or make it public in GitHub), which includes a set of EC2 instances behind an ALB (no autoscaling, but rather a fixed number of instances). I can't rely on having a domain, since I want to share this template, I don't expect everybody to own a domain. I can think of 3 solutions, but I don't like any of these (and I don't even know if they will work):
|
Can you modify the OWA redirection page in a hybrid O365 environment? Posted: 28 Aug 2021 06:05 PM PDT In a hybrid Exchange environment, if you migrate a user mailbox and then they attempt to access the mailbox using the on-prem OWA (Outlook Web App) link, they will be presented with a page that instructs them to click another link to reach their mailbox and offers a button to create a favorite to the new OWA on O365. Can this redirection page be modified to change the wording, add branding or remove the button to add a favorite? |
File writing issue with mounted ftp drive with curlftpfs Posted: 28 Aug 2021 03:03 PM PDT I have mounted an ftp account to my linux folder using below command The problem i am having is whenever I am trying to save data to any file on this mounted folder i.e. any text file it gives "Input/output error , unable to flush data " , afterwards the file is created in folder but data is not written to the file Is there anything i am missing with the command? I am using below curlftpfs version
I also found link below which shows some patch but there seems no documentation on how / where to apply it , any idea how to apply this patch? |
how to require publickey and otp, or password and otp when logging in with ssh? Posted: 28 Aug 2021 09:04 PM PDT I'm trying to get ssh to work in a way where password auth can be skipped with a key, and in addition every login would be followed up with totp using google's libpam on my new debian 9 installation. So far i've been able to get the first part working, where if i provide a key, the server asks me for the otp, but the way it is, i've had to comment out both Seems obvious then that if i do The logical way to solve this as it would seem to a novice like me, would be that i could define different pam methods or classes, and then somehow reference those in my sshd_config, but i cant seem to find any information regarding such an operation. Is it even possible to accomplish this particular combo? edit 1: Tinkering further with this, it really does not make as much sense as i initially thought. If i comment out both If i write my own pam.d module, is there any way to make ssh use it instead of edit 2: Im starting to think that i cant do |
Postfix allow incoming mail for specified domain from specified ips Posted: 28 Aug 2021 05:03 PM PDT I am running a Postfix mail server. Some domains are configured that the DNS So I tested some configuration changes on the Postfix server, that when an emails goes to the specified domains to check which ip sends this email. If it is an ip from the antispam service to accept the mail, all other ips reject the mail. As reference I took these two sites to configure the postfix mailserver: Postfix Limit mail for domain from IP range and http://www.postfix.org/RESTRICTION_CLASS_README.html When I test my configuration, i see that the part with the domains is working. But my problem is, all incoming mails for the specified domains are rejected, no email will be accepted, although the ip i send with is allowed. So here is my Postfix configuration.
|
Nginx configuration with HAproxy proxy protocol and internal redirection Posted: 28 Aug 2021 05:03 PM PDT I need to redirect HTTPS stream from HAProxy to Nginx without SSL termination and without loosing an info about the original client IP. Unfortunately I cannot change the configuration of default 443 site on Nginx because it's maintained by Synology NAS configuration. I was thinking about new listen port on Nginx accepting proxy protocol from HAProxy and kind of internal redirection to the local 443 port without SSL decoding / encoding, but with passing the original client IP taken from HAProxy. Is that somehow possible? Edit: The background is that I have tunneled OpenVPN and web services on the same external 443 port, so actually it looks as below: I use HAProxy because ngx_stream_ssl_preread_module is not available on Synology's builtin Nginx. Edit: I think the situation and question can be more generic: How to pass the stream from port X to Y with the information about the source client IP and without the SSL termination? Is listen directive with proxy_protocol on port Y the only possible option? |
How to Easily Pass an Environment Variable to an .exe in "Bash on Windows 10"? Posted: 28 Aug 2021 02:01 PM PDT I am looking for a way to easily pass an environment variable to a .exe when invoked from the Bash on Windows 10 terminal. It seems that does not work. |
Apache: Redirect everything from www to non-www using https only (including HSTS) Posted: 28 Aug 2021 07:02 PM PDT My goalEverything results in My current problems
DNS-settings: mydomain.tld.conf mydomain.tld-le-ssl.conf As you can see above in the mydomain.tld-le-ssl.conf another file is included, which might doesn't make problems, but just for the records: options-ssl-apache.conf Bonus-problemI have a
.htaccess I would like to live without the .htaccess-file and add the stuff to the .conf-file(s) if possible, but everything I did, didn't work yet. |
Cisco SF500-24P Image Upgrade to 14088 fails Posted: 28 Aug 2021 08:06 PM PDT I try to upgrade the system to 1.4.0.88 and it fails with error Status: Copy failed Error Message: Copy: SW code file is over sized I am using HTTP for the upgrade. Any suggestions? |
Possibility to know who created an instance on Azure Posted: 28 Aug 2021 08:06 PM PDT Is it possible to know via portal or powershell which of the admins created new instances on azure or at least get alerts when something new is created? |
Why isn't the arc_max setting honoured on ZFS on Linux? Posted: 28 Aug 2021 02:48 PM PDT I'm running ZoL 0.6.2 from their PPA on Ubuntu 12.04. It's on a host with 16GB of memory intended to run some VMs using KVM/Libvirt. After some time ZoL is using an insane amount of memory, reaching 98% of RAM usage with some VMs running. This results new processes refusing to start "unable to allocate memory". I can't even start all my VMs anymore which before using ZFS were using about 40-50% of RAM. As far as I understand, without tweaking, ZoL should release memory as soon as the system is short on memory. Well, it doesn't. So I decided to set the Still, it does not release any memory. As you can see from the below ARC statistics, it's using more memory than it's configured to (compare What am I doing wrong here? |
Posted: 28 Aug 2021 06:05 PM PDT I have a server running Ubuntu 12.04 Server. I want to be able to use SFTP on the command line with a DSA key, so I don't have to type the password into the terminal. Is this possible to do on the same server... i.e I want to SFTP to localhost (to test some PHP code before running it live). But I still want to allow password login by other clients if they want to. I don't want the certificate to be forced, but I don't want it to ask for the password if the certificate is passed or whatever. I have the following options enabled in ssh_config: The following files with shown permissions are in /root/.ssh/ I copied the key into authorized keys with: And when I cat authorized keys, it has added the key. So, when I try to connect to sftp with Have I missed something obvious? Or will it not work connecting locally? Thanks |
Posted: 28 Aug 2021 07:02 PM PDT I am monitoring a host with the help of Zabbix and I noticed that Zabbix agent started using quite a lot of CPU cycles: There are about 100 items monitored with the agent. They are also monitored on other identical hosts where Zabbix agent does not consume so much of CPU. Agents send collected data to Zabbix proxy. The agent configuration is default. The host CPU has 8 cores (2.4 Gz). The smallest time value for monitored items is 60 seconds. I use Zabbix server / agent 1.8.11 and I can't upgrade to 2.2 at least now. I checked debug log from all sides: Zabbix server, proxy, agent and can't find any issues there. Just usual checks received and sent all of the time. I don't know how to investigate this issue further and asking for community help. How could I trace why agent is consuming CPU so hard? One more thing that is looking strange for me is stats of the network connections: Thank you. Update 1. 10.128.0.15 - IP of Zabbix server 10.120.0.3 - IP of Zabbix host Update 2. Those TIME_WAIT connections are from web server nginx. Update 3. I attached to the Zabbix agent process with strace and it appeared that 100% is used by agents on the Update 4. Just to get all things clear... I tried to work with the TIME_WAIT connections state. For example, I tried decreasing Conclusion The Zabbix agent CPU load issue appeared to be bound with the network connections number. If we attach to the zabbix_agentd process using strace, we will see how CPU cycles are used (1-st column - CPU time spent running in the kernel): Here most of the CPU time is used on the read system calls. Further investigation showed that these read calls (2 of them are shown below) are continious attempts to read the |
Posted: 28 Aug 2021 03:03 PM PDT Running However when i try to do some configurations thru the xi interface, the configuration verification fails. Nagios is till able to monitor my services and hosts but i cant do any changes to the configuration using xi interface. I took a look at the configuration Snapshots and saw that there was 40 over errors. I am very puzzled as to why it doesn't show when i run the sanity check (plus it is able to monitor those hosts that produced the error). Another thing to note : i am able to restart nagios. - doesn't this prove that there isnt any error? thus it could restart normally? |
Allowing Domain Users to run winrm commands Posted: 28 Aug 2021 04:01 PM PDT Currently i have a AD/Kerberos Configured on one EC2 instance(Windows 2008 R2) and created couple of users. Each of the users has administrator privileges. When We login as a non-domain Administrator, i can successfully execute the winrm commands. But when i login as the domain User (who has administrator privileges), i cannot run the winrm commands: I check the Group Policy Editor for WinRM did not find anything relevant. I am not sure what i am missing. |
How to formulate IP forwarding rule using iptables Posted: 28 Aug 2021 09:39 PM PDT I have two Systems A and B. A is a TCP Client and sends a message to TCP Server on B. The TCP Client sends message to 192.168.0.3. This should be redirected to the local interface of B as the TCP Server is running on 127.0.0.1 at Port 8000 of System B. Therefore, I wrote the following ip table rules, however my Server at B doesn't receive any messages. Oh btw these two systems are Ubuntu linux systems. Here is what I did on System B: Then I start the Server on B and send a message from TCP Client on A. I can see the packets on wireshark from 192.168.0.5 on wlan0 but they never get forwarded :( Please help. UPDATE: After inputs from experts here, I have made a more realistic "NAT" scenario for applying the forwarding rules but I have still issues: I have explained this in my newer post: Iptables: Forwarding packets doesn't work |
Restoring StaticFileModule in IIS Posted: 28 Aug 2021 10:09 PM PDT How do you restore the default handler mappings? I accidentally deleted the StaticFileModule in the DefaultWebSite and now I can't bring it back. Additionally, Reverting to Parent doesn't bring it back. |
Posted: 28 Aug 2021 09:57 PM PDT What does the 6 columns mean? |
God Process Monitoring - CentOS - Event System Not Found Posted: 28 Aug 2021 04:01 PM PDT I have I can't find any All servers run ruby v1.8.6-399: Ruby comes from the ELFF repo: I did a little digging and can see the exception getting thrown when God tries to load the Netlink event handler: What could possibly be different between my servers? Am I missing something simple? |
VSFTPD Virtual (Guest) Users with @ in username Posted: 28 Aug 2021 10:09 PM PDT I've setup VSFTPD so when a user connects it'll use a vsftpd.conf pam.d/scftp vitrtual/usernamewithoutspecialchars virtual/user@domain.tld It really just seems it won't match the FTP user |
You are subscribed to email updates from Recent Questions - Server Fault. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment