Using OpenVPN to realize the actual deployment of proxy

Source: Internet
Author: User

Company demand: Need to build a OpenVPN in the Japanese server, and then through the proxy way to visit foreign sites.

Server IP:

[root@li493-137 ~]# Ifconfig

Eth0 Link encap:ethernet hwaddr f2:3c:91:ae:0a:55

inet addr:57.17.20.30 bcast:57.17.20.255 mask:255.255.255.0

Inet6 ADDR:2400:8900::F03C:91FF:FEAE:A55/64 Scope:global

Inet6 ADDR:FE80::F03C:91FF:FEAE:A55/64 Scope:link

Up broadcast RUNNING multicast mtu:1500 metric:1

RX packets:4620022758 errors:0 dropped:0 overruns:0 frame:0

TX packets:3853593707 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:2417829468272 (2.1 TiB) TX bytes:1308999444228 (1.1 TiB)

Interrupt:44

Lo Link encap:local Loopback

inet addr:127.0.0.1 mask:255.0.0.0

Inet6 addr::: 1/128 scope:host

Up loopback RUNNING mtu:16436 metric:1

RX packets:113 errors:0 dropped:0 overruns:0 frame:0

TX packets:113 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:7926 (7.7 KiB) TX bytes:7926 (7.7 KiB)

[root@li493-137 ~]# yum-y Install gcc*

[root@li493-137 ~]# mkdir-p/home/jc/tools/openvpn

[root@li493-137 ~]# cd/home/jc/tools/openvpn/

[root@li493-137 openvpn]# Yum Install lrzsz-y

[root@li493-137 openvpn]# Rz-y

RZ waiting to receive.

Start Zmodem transmission. Press CTRL + C to cancel.

100% 585 KB 585 kb/s 00:00:01 0 Errors

100% 653 KB 653 kb/s 00:00:01 0 Errors

[root@li493-137 openvpn]# LL

Total 1252

-rw-r--r--1 root root 599387 Aug lzo-2.02.tar.gz

-rw-r--r--1 root root 669076 Aug openvpn-2.0.9.tar.gz

#安装lzo

[root@li493-137 openvpn]# tar-zxf lzo-2.02.tar.gz

[root@li493-137 openvpn]# CD lzo-2.02

[root@li493-137 lzo-2.02]#./configure && make && make install

#安装openvpn

[root@li493-137 lzo-2.02]# CD ... /

[root@li493-137 openvpn]# tar-zxf openvpn-2.0.9.tar.gz

[root@li493-137 openvpn]# CD openvpn-2.0.9

[root@li493-137 openvpn-2.0.9]#./configure--with-lzo-headers=/usr/local/include--with-lzo-lib=/usr/local/lib && make && make install

[root@li493-137 openvpn-2.0.9]# Ll/usr/local/sbin/openvpn

-rwxr-xr-x 1 root root 1862822 Dec 4 02:27/usr/local/sbin/openvpn

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.