Recent Questions - Server Fault |
- how to implement edns client tagoption code
- how to instert "x-forwarded-for" data to http header in physical l4 switch?
- VPN ports not opening on ubuntu server 22.04
- can't set a windows docker container hostname in the hosts file
- How Does Email Forwarding Works In Customer Support Ticketing Systems?
- suEXEC is disabled: Invalid owner
- iptables show chains without references
- Updated MX records: gmail, outlook, and proton work. iCloud and yahoo don't?
- fail2ban iptables returned 200, iptables 0 references
- Allowing docker to access local webhost Database
- Server performance tracker/collector
- the if statement is always show as true even my function run false
- Limit drag & drop mess
- How do I create an AD username with a dot in it via Powershell?
- Apache VirtualHosts not working/redirecting? (Reverse proxy)
- 301 redirect url based off of a category in the url
- Create subdomains under a single IP/domain in an Nginx Reverse Proxy?
- Unable to use YUM. RHEL 8.2 server hosted in Azure
- Fail2Ban not banning, Regex shows many fails in logs
- How to properly set-up ou DNS Zone delegation for the "_acme-challenge" subdomain?
- Windows server 2016 unable to complete update KB4103723 (roll back on 99%)
- systemd: setting dependencies between templated timer units?
- How to access LibreOffice running in a Docker container from a Windows system?
- Web app running on tomcat not updating when modified
- Getting "Can't create/write to file '/var/lib/mysql/is_writable'" using docker (inside vagrant on OS X)
- Elastic Search Unassigned Shards
- How to install/update/upgrade SSL certificate in Tomcat
- cannot useradd/adduser when /etc/{passwd,shadow,group} are symlink (debian squeeze)
- ejabberd send group message
- installing lots of perl modules
how to implement edns client tagoption code Posted: 30 Apr 2022 01:17 PM PDT I've been searching for edns and found these documents. They mention something called client tag and server tag. Is there any way I can implent those tags? Here is my use case: Our product teams have some services that want to query mydomain.com from public dns services. I mean, they want to reach our public IP address. Since all of their worker nodes are placed in the same network subnet, I cant use views. If I didn't misunderstand the documents below, edns has the capability of passing some keywords that are meaningless for the protocol, in that case it would be very useful for me. Otherwise I will have to spin up a recursive dns server and tell them to use the new dns server. https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml https://www.ietf.org/archive/id/draft-bellis-dnsop-edns-tags-01.txt |
how to instert "x-forwarded-for" data to http header in physical l4 switch? Posted: 30 Apr 2022 01:02 PM PDT 0 In the L4 switch, there is an 'x-forwarded-for' function that puts the client source ip address in the http header. The l4 switch can only know layer 4 information, so I'm curious how to put the x-forwarded-for information http header(http header is in the layer 7!! ). Even in https, the http header is encrypted, how can L4 switch decrypt this encrypted http header, insert x-forwared-for information, and send a packet to the backend? Thanks! |
VPN ports not opening on ubuntu server 22.04 Posted: 30 Apr 2022 12:28 PM PDT Im trying to set up an openvpn on my pc (which is running Ubuntu Server 22.04). I've used the quick install script listed here When i try to connect on my linux machine i get the following error: Which means that my port isn't open. I tried opening it with ufw and the guide listed on another similar problem: here The mini server is on my local network with a static ip. Doing Even tho i allowed the port with ufw. Also my netplan config (just in case): |
can't set a windows docker container hostname in the hosts file Posted: 30 Apr 2022 11:33 AM PDT I set a windows docker container to run some software (abbyy fineprint) that needs to match the docker name (abbydock) with the localhost ip (127.0.0.1). I'm starting the container with It worked once, I ping to abbydock and the answer is 127.0.0.1 . The next times the container just ignores any information that I put on the hosts file if that name matches the container hostname, for example a ping will answer the container ip and no the loopback wrong ping answer Anyway, if I set any other hostname to localhost and then ping that any other name the answer will be 127.0.0.1 where or how can i set the wanted information? A record should be 127.0.0.1, or at least I should get an extra A record |
How Does Email Forwarding Works In Customer Support Ticketing Systems? Posted: 30 Apr 2022 11:46 AM PDT When you sign up for customer support ticketing systems like Zendesk they provide you with a unique email address something like
|
suEXEC is disabled: Invalid owner Posted: 30 Apr 2022 10:18 AM PDT I got apache server with ubuntu and direct admin, after move my website into this server, I wanted to set permission for public_html but accidentally pressed enter button and all my files in root owner became for admin! It should be chown -R root:root / but website got erro 502. after I check apache status it get:
I check this file I don't know what should I do, any help? |
iptables show chains without references Posted: 30 Apr 2022 08:50 AM PDT iptables -L -v -n gives me multiple chains but without references. Like this: Is it possible to add reference to iptables? It seemt that that is the problem why my fail2ban does not work. T.hank you |
Updated MX records: gmail, outlook, and proton work. iCloud and yahoo don't? Posted: 30 Apr 2022 08:06 AM PDT I've updated MX records to point to gmail. I am able to receive email from Gmail, outlook, and proton almost immediately. Yahoo and iCloud still don't work after 24 hours. My TTL was very short. Why would some providers take so long to update? Am I completely helpless? |
fail2ban iptables returned 200, iptables 0 references Posted: 30 Apr 2022 07:42 AM PDT I installed fail2ban but on start I got multiple error messages: iptables -n -L gives me 0 references for each jail. (should be 1?) Also I m getting error messages like: I tried to reinstall fail2ban but it is always same. Thank you for help. |
Allowing docker to access local webhost Database Posted: 30 Apr 2022 07:30 AM PDT I am creating a webapp for my business using AppSmith, hosted on Docker. AppSmith requires access to a database in order to read/write information. Previously I have used MariaDB which is also hosted as a docker Image. However, because this is for business I would rather have the data hosted on an actual server/database rather than a docker image The address shown for the database is localhost:3306 which I cannot link a docker image/container to since the container is virtual and not actually on the system. I have also tried linking via ipaddress:3306 but it will not connect, I then tried HeidiSQL to check if it could connect to my Database and had no joy. After speaking with my hosting provider they have said that they block all external connections to the database and I would need to use SSH in order to open up the database to external connections, however there are a number of related security risks as well as coming with the potential to accidentally damage/corrupt existing databases. So what I am essentially looking for is a way for docker to open, so that it can allow containers access to my databases My hosting provider doesnt have much knowlege of docker but did mention Docker Gateway AFAIK172 My understanding is that this can be used to edit the defalt IP address of Docker Containers. Can this also be used to change the default IP of the docker container to run on the same IP as my webserver and thus allow it to then access the localhost:3306 database? If so, is there any advise as to where to access the relevant docs to help achieve this? |
Server performance tracker/collector Posted: 30 Apr 2022 07:02 AM PDT I'm running Linux gaming server and I'm in need to collect a full day of worth server performance data, both global and app-specific. The issue is that I also need server to be actually operable and useable. I'm well aware that ANY kind of profiler running in the background will to some degree use extra resources and incur latency, but I need it to be tolerable and not that much noticeable to end-user. The basic minimum stats I want is CPU, Memory, Disk and Network usage, anything else is welcomed extra (some system latency, etc). Ideally, would be nice if there are any custom or 3rd party tools to visualize/graph the data (though if it is some simple plain-text data I could parse myself) I know there is stuff like atop but I really dont like its readability and its logs is not nice to parse/read in my opinion. |
the if statement is always show as true even my function run false Posted: 30 Apr 2022 06:59 AM PDT I have an powershell script which removes the language pack but for some reason even function return false the last if statement still returns true |
Posted: 30 Apr 2022 06:27 AM PDT I have a Windows Server 2016 acting as a file server with thousands of files in a well-defined tree. Different people have different access to different parts of the tree. The problem is that some users, by mistake, sometimes do drag & drop, and a project folder appears somewhere else, mostly, anywhere, not related to the original place. I have snapshots in case of disaster, but I've never used them because the folder that disappears is always found with a search. I'm getting tired of this, and my boss is going to have a heart attack in the near future because the first thing he thinks is that the folder was deleted. The problem is that the users need read-write access, folder creation, and delete permissions so the tree can be in good shape. So, the question is: how can I solve this problem? |
How do I create an AD username with a dot in it via Powershell? Posted: 30 Apr 2022 01:19 PM PDT I'm trying to change an existing script so that my username is firstname intial dot last name for example: John Doe's username will be j.doe Current script works (without the .) as: $firstname.substring(0,$i) + $lastname thank you. |
Apache VirtualHosts not working/redirecting? (Reverse proxy) Posted: 30 Apr 2022 09:42 AM PDT I am trying to set up Apache as a reverse proxy on a new Ubuntu 22.04 virtual machine. We have an existing Apache reverse proxy on Ubuntu 18.04 where everything is working as intended. This new reverse proxy is supposed to replace our older one, but the virtual hosts don't seem to be working correctly. I have done the following: I disabled the default page in sites-enabled. I then created a new virtual host and enabled it. It looks like this: I then restarted & reloaded the Apache. I created a host file entry on my Windows PC to test if this very basic configuration works, it points to my Apache server. When I then try to reach trupage.azmedien.ch it leads me to the Apache default website instead of actually redirecting me to the correct server (which is defined with ProxyPass in the virtual host). It seems like it doesn't recognize the virtualhost for some reason? When I replace "trupage.azmedien.ch:80" with "*:80" and then open it in my browser the ProxyPass works. But obviously, that is not what I want as there will be multiple virtual hosts. Here is the output from |
301 redirect url based off of a category in the url Posted: 30 Apr 2022 08:05 AM PDT Does anyone know how to redirect a url that contains a parent category of a product? Basically I want to redirect a ton of products to a simple landing page that I created, so instead of making redirects for each product, I want to target the parent category (manufacturer) and redirect it to my one landing page. So like these: Would all redirect to this one landing page: So I guess you would target anything that has "product/baader/baader-600/" and then ditch the last part of the url (/baader-600-belts/belt-rubber/) and redirect it to "/replacement-parts/baader/baader-600/" I have no idea how to make sus a RewriteRule. |
Create subdomains under a single IP/domain in an Nginx Reverse Proxy? Posted: 30 Apr 2022 10:01 AM PDT I'd like to be able to create a subdomain in Nginx Reverse proxy. As it stands right now, I have a properly configured and usable reverse proxy that resolves properly. The problem arises when I try to get it to play nice with an apache server that I need multiple subdomains for. I'd like to create a subdomain such as Here is the nginx reverse proxy example.com.conf in /etc/nginx/sites-available (changed names for domains, assume everything EXCEPT for Note: I have created a seperate configuration (/etc/nginx/sites-available/johnsmith.example.com.conf) and it did not work. This is just what I've tried last. My DNS record for this subdomain is: Like I've said above, assume everything resolves except for this particular subdomain. Please let me know what other information would be useful for solving this problem. Thank you for your time. Edit: Output of curl -v https://johnsmith.example.com |
Unable to use YUM. RHEL 8.2 server hosted in Azure Posted: 30 Apr 2022 01:01 PM PDT I have a Red Hat server hosted in Azure and when I try to use yum to install software or do a system update I get the below error, Errors during downloading metadata for repository 'rhui-rhel-8-for-x86_64-baseos-rhui-rpms':
The system has been registered in subscription manager. |
Fail2Ban not banning, Regex shows many fails in logs Posted: 30 Apr 2022 11:02 AM PDT I have the following jail defined in my /etc/fail2ban/jail.conf. For privacy/security I've replaced references to IPs with local 10.0.0.x addresses. Using the filter available here for sshd. I did attempt to add this line:
When I run Increasing log level to 4 produces this output. The line Pyinotify has been installed ( Other info: fail2ban-client -d output iptables -L Of note if I run I'm fairly new to fail2ban and probably missing something obvious but I'm struggling to determine what at this point. From what I can parse given the output above it seems like it should be working but I am getting 0 bans despite watching dozens of failures scroll by from the same IP in the secure log. |
How to properly set-up ou DNS Zone delegation for the "_acme-challenge" subdomain? Posted: 30 Apr 2022 11:02 AM PDT We have hard times setting up a DNS Zone Delegation for one of our subdomains. We have one DNS record "_acme-challenge" that will change frequently, and this DNS record is defined directly on our server, which acts as a SECONDARY Name Server only for this record. Our need is to have this record delegated to our SECONDARY Name Server, instead of having to change it manually in our MAIN DNS zone. Please note that our SECONDARY Name Server is the same domain " Our domain name is registered at OVH : example.com Our MAIN DNS Servers are at OVH :
Our We do not have any problem with this DNS zone : our domain and emails are working correctly. Our MAIN DNS zone is defined at OVH like this (shortened for brevity) : Our second DNS Server have these always existing records : Our second DNS Server will regularly update the following record in its zone : We tried to add the following records to our MAIN DNS zone at OVH, in order to delegate this record to the SECONDARY Name Server, but had no success : We guessed that some kind of records are missing, but where ?
I would be happy if you could pinpoint the error, and give us a clue to make it work :-) Thanks |
Windows server 2016 unable to complete update KB4103723 (roll back on 99%) Posted: 30 Apr 2022 08:07 AM PDT i'm on a strange problem for the last 12 hours unable to update the KB4103723, it rolls back every time. I have tried all of these: sfc /scannow: finish 100% but with error for windows protection error. i have looked at the CBS file and the only error is for the IIS MANAGER.LNK file that is corrupted: the path it says is c:\programdata\microsoft\windows\start menu\programs\ administrative tools \iis manager.lnk in my server the path is changed where administrative tools is actually windows administrative tools i couldn't find any solution for that so i thought maybe i will change all registry to the right path and restart my server (it is a cloned VM so i can play with that) i did several changes but then got to Computer\HLM\SOFTWARE'MICROSOFT\WINDOWS\CURRENTVERSION\SHELLCOMPATIBILITY\INBOXAPP if i try to change something there i get this error message: Cannot edit F2F852BA90DD4456_IIS_MANAGER_LNK_AMD64.LNK: ERROR WRITING THE VALUE'S NEW CONTENTS what can i do? |
systemd: setting dependencies between templated timer units? Posted: 30 Apr 2022 09:03 AM PDT I am using some templated timer units to run sets of templated services. There are backup jobs and associated maintenance tasks that require an exclusive lock on the backup repository and cannot run at the same time as the backup jobs. I am trying to figure out how to set up the units so that the jobs are sequenced correctly. For example, I have the following service templates:
I have the following timer templates:
Where the If I run... ...I need to ensure that the clean@foo service does not run until after the backup@foo service has completed. The only solution I've come up with so far is to drop That works but it's a little hacky. If there's a bettery way to solve this using systemd I would like to figure that out. |
How to access LibreOffice running in a Docker container from a Windows system? Posted: 30 Apr 2022 12:02 PM PDT I am not able to deploy LibreOffice on my virtual machine using docker. I run my container with : That seem to run, because when I type but when I go to the URL, Firefox only show a "connection failed" message |
Web app running on tomcat not updating when modified Posted: 30 Apr 2022 12:02 PM PDT I'm modifiying a web app coded by another guy with AngularJS. This app is fed by csv data files and is running fine in the first place. However, when I'm trying to change some data in the csv files, every part of the app that relies on data taken from those .csv gets broken. I first suspected this problem to be related to the fact Excel was recognizing the .csv files as SYLK files when I tried to modify them. However, when I tried to replace the new .csv by the old ones, it didn't change anything. Even more, removing the whole app overall and putting the old one in place instead didn't change anything to the problem. So now, I'm suspecting there is some cache problem with the Tomcat server (8.0 under windows) I'm running the app on. I tried deleting the localhost folder in work/Catalina from the Tomcat installation folder as suggested in another question on Serverfault, but it doesn't change anything either (neither Under IE, nor Chrome). The only way I can go back to a working app is reboot my computer, but obviously I don't want to reboot each time I'm doing a modification. Any idea to what could be causing the problem? |
Posted: 30 Apr 2022 09:03 AM PDT I am trying to use docker-compose/docker inside a vagrant machine hosted on OS X. Running 'docker-compose up' always fails with
I can manually create the file just fine, however. (Using Does anyone know where to look to debug this? Log: My docker-compose.yaml: My Vagrantfile: |
Elastic Search Unassigned Shards Posted: 30 Apr 2022 10:01 AM PDT my cluster state was green and after restart of service one shard remains UNASSIGNED and status goes to yellow. I have 2 machines with 5 shard and 1 replica set settings. I am using default config with multicast off and uni cast enabled.I did rerouting using Which gives following output But 0th shard is still unassigned and status is yellow. Thanks |
How to install/update/upgrade SSL certificate in Tomcat Posted: 30 Apr 2022 01:01 PM PDT I am about to install/update/upgrade a SSL certificate in one of the servers which has the following configuration Server information: Generate new SSL certificate request:
After successful executing both the commands I got two files keystore folder
The following files are attached into email I received yesterday:
Installing the certificate: As per information from other source I downloaded two other files into keystore folder
Problem: This is where I am stuck and don't know what to do, I assume I have to create a chain.pem with all the received certificates inside it. If this is the case in which order I should copy and paste the certificates? To be honest I don't want to try anything which I am not sure about it because it is a live server. I will really appreciate if someone could help me/providing instruction on how to proceed beyond step #5 to successfully install the certificate. I am also confused what is cabundle.crt that comes with the email. |
cannot useradd/adduser when /etc/{passwd,shadow,group} are symlink (debian squeeze) Posted: 30 Apr 2022 09:43 AM PDT i'm having trouble with useradd when im moving /etc/passwd /etc/shadow /etc/group from /etc to /home and create a symlink in order to have /etc/{passwd,shadow,group} respecively pointing to /home/{passwd,shadow,group} i cannot create any user and have useradd outputing: btw useradd output is |
Posted: 30 Apr 2022 08:07 AM PDT I have ejabberd setup with a few shared rosters ("groups"). I need to be able to send messages to the entire group. I was able to do this with the built-in announce mod by sending a message to jabber.myserver.com/announce/online. This works great but it acts like a server broadcast and does not show which user the message came from. I imagine I'm not the only one that needs to send out group messages on ejabberd, but I was surprised of the lack of documentation and solutions that I've found on this. What would be a good way to accomplish this? |
installing lots of perl modules Posted: 30 Apr 2022 06:47 AM PDT I've been landed with the job of documenting how to install a very complicated application onto a clean server. Part of the application requires a lot of perl scripts, each of which seem to require lots of different perl modules. I don't know much about perl, and I only know one way to install the required modules. This means my documentation now looks this:
Is there any way I can do all this one line like I can with aptitude i.e.
Thank you (on behalf of the long suffering people who will be reading my document) EDIT: The best way to do this is to use the packaged versions. For the modules which were not packaged for Ubuntu 10.10 I ended up with a little perl script which I found here ) This means I can put a nice one liner in my document: |
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 |