Human readable format for http headers with tcpdump

Here’s a one-liner I came up with for displaying request and response HTTP headers using tcpdump (which should work for your case too): sudo tcpdump -A -s 10240 ‘tcp port 4080 and (((ip[2:2] – ((ip[0]&0xf)<<2)) – ((tcp[12]&0xf0)>>2)) != 0)’ | egrep –line-buffered “^……..(GET |HTTP\/|POST |HEAD )|^[A-Za-z0-9-]+: ” | sed -r ‘s/^……..(GET |HTTP\/|POST |HEAD )/\n\1/g’ It … Read more

IPTABLES – Limit rate of a specific incoming IP

IPTables isn’t made for this kind of work, where lots and lots of packets need to be analyzed to make these decisions. IPTables is partly the answer though! The real answer to this is the awesome and underused traffic control facilities in Linux. Note that mucking around with this without knowing what is going on … Read more

What version of RHEL am I using?

You can use the lsb_release command on various Linux distributions: lsb_release -i -r This will tell you the Distribution and Version and is a little bit more accurate than accessing files that may or may not have been modified by the admin or a software package. As well as working across multiple distros. For RHEL, … Read more

how to find libstdc++.so.6: that contain GLIBCXX_3.4.19 for RHEL 6?

I work with a Linuxs server: (from wikipedia: Red Hat Enterprise Linux 6 was forked from Fedora 12 The kernel gcc version when trying to install Tensdorflow, I have some issue with a missing library: As you can see in my lib64/libstdc++.so.6 I don’t have GLIBCXX_3.4.19 I look with the following command: so my question where can I find the libstdc++-4.x.y-z.el6.x86_64 that contain GLIBCXX_3.4.19 and … Read more

tech