Proxies and tunnels
Let's say we need a quick way to our network bypassing the firewall settings. Our machine cannot make any HTTP/HTTPS connection, but we can reach another remote host, which has a 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" content="online,packtpublishing,website" /> <link rel="stylesheet" type="text/css" href="online.css" media="screen" /> </head> <body> <div class="wrapper"> <div class="top"><...