Ping behind proxy using httping Rumi, March 5, 2021 You can use utility httping for that. It sends a HEAD request (by default) to a web server and measures the time it took to get a response. The utility is available through a number of repositories for different OS’es and Linux distros: Ubuntu: sudo apt install httping Alpine: sudo apk add httping macOS with Homebrew: brew install httping How to use it: httping -x 192.68.1.12:1080 -g http://google.com Example output: ~ httping -g http://google.com -c 3 PING google.com:80 (/): connected to 64.233.165.113:80 (313 bytes), seq=0 time= 38.49 ms connected to 64.233.165.101:80 (313 bytes), seq=1 time= 66.94 ms connected to 64.233.165.100:80 (313 bytes), seq=2 time= 40.79 ms --- http://google.com/ ping statistics --- 3 connects, 3 ok, 0.00% failed, time 3162ms round-trip min/avg/max = 38.5/48.7/66.9 ms Where: -x – Address of a proxy server, port is optional -g – URL to send a request to Other useful options: -5 – Use SOCKS5. Should be put after the -x option, i.e.: httping -x localhost:1080 -5 -g http://google.com -c – How many probes to send before exiting. Infinite by default. -G – Do a GET request instead of a HEAD request. That means that also full page/file will be transferred. Note that in this case you’re no longer measuring the latency! Useful for testing actual websites. Be noticed that the time measured also includes the latency introduced by the proxy server itself. As another example, I used httping to estimate latency of my connection to Tor network through Tor proxy: httping -x localhost:9050 -5 -g http://google.com The only option I wish httping had is the ability to ask SOCKS5 proxy for domain name resolution, instead of doing it on its own, which is a more secure way with Tor. Here is a link to the author’s website: https://www.vanheusden.com/httping/ Src: https://superuser.com/questions/175428/how-to-ping-when-behind-a-proxy Related Administrations Collected Articles httping
Simple failover cluster using UCARP on Ubuntu (Heartbeat Alternative) January 24, 2016 In this tutorial, I’ll show you the steps to create a simple failover cluster on Ubuntu using CARP. To make the things meaningful,we’ll create the cluster for Apache service but you can use it for any other service, which relay on IP. Scenario: Here is my Setup: PrimarySrv: This is the… Read More
Boot CentOS 8 / RHEL 8 Server in Single User Mode or root password reset February 24, 2020February 24, 2020 Using “rd.break” keyword Reboot Your CentOS 8 or RHEL 8 Server and go to grub boot loader screen by interrupting auto boot and choose first line which includes the kernel (In case you have multiple kernel lines choose the appropriate one which suits to your environment). Below is the CentOS… Read More
Install Openmediavault On Debian Squeeze May 26, 2013May 26, 2013 Introduction This guide is for people that have used the Debian Squeeze Standard Installation or Debian Squeeze Gnome Installation guide to install Debian onto their microserver. If you're looking to install OpenMediaVault as a standalone system then see install OpenMediaVault instead. Prerequisites Debian Squeeze installed on your microserver Installation Configuring… Read More