Recent Questions - Server Fault |
- Blocking Symbols on Body Aws Wad
- Which font package in Linux supports small hyphen minus font [migrated]
- Worker roles missing on new RKE cluster on Ubuntu
- Nginx http to https redirects download empty file instead
- Mailgun : Sending a message from a subdomain to main domain gets denied
- kubeadm upgrade fails checking etcd
- setup rule for alias domain
- Does my logging have redundant network info by including all reply fields?
- Unable to use fwmark on Debian 11 (bulleyes) to change routing behavior
- AWS - Adding multiple IPs to Security Group Inbound Rules
- Dnsmasq how to make captive portal pop up
- coredns will not start on the vagrant ubuntu/impish64 image but will start and run successfully with ubuntu/bionic
- OpenVPN Client doesn't connect to my own server, but receives packets according to tcpdump
- Kerberos with Apache not working
- freeradius and openldap : vlan attribution working with radtest but not with wpa_supplicant
- How to configure the AT&T (Arris) BGW-210 router for IP Passthrough using static IP(s) and pointing to UniFi Dream Machine Pro?
- How do I hibernate an Ubuntu server when network is not in use for three hours?
- Remote incremental backups with rsync?
- Icinga2 : Installation Error date.timezone is not defined
- Generate graph in Grafana from API
- How to add a datasource in wildfly swarm with .war packaging?
- rsyslog not starting up: not found
- tail /dev/stderr from errors within supervisord php cli script
- Which is more efficient with rsync: rsh/ssh or modules?
- Linux IPSec between Amazon EC2 instances on same subnet
- sshd[4344]: error: ssh_selinux_setup_pty: security_compute_relabel: Invalid argument?
- Is there a way to make encryption default per contact in Thunderbird?
- Internal Server Error (Timeou waiting for output from CGI)
- Forwarding linux terminal from serial port to TCP with socat
- Trying to run an ASP.NET MVC application using Mono on Apache with FastCGI
Blocking Symbols on Body Aws Wad Posted: 24 Jan 2022 12:29 AM PST Hello I want to block string in the body that contains "&" character for example but It doesnt´t work I tried to use Html decode Text transformation and also doesnt´t work, if I try with a word for example "phone" and I include this word in the body works perfect, Why is not working with html symbols? |
Which font package in Linux supports small hyphen minus font [migrated] Posted: 23 Jan 2022 11:19 PM PST I wanted to know which font package in Linux supports "small hyphen minus" font. I tried searching all around but unable to find a suitable font package for it. |
Worker roles missing on new RKE cluster on Ubuntu Posted: 23 Jan 2022 10:43 PM PST I've installed my first RKE cluster on Ubuntu-20.04.3 I followed the quickstart guide, and configured 1 controller and 2 workers. As you can see the worker roles have not been applied. I read the troubleshooting page, which says to check whether the kubelet+kube-proxy containers are running, they are not and neither are the images defined, but the page doesn't mention what to do next. I'm not sure what I've missed or what I should do next, I'd appreciate any help for my next steps. |
Nginx http to https redirects download empty file instead Posted: 23 Jan 2022 10:07 PM PST Im trying to redirect my What have I done so far : 1- Commenting 2-defining 3-nginx redirect with the code below 4- tried to redirect it with a .php file with the following example.com.conf file: the index.php in public_html code : None of the above worked and the problem still presist. +Current Configurations : nginx -t report : example.com.ssl.conf : Current example.com.conf : I have not added the nginx -T report since it shows irrelevant configuration files from other websites. Also server running multiple sites and the wordpress ones have no problem redirecting using the code provided at #3 for redirect but when it comes to THE site that uses nuxtjs , I get a empty file downloaded instead. Any help would be highly appreciated |
Mailgun : Sending a message from a subdomain to main domain gets denied Posted: 23 Jan 2022 11:23 PM PST I've set up a subdomain in mailgun to send transactional emails from an application ( In this case I am starting to get a Currently, we have subdomain's dns records point to the mailgun and DNS's MX record for the main domain are set to point to the outlook, as this is how we are reading emails. Also, we haven't set a subdomain's MX dns record as we don't plan on receiving emails on the subdomain. So is it possible to send an email from a subdomain to the main domain? If so, how could I do it? And if I set a MX record for the subdomain will I still be able to receive emails on my main domain? |
kubeadm upgrade fails checking etcd Posted: 23 Jan 2022 09:52 PM PST I have a running controll plane consisting of 3 master nodes and everything including etcd appears to work well. I tried to upgrade v1.21.1 -> v1.21.8 to familiarize w the k8s upgrade procedure. After "kubeadm plan" I went ahead: kubeadm upgrade apply v1.21.8 --certificate-renewal=false --ignore-preflight-errors=CoreDNSUnsupportedPlugins,CoreDNSMigration --config=/root/kubeadm-upgrade.conf -f The kubeadm-upgrade.conf is just to move to another private registry for pulling the images, which works perfectly. Ignoring the coredns errors because coredns is actually deployed as a daemonset while kubeadm expects a deployment. Unfortunately the process stopps when checking the etcd connection kubeadm upgrade apply v1.21.8 --certificate-renewal=false --ignore-preflight-errors=CoreDNSUnsupportedPlugins,CoreDNSMigration --config=/root/kubeadm-upgrade.conf -f -v=5 I0111 09:41:38.562596 48211 apply.go:112] [upgrade/apply] verifying health of cluster I0111 09:41:38.562902 48211 apply.go:113] [upgrade/apply] retrieving configuration from cluster [upgrade/config] Making sure the configuration is correct: W0111 09:41:38.566434 48211 common.go:94] WARNING: Usage of the --config flag with kubeadm config types for reconfiguring the cluster during upgrade is not recommended! I0111 09:41:38.567994 48211 initconfiguration.go:115] detected and using CRI socket: /var/run/dockershim.sock I0111 09:41:38.568421 48211 interface.go:431] Looking for default routes with IPv4 addresses I0111 09:41:38.568436 48211 interface.go:436] Default route transits interface "ens192" I0111 09:41:38.569871 48211 interface.go:208] Interface ens192 is up I0111 09:41:38.569968 48211 interface.go:256] Interface "ens192" has 2 addresses :[10.12.83.145/27 fe80::250:56ff:fe83:f0e9/64]. I0111 09:41:38.570006 48211 interface.go:223] Checking addr 10.12.83.145/27. I0111 09:41:38.570017 48211 interface.go:230] IP found 10.12.83.145 I0111 09:41:38.570030 48211 interface.go:262] Found valid IPv4 address 10.12.83.145 for interface "ens192". I0111 09:41:38.570040 48211 interface.go:442] Found active IP 10.12.83.145 I0111 09:41:38.779650 48211 version.go:185] fetching Kubernetes version from URL: https://dl.k8s.io/release/stable-1.txt W0111 09:41:38.783665 48211 version.go:102] could not fetch a Kubernetes version from the internet: unable to get URL "https://dl.k8s.io/release/stable-1.txt": Get "https://dl.k8s.io/release/stable-1.txt": dial tcp 34.107.204.206:443: connect: connection refused W0111 09:41:38.783692 48211 version.go:103] falling back to the local client version: v1.21.8 I0111 09:41:38.783878 48211 common.go:163] running preflight checks [preflight] Running pre-flight checks. I0111 09:41:38.783933 48211 preflight.go:80] validating if there are any unsupported CoreDNS plugins in the Corefile [WARNING CoreDNSUnsupportedPlugins]: start version '' not supported I0111 09:41:38.812763 48211 preflight.go:108] validating if migration can be done for the current CoreDNS release. [WARNING CoreDNSMigration]: CoreDNS will not be upgraded: start version '' not supported [upgrade] Running cluster health checks I0111 09:41:38.825780 48211 health.go:162] Creating Job "upgrade-health-check" in the namespace "kube-system" I0111 09:41:38.857408 48211 health.go:192] Job "upgrade-health-check" in the namespace "kube-system" is not yet complete, retrying I0111 09:41:39.862643 48211 health.go:192] Job "upgrade-health-check" in the namespace "kube-system" is not yet complete, retrying ... the log of the etcd of that node complains, as far as I can see, about the client cert 2022-01-11 08:41:25.916730 I | etcdserver/api/etcdhttp: /health OK (status code 200) 2022-01-11 08:41:35.929543 I | etcdserver/api/etcdhttp: /health OK (status code 200) 2022-01-11 08:41:45.920101 I | etcdserver/api/etcdhttp: /health OK (status code 200) 2022-01-11 08:41:54.371333 I | embed: rejected connection from "10.12.83.145:47034" (error "remote error: tls: bad certificate", ServerName "") 2022-01-11 08:41:54.380537 I | embed: rejected connection from "10.12.83.145:47042" (error "remote error: tls: bad certificate", ServerName "") 2022-01-11 08:41:54.393896 I | embed: rejected connection from "10.12.83.145:47046" (error "remote error: tls: bad certificate", ServerName "") 2022-01-11 08:41:55.386489 I | embed: rejected connection from "10.12.83.145:47080" (error "remote error: tls: bad certificate", ServerName "") while etcd communication usually works, as one can see in the first lines of the lo excerpt, kubeadm obviously fails or uses a not working cert. I already changed etcd to irnore client autentication by starting it w/o " - --client-cert-auth=true" .... unfortunately the issue remains :( I wonder what kubeadm does different when checking the etcd connection and if I can somehow configure kubeadm by a flag or in the config to use se correct cert? |
Posted: 23 Jan 2022 08:49 PM PST I have microsoft office 365 for business. I have a main domain: domainA.com and an alias domain: domainB.com I have setup a shared mailbox: support@ which accepts email on both domauins. Now i want to setup a rule for each domain to redirect to different inboxes. So domainA.dom will have one redirect rule, and domainB.com will have another rule. The problem is; when I add a rule to filter all incoming email with the recipient support@domainB.com and save. It will remove the domain part of the rule and only match the prefix support@. So it seems i can not have any rules that check the domain part of the recipient. Does anyone know how to create a rule that will match the whole email address. The prefix and the domain part. With the domain being the main domain or an alias/addon domain to the 365 account. |
Does my logging have redundant network info by including all reply fields? Posted: 23 Jan 2022 08:42 PM PST I am logging conntrack events from kernel on my router to fluentd and I've been thinking if I'm logging too much info. The fields: Logging looks like I'm thinking I should keep But from what I can tell, I can safely remove: As this info will always be represented from the source inside my LAN, is that correct? |
Unable to use fwmark on Debian 11 (bulleyes) to change routing behavior Posted: 24 Jan 2022 12:38 AM PST I have a recipe I already use on many cases, but this time doesn't works on Debian 11 (kernel 5.10.0-10-amd64) my setup is basically an internal interface eth0 for a RFC1918 LAN, and two external interfaces connected to some ISP's Box: eth1 for ISP1 as default router at 10.0.0.254 with public IP 1.2.3.4 (figuratively) eth2 for ISP2 has a router at 10.0.3.254 with public 2.3.4.5 I have different possible route. I want to control which route my packet takes, so I create some rule and fwmark. First I append everythings is fine regarding at this time I am able to do: Then I do now if I do Where I expected 2.3.4.5 as public IP. So clearly the marked packet do not take the route from the ip route table, worse, it timeouts. If I do this exactly the same way on older Debian, its works perfectly. NB:if I do a my curl test works perfectly as expected My problem occurs when using |
AWS - Adding multiple IPs to Security Group Inbound Rules Posted: 23 Jan 2022 09:21 PM PST I need to open 20 ports for 12 IP blocks. Do I have to manually add 240 rules in this case? I feel like there must be a way to just copy&paste the IP list to somewhere. I googled and found it's not possible, but it's hard to believe. https://forums.aws.amazon.com/thread.jspa?threadID=191133 |
Dnsmasq how to make captive portal pop up Posted: 24 Jan 2022 12:04 AM PST i am trying to implement captive portal with dnsmasq. In dnsmasq config This redirects all listed domains fine, if in browser you go anywhere, however captive portal browser doesn't pop up by itself (checked no mac win and linux), and there is problem if site redirects to https (like facebook), my portal page is http only. So how should it be setup correcltly to replace all domain names or even just make browser pop up with captive portal page? UPD: acording to man page
So how can i make sure there is no upstream hosts for the NetworkManager - dnsmasq? |
Posted: 24 Jan 2022 12:20 AM PST I am trying to run k8s on ubuntu/impish64. I have a reference env that is successfully running ubuntu/bionic. The only differences between the environments is the ubuntu image and ip address ranges This is the Bionic output: This is the impish output: Two potentially telling clues are: Attempting to install flannel fails with the following: Any Suggestions? |
OpenVPN Client doesn't connect to my own server, but receives packets according to tcpdump Posted: 23 Jan 2022 09:09 PM PST My problem is that I cant connect to my OpenVPN Server. I always get a "TLS key negotiation failed to occur within 60 seconds (check your network connectivity)" error. Running tcpdump while trying to connect on port 1194 on my server showed 4 packets from my PC. My server.conf in /etc/openvpn/server: my client.ovpn on my Windows client: Any help is very appreciated. |
Kerberos with Apache not working Posted: 23 Jan 2022 11:05 PM PST everyone, I'm currently trying to configure Kerberos on our Apache and unfortunately I can't get any further. The website (Typo3) on the apache is accessed internally and externally with sub.domain.com The local domain is intern.local I created the keytab file like this: The krb5.conf file looks like this: the Apache vhost looks like this: The problem now is, if I activate the vhost config like this, then when I call up the page https://sub.domain.com, I always get a browser popup to enter the username and password. And no matter what I type here, I can't get to the web page and just get the error: apache error log show this entries: |
freeradius and openldap : vlan attribution working with radtest but not with wpa_supplicant Posted: 24 Jan 2022 12:18 AM PST Both of my services freeradius and openldap are on the same server. The schema Freeradius is loaded into openldap. I configured the
From the log of openldap, the same steps are made for the authentication with radtest or wpa_supplicant :
In the ldap server, I tried putting the vlan information directly in the user, or in the already made "variable" for the vlan info but I get the same result. Do you know where my problem come from ? It seems related to wpa_supplicant using a different protocol than the radtest command and freeradius (maybe I miss a line in the configuration) ? |
Posted: 23 Jan 2022 11:01 PM PST We are setting up AT&T fiber internet with 5 usable static IPs and the Ubiquity UniFi Dream Machine Pro (UDM-Pro). I would like to configure the BGW-210 to act as a bridge to the UDM-Pro. I found this article on how to configure the BGW-210 in IP Passthrough mode (similar to bridge), but some of the details are a bit unclear and I need to adjust this setup process to use one or more of my static IP addresses on the UDM-Pro. In one paragraph, the article said DHCP is not needed for Passthrough mode:
But later on it said that you are still using DHCP:
Which leaves some confusion on whether or not DHCP server should be configured or disabled. Here are the things I'm fairly certain of:
What I'm unclear about is:
Again, the goal is to "bridge" the AT&T router and have the UDM-Pro manage all routing and security. Thank you. |
How do I hibernate an Ubuntu server when network is not in use for three hours? Posted: 23 Jan 2022 10:11 PM PST I only really use the server a few hours a day a few days a week. It is a backup server, it requests the backup data from the clients. That part is taken care of, it wakes via a scheduled magic packet and does its thing. That is all good. I can wake it up to use it off schedule, that is also fine. How do I just have it know that the network hasn't been used in a while and to put itself to sleep? The network traffic I would want to have record of are SSH, SFTP, rsync, and updates from Canonical. All other traffic is just chatter that I don't care about. I'd like to maybe put the following pseudo code in as a cron script... that checks every 15 minutes or so. I am not worried about adding the cron functionality, I feel confident there. I may have an X->Y problem. I just want to put my server in a low power save to disk state for the usual 18 hours it would otherwise be doing nothing. I think network activity was a good metric to test against. I am open to more developed & robust solutions or inherent server properties to check against that exist. (I am not sure if the daily power cycling would be worse than the constant wear and tear from ZFS running the data integrity checks all day long... just not sure.) |
Remote incremental backups with rsync? Posted: 23 Jan 2022 10:02 PM PST I'm trying to set up rsync to send incremental backups to a remote server. The first backup would go to a "backup" folder, then the next backup would send only the changes to a "backup.1" folder, and so on. I managed to do this locally with the following command, which seemed to be working as described, creating a backup.1 folder on the second sync : I then set up a ssh key pair and managed to get rsync working remotely, so I'm now using : The sync does work and the files appear on the remove server. But once I run it a second time, the new files simply get added to the existing "backup" folder, rather than creating a backup.1 folder. I also tried other commands with the -b argument, such as : But it acts the same in all case. In the last case, the sync still goes to the "backup" folder, the backup-dir argument seems to be ignored completely. What am I doing wrong? Edit : Reading the comments, it's possible I got confused somehow when I say "which seemed to be working as described, creating a backup.1 folder on the second sync". That's how I remember it but apparently it's not a feature of rsync? |
Icinga2 : Installation Error date.timezone is not defined Posted: 23 Jan 2022 09:01 PM PST Installation of Icinga2 Monitoring Tools on Ubuntu 14.04 I am not able to complete my installation. I am getting the Error "The PHP config `date.timezone' is not defined." I did the changes on /etc/php5/apache2/php.ini date.timezone = Asia/Kolkata After the changes i restart my webServer apache also. service apache2 restart Still i am facing the same issue when i am launching enter image description herehttp://localhost/icingaweb2/setup |
Generate graph in Grafana from API Posted: 23 Jan 2022 09:01 PM PST I'm looking for a way to generate an arbitrary graph from the Grafana API, ideally by just feeding it a query. After looking in the doc I don't see anything to do it directly, so the only way I can see would be to :
That seems a bit silly, isn't there a way to just generate a graph from a specific query directly ? The goal here is to add a graph in our monitoring alerts, that way if we get a high load alert on a server for example I could generate a query to get that server's load graph, and include that in the alert e-mail. Nothing life changing, but it would be a nice feature to have I think. |
How to add a datasource in wildfly swarm with .war packaging? Posted: 24 Jan 2022 12:07 AM PST I'm trying to run my web application using Wildfly Swarm and .war packaging. How should i add my jdbc driver and data source definition? |
rsyslog not starting up: not found Posted: 23 Jan 2022 08:30 PM PST When starting rsyslog I get the following: My /etc/default/rsyslog file: |
tail /dev/stderr from errors within supervisord php cli script Posted: 23 Jan 2022 08:04 PM PST To make this simple, I want to know if it's possible to access the STDERR like a channel. I don't want the data to log to a file and then tail the file because the amount of information that I want to send in would fill the system. I only care about the data when I want to tap in to what would be sent to STDERR. I thought that it was possible to tail /dev/stderr in some way, but that doesn't work. The reason I can't use STDOUT is that the script is running in supervisor and anything sent to STDOUT is logged into the program.log file in supervisor. And I'm already outputting some information for that. Any ideas or thoughts on how to accomplish this would be REALLY helpful!! Thanks |
Which is more efficient with rsync: rsh/ssh or modules? Posted: 24 Jan 2022 12:07 AM PST Leaving out security concerns, which is the most bandwidth-efficient use of rsync for long-distance WAN transfers: rsh/ssh or modules? I understand that modules assume no encryption by default, but everything I've read suggests that the CPU overhead for rsh/ssh is negligible on modern systems (e.g. multi Xenons), and the pipe won't back up with <1Gbs network speeds. I know that there is additional overhead with the rsh having to originate the remote shell and execute rsync, but given the amount of data, this seems negligible. It would be a heck of a lot easier to just open up rsh and use rsync this way for this implementation, rather than set up a module for every server, but if the difference is measurable, I will of course do it with modules. Anyone have experience/opinions? |
Linux IPSec between Amazon EC2 instances on same subnet Posted: 23 Jan 2022 11:01 PM PST I have a requirement to secure all communications between our Linux instances on Amazon EC2 - we need to treat the EC2 network as compromised and therefore want to protect the data that's being transferred within the EC2 subnet(s). The instances to secure will all be on the same subnet. I'm a Windows bod with limited Linux abilities, so am familiar with IPSec terminology and can find my way around Linux, but haven't got a clue when it comes to setting up Linux IPSec environments. Can anyone throw me some information for setting up IPSec between all (Linux) hosts on a subnet please? I can only find information that pertains to site-to-site connections, or host-to-host connections and nothing that covers all Lan communication. We're currently using OpenSwan for site-to-site VPNs if that helps. Updated with more information This is an example config (very basic to connect between two hosts using a pre-shared key): If I now want to secure all traffic between 4 hosts for instance (or 8,10,100 etc), is there a way to make the left and right parameters more generic, so they mean 'encrypt traffic between all hosts' rather than having to explicitly specify a left and right host. My goal would be to achieve a generic configuration that has no hardcoded host IP's (subnets would be OK), so that we could include the configuration in our EC2 image. Thanks Mick |
sshd[4344]: error: ssh_selinux_setup_pty: security_compute_relabel: Invalid argument? Posted: 23 Jan 2022 09:32 PM PST
SELinux is running in permissive mode: Whenever I login via ssh, Google point me to this thread on the Fedora forum:
but I wonder that is there any other way to get rid of this without rebooting? The security context of The mapping between Linux user and SELinux users: The security context that PAM configuration for sshd: What I already tried and didn't help:
UPDATE Mon Mar 4 21:20:49 ICT 2013 Reply to Michael Hampton:
UPDATE Tue Mar 5 21:54:00 ICT 2013
UPDATE Wed Mar 6 10:57:11 ICT 2013 I have compiled the openssh-5.8p1, then copied the configuration files ( What surprised me is The security context of the new
Do you have any ideas? UPDATE Wed Mar 6 15:36:39 ICT 2013
and here're the log to prove that it enters the |
Is there a way to make encryption default per contact in Thunderbird? Posted: 23 Jan 2022 11:32 PM PST I administer several computers that have Thunderbird installed. I know Thunderbird has an option to require all email to be encrypted. However, I would like a way to allow unencrypted email normally, but require encrypted email to certain contacts. For example, if I email ceo@mycompany.com, Thunderbird should require encryption, but if I email JohnDoe@othercompany.com Thunderbird would allow unencrypted emails. Are there any settings or Add-ons that would give this functionality? Thanks! |
Internal Server Error (Timeou waiting for output from CGI) Posted: 23 Jan 2022 10:02 PM PST All, I'll admit right away that I'm not very familiar with the server side of things, just FYI, so I'm not sure how to debug this error. I moved my website from a Windows platform to an Linux platform and a new VPS. I'm getting an "Internal Sever Error" every once in awhile and I'm not sure why. When I look at the server logs I'm seeing this: "Timeout waiting for output from CGI script /var/www/cgi-bin/cgi_wrapper/cgi_wrapper" I'm running WordPress for my sites. Can someone tell me how to debug this error? Sometimes the site works fine which is really strange. Any help would be great. |
Forwarding linux terminal from serial port to TCP with socat Posted: 23 Jan 2022 11:02 PM PST I'm working on embedded ARM platform, Slackware. I'm using G24 Java modem which is configured to forward data between ports First of all, I configured Then I'm trying to use socat with following command:
Then I'm trying to connect with I know that |
Trying to run an ASP.NET MVC application using Mono on Apache with FastCGI Posted: 23 Jan 2022 08:04 PM PST I have a hosting account with DreamHost and I would like to use the same account to run ASP.NET applications. I have an application deployed in a subdomain, a .htaccess with a handler like this: My mono.fcgi is set up as such: I took this from the Mono site for CGI. I'm not sure if I'm doing it correctly though. This code is resulting in this error: I have no idea what's causing this. As far as I can see, Mono isn't even hit (no log files are created). |
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