ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Ivan Tarala aka tneo <tneo@mail.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] Помогите разобраться в такой настройке VPN
Date: Sun, 21 Oct 2007 15:07:38 +0400
Message-ID: <200710211507.38553.tneo@mail.ru> (raw)
In-Reply-To: <46FAAD28.1060609@bungarus.info>

[-- Attachment #1: Type: text/plain, Size: 1260 bytes --]

В сообщении от Wednesday 26 September 2007 23:04:08 Maxim Tyurin написал(а):
> tneo пишет:
> \skip
>
> > Через что настраивать это? пробовал через алтератор рртр, но что то не
> > получилось... :(
>
> Обычный pptp vpn только без шифрования.
> Документации по настройке pptp куча.
> http://lists.altlinux.ru/pipermail/devel/2001-December/004117.html
> http://ru.gentoo-wiki.com/%D0%9D%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%
>D0%B0_VPN-%D1%81%D0%BE%D0%B5%D0%B4%D0%B8%D0%BD%D0%B5%D0%BD%D0%B8%D1%8F
>
> для начала

Немного разобрался, но есть проблема, дома 2 компа, 1 кубунту второй альт, 
кубунту является шлюзом для выхода в инет альту, Вот на кубунту я настроил 
vpn и оно работает, те же действия на альте не помогают...
Вопрос, как сделать чтоб и альт мог выходить на vpn?
Вот иструкция как я настраивал в кубунту.

-- 
=== Будущее не определено ===

[-- Attachment #2: vpn --]
[-- Type: text/plain, Size: 1268 bytes --]

 1. перво-наперво, ставим PPTP-клиент. в debian и *ubuntu это делается командой 
Код
apt-get install pptp-linux
 в других дистрах можно поставить нужный rpm, или скачать отсюда pptp-client.

2. создаём скрипт с именем, например, vpn-up, в который пишем:
Код
#!/bin/sh
pppd persist maxfail 0 noauth nobsdcomp nodeflate name torrent remotename PPTP pty "pptp 10.253.0.44 --nolaunchpppd"


3. прописываем логин и пустой пароль в /etc/ppp/chap-secrets:
Код
torrent PPTP "" *


4. чтобы автоматически устанавливался роутинг при (пере-)соединении, добавляем в /etc/ppp/ip-up: 
Код
if [ "$5" = "172.16.0.1" ]; then
  route add -net 172.16.0.0/16 gw 172.16.0.1
fi


5. ну и добавляем в /etc/hosts:
Код
172.16.0.1      tracker.game www.tracker.game


запускаем наш скрипт, устанавливаем соединение с VPN:
Код
# ./vpn-up


убеждаемся, что доступен www.tracker.game
ставим bittorrent / bittorrent-gui / ktorrent
наслаждаемся smile.gif

  reply	other threads:[~2007-10-21 11:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-26 18:14 tneo
2007-09-26 19:04 ` Maxim Tyurin
2007-10-21 11:07   ` Ivan Tarala aka tneo [this message]
2007-10-21 16:24     ` linuxsoid
2007-10-21 16:30       ` Ivan Tarala aka tneo
2007-10-22  8:39         ` [Comm] Adm Michael Shigorin
2007-11-02 18:27     ` [Comm] Помогите разобраться в такой настройке VPN Maxim Tyurin
2007-11-02 18:48       ` Ivan Tarala

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200710211507.38553.tneo@mail.ru \
    --to=tneo@mail.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git