60
votes
Tcpdump on multiple interfaces
According to the tcpdump man page:
On Linux systems with 2.2 or later kernels, an interface argument of ‘‘any’’ can be used to capture packets from all interfaces. Note that captures on the ‘‘...
22
votes
Tcpdump on multiple interfaces
The way I would approach this is to dump on each interface to a separate file and then merge them. The any interface also includes lo traffic which can pollute the capture.
This also allows for ...
20
votes
yum should error when a package is not available
Per Bug 1274211, this has been fixed in yum-3.4.3-133.el7. However, you need to enable the strict mode.
The easiest way to do this for scripting purposes is via command-line switch:
yum -y --setopt=...
11
votes
Accepted
yum should error when a package is not available
As you've found, this behaviour changed between RHEL 5 and 6 (see https://bugzilla.redhat.com/show_bug.cgi?id=736694 for some discussion). From that link, checking the return code of yum info <pkg&...
10
votes
How do I tell what process is causing kswapd to be in use?
If you're on Ubuntu 15.10 or greater, this may actually be the result of a bug, especially if your system is a virtual machine lacking a swap partition (e.g., AWS EC2). The problem exists on other ...
10
votes
sendmail rejecting some connections with handshake failure: SSL alert number 40
This is because after a recent update to openssl on CentOS 6, openssl-1.0.1e-30.el6.11.x86_64, programs using this library started to refuse connecting to servers vulnerable to Logjam TLS ...
9
votes
How can I configure netcat (or some other stock linux utility) to listen on a specific port on a secondary IP address?
For completion:
nc -l -p port -s ip
should work too. Works with nc6 version 1.0 and netcat (The GNU Netcat) 0.7.1.
The command from Laging doesn't work with nc6 (used in debian).
6
votes
Allow IP Address Range In hosts.allow
The Correct answer which I tested and is working is as follows.
94.1. # (just leave everything after the dot .)
In the case if you are manually editing the host.allow file.
Anything you put like /...
6
votes
How to list RPM dependencies?
People have already responded with:
rpm -q --requires PKG
yum -q deplist PKG
Yes, either rpm or yum works and correctly answers the question. The main difference between rpm and yum is that yum ...
6
votes
Accepted
Apache can't change listening IP-address
Apache won't bind to your VIP because it is not configured on any network interface.
To allow this to happen, you need to set a sysctl:
sysctl net.ipv4.ip_nonlocal_bind=1
Apache can then do the ...
5
votes
Centos 5.11 OpenSSL TLS 1.2 for Paypal
Doh, Thank you Hakan, so simple.
ldd /usr/local/bin/curl showed the new curl to not be linked to the new OpenSSL (ran out out of scroll buffer to copy here).
I re ran the configure, make and make ...
4
votes
4
votes
Centos 5.11 OpenSSL TLS 1.2 for Paypal
For anyone that has CentOS 5 EOL issues connecting to APIs with newer SSL like TLS 1.2:
Setup a separate barebones linux VPS and install nginx, using proxy_pass as a two-way proxy between your box ...
4
votes
FSCK while booting Centos
You don't say which version of CentOS you're using, but both 6 and 7 will do a fsck on reboot if you touch /forcefsck before rebooting.
3
votes
200 OK blank page setting up Wordpress on restore test VM
Just run into almost exact the same problem today. Traced the code and then find the cause. It is because one of the plugins does not throw errors and just EXIT!!
You can tell which plugin it is by ...
3
votes
How to list RPM dependencies?
I have quick shell snippet which prints out all installed packages along with their dependencies:
for i in `rpm -qa` ; do echo "Package [$i]:"; rpm -q --requires $i ; echo ; done
3
votes
problems with opendkim and postfix centos
I know the question has been posted some while ago... but this reply could be helpful for other people...
I had the same issue and I solved by changing the rights on the file.
ls -l /etc/mail/dkim/...
3
votes
Accepted
Curl SSL verification issue on CentOS 5.7 (bypassing doesn't work)
No support for TLSv1.1 or TLSv1.2 in CentOS 5
Your peer probably disabled protocol version TLSv1.
With the openssl and curl on CentOS/RHEL 5 (which had its End of Life on March 31st 2017) TLSv1.1 or ...
3
votes
Accepted
Installing a new software (httpd) in an old Linux (Centos 5)?
OS must be upgraded. Doing so once a decade or so is the minimum to maintain these general purpose LTS operating systems. Not doing so is irresponsible, as end of life CentOS 5 has unpatched security ...
2
votes
How to configure Centos 5.3 using OpenLDAP to store and serve SSH public keys?
I have struggle one this one as well for some time. Firstly check the version of openssh is >6.2 then the syntax of the sshpublickey from gosa.
I had it on Debian 7.7 then dist upgrade to Debian 8 ...
2
votes
where is my php installation path
I believe best answer should be using linux shell command:
whereis php
2
votes
How to clean up mysql installation on centos
you may have somehow installed mariadb when you thought it was installing mysql.
[root@localhost data_decrypt]# rpm -qa | grep maria
mariadb-server-5.5.52-1.el7.x86_64
mariadb-libs-5.5.52-1.el7....
2
votes
qemu-kvm fail to boot Centos 5.3 after Kernel update at the host (feodra)
To update the accepted answer. Even in Fedora 20 with latest updates I had same issue running RHEL 5.3 guest.
To make the above workaround persistent through reboot put following in /etc/sysconfig/...
2
votes
Wrong date/time in dmesg
Try "journalctl -k" instead of "dmesg"
Details: https://serverfault.com/a/1083381/189414
2
votes
CentOS 5.5 32 bit "service ntpd restart" issue or not?
The time servers you are using are synced to the same (possibly local) time server. I have seen servers claiming to be stratum 0 or 1 that had time services that were days off the correct time. ...
2
votes
Accepted
Is "QUEUE=" in /etc/sysconfig/sendmail the same as the "-q" switch in sendmail?
Short answer is yes. To be absolutely accurate the final command would probably be sendmail -bd -q15m.
Assuming a dist based on init scripts you can always have a look at the scripts in /etc/init.d ...
2
votes
VMWare Error: "No space left on device" when powering up one specific host -- even though there is space?
The swap file will need to be created on power up and may be exceeding the free disk space. The error message suggests a 4GB swap file is being requested and cannot be created, are you using Thin ...
2
votes
Use Lvm snapshot for a new (KVM) virtual machine
You basically have three choices:
boot with a live CD/USB, take a copy of the entire /dev/sda, and restore it on the KVM host.
make a copy of both the LVM volume (via snapshot or, better yet, boot ...
2
votes
Accepted
error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory
Try with yum whatprovides */libcurl.so.4 and install the packages with matching files. Pay attention to install both i386 and x86_64 packages.
If this does not work, please provide the output of the ...
2
votes
Roots server do not update my new nameserver (CentOS bind DNS server)
It does not appear that you ever changed the delegation for this zone.
Looking at the chain of delegations the parent zone refers to:
applistar.com. 172800 IN NS dns2.applistar....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
centos5 × 806centos × 201
linux × 169
apache-2.2 × 78
mysql × 50
yum × 49
php × 47
networking × 26
ssh × 24
iptables × 23
vps × 23
php5 × 23
httpd × 22
rpm × 22
ftp × 20
postfix × 19
domain-name-system × 18
redhat × 16
rhel5 × 15
python × 14
installation × 14
xen × 14
ssl × 12
centos6 × 12
email × 11