Proxies and tunnels

Let's say we need a quick way to exit our network bypassing the firewall settings. Our machine cannot make any HTTP/HTTPS connection, but we can reach another remote host, which has a free access to the Internet. So, let's see a practical example. First, let's use curl to grab a remote page:

local_user:~$ curl www.packtpublishing.com<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><title>Best packtpublishing online</title><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /><meta name="description" content="Free best online packtpublishing website" /><meta name="keywords" ...

Get Mastering Bash now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.