Secure VPN (Virtual Private Network) 实例分析
- 系统方案说明:
- 操作步骤:
-
[terrence@nomad terrence]$ /usr/bin/pty-redir /usr/bin/ssh -t -l terrence igloo.
its.unimelb.edu.au sudo /usr/sbin/pppd passive
/dev/ttyp3
[terrence@nomad terrence]$
-
[terrence@nomad terrence]$ sudo /usr/sbin/pppd /dev/ttyp3 local 192.168.2.121:19
2.168.0.1
[terrence@nomad terrence]$ ifconfig
ppp0 Link encap:Point-to-Point Protocol
inet addr:202.108.2.10 P-t-P:202.108.2.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
ppp1 Link encap:Point-to-Point Protocol
inet addr:192.168.2.121 P-t-P:192.168.0.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
[terrence@nomad terrence]$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
202.108.2.10 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 202.108.2.1 0.0.0.0 UG 0 0 0 ppp0
这样,你就在非 Secure 的 ppp0 连接的基础上建立了 Secure 的 IP Tunnel - ppp1;此时你的主机已变成你部门内部 intranet 上的一个节点,因此你就可以访问所有的 intranet 上资源了。由于是 Secure 连接,即使是通过 internet,你也不必担心有任何机密资料会泄露了。
推而广之,VPN 并不仅限于 Mobile User,PPP Connection 的联接,在 intranet,extranet,internet 上都可以实现。
无论多么大型的企业,只需一个 internet IP 地址,就可架构完整的全球规模的 IT infrastructure。VPN 技术使梦想成为了现实。
- Reference:
- Software you need to install:
|