Chapter 12. Secure Tunnel

Table of Contents

OpenSSH Tunnel
SOCKS v5 Tunnel
SSL Tunnel
通过SSL访问POP、IMAP、SMTP

OpenSSH Tunnel

mysql tunnel

$ ssh -L 3306:127.0.0.1:3306 user@example.org		
		

testing

$ mysql -h 127.0.0.1 -uroot -p test		
		

SOCKS v5 Tunnel

			
ssh -D 1080 <远程主机地址>
						
			

Firefox 配置

为了防止所访问网站的DNS被窥探,可以在Firefox的地址栏中输入about:config 把network.proxy.socks_remote_dns 改为true