Подключаем репозиторий EPEL откуда мы поставим OpenVPN.
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm |
Устанавливаем OpenVPN
yum -y install openvpn |
Добавляем OpenVPN в автозагрузку при старте компьютера
chkconfig openvpn on |
В каталог /etc/openvpn/ копируем шаблон файла конфигурации OpenVPN-клиента
cp /usr/share/doc/openvpn-2.1/sample-config-files/client.conf /etc/openvpn/ |
И приводим его к следующему виду:
client dev tun proto tcp remote 194.28.85.220 1194 resolv-retry infi nite user nobody group nobody persist-key persist-tun ca ca.crt cert pc1.crt key pc1.key ns-cert-type server log-append /var/log/openvpn.log comp-lzo verb 3 |
Теперь копируем файлы ca.crt, pc1.crt и pc1.key с сервера в папку /etc/openvpn/
cd /etc/openvpn/ scp [email protected]:/etc/openvpn/ca.crt ./ scp [email protected]:/etc/openvpn/2.0/keys/pc1.key ./ scp [email protected]:/etc/openvpn/2.0/keys/pc1.crt ./ |
Где 194.28.85.220 – IP-адрес сервера.
На этом все, настройка OpenVPN-клиента закончена. Запускаем OpenVPN.
service openvpn start |
Пингуем наш VPN-сервер:
ping 10.10.10.1 PING 10.10.10.1 (10.10.10.1) 56(84) bytes of data. 64 bytes from 10.10.10.1: icmp_seq=1 ttl=64 time=4.97 ms 64 bytes from 10.10.10.1: icmp_seq=2 ttl=64 time=3.96 ms 64 bytes from 10.10.10.1: icmp_seq=3 ttl=64 time=2.03 ms --- 10.10.10.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2001ms rtt min/avg/max/mdev = 2.036/3.658/4.978/1.222 ms |
Проверяем, что весь наш трафик ходит через VPN-сервер:
tracert www.ru traceroute to www.ru (194.87.0.50), 30 hops max, 40 byte packets 1 10.10.10.1 (10.10.10.1) 0.769 ms 1.486 ms 40.849 ms 2 192.168.146.2 (192.168.146.2) 40.821 ms 40.791 ms 40.760 ms 3 www.ru (194.87.0.50) 40.721 ms 40.689 ms 40.659 ms |
Как видим весь трафик проходит через наш VPN-сервер.
Check out this crazy service that sends thousands of visitors to your web page automatically!
Hey unix.yourmir.info admin
I wanted to tell you about this website I used with great results, that drives thousands of targeted visitors to your site who are dying to spend money!
You’ve probably already know that creating great content is only half the battle when it comes to running a successful website. The second half of the equation is DRIVING TRAFFIC!
With this service, you can forget about the tedious process of posting backlinks because they do everything for you so you can focus on more important things, like dealing with the flood of traffic to your site!
And that’s not all! this service is SUPER AFFORDABLE and will direct thousands of new visitors to your site in just hours, GUARANTEED!
This is the only service that can skyrocket your page to the top of the search engines!
You can check it out here:
backlink service
Best,
Jason