Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Vpn
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
Fedor_Sumkin
n00b
n00b


Joined: 26 Feb 2006
Posts: 8
Location: Minsk Belarus

PostPosted: Mon Feb 27, 2006 9:34 am    Post subject: Vpn Reply with quote

Эта тема перепилина множество раз. Но всё же.

Есть выход в локалку DHCP.

IP: 192.168.0.24
NETMASK: 255.255.255.0
Getaway: 192.168.0.250
По крайней мере так в параметрах винды написано.
IP NET:195.222.64.68
GETAWAY_NET: Ставлю 192.168.0.250
NETMASK: Ставлю 255.255.255.0

Login: pw777
PASS: mtv

Как я настраивал:

/etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# client server secret IP addresses
pw777 PPTP mtv *
PPTP pw777 mtv *

/etc/ppp/peers/vpn
#debug

name pw777
remotename PPTP

pty "pptp 195.222.64.68 --nolaunchpppd"
lock
noauth
#mtu 1450
#mru 1450
lcp-echo-failure 10
nomppe
defaultroute

# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $
iface_eth0="192.168.0.24 broadcast 192.168.0.250 netmask 255.255.255.0"
routes_eth0=(
"-net 195.222.64.68 netmask 255.255.255.0 gw 192.168.0.250")

# pppd call vpn

Пингую ya.ru
ping ya.ru
Packet filtred.
.....

Где что не так? Ещё. Как узнать в винде шлюз на инет и маску на инет? Может не правильно их пишу.

В винде ipconfig /all:

Physical Address. . . . . . . . . : 00-50-22-39-3E-0F
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.0.24
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.250
DHCP Server . . . . . . . . . . . : 192.168.0.2
DNS Servers . . . . . . . . . . . : 192.168.0.2
Primary WINS Server . . . . . . . : 192.168.0.2
Lease Obtained. . . . . . . . . . : 26 февраля 2006 г. 22:19:46
Lease Expires . . . . . . . . . . : 19 января 2038 г. 5:14:07

PPP adapter VPN:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
Physical Address. . . . . . . . . : 00-53-45-00-00-00
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 195.222.64.177
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 195.222.64.177
DNS Servers . . . . . . . . . . . : 195.222.64.67
195.222.70.10
NetBIOS over Tcpip. . . . . . . . : Disabled
Back to top
View user's profile Send private message
KeeperMan
n00b
n00b


Joined: 01 Jan 2005
Posts: 30
Location: Moscow

PostPosted: Mon Feb 27, 2006 10:28 am    Post subject: Reply with quote

мой пирс такой
pty "/usr/sbin/pptp 10.2.22.22 --nolaunchpppd"
connect /bin/true
name user_login
nobsdcomp
nodeflate
noauth
noccp
updetach
defaultroute
Back to top
View user's profile Send private message
fank
l33t
l33t


Joined: 16 Oct 2004
Posts: 794
Location: Minsk, Belarus

PostPosted: Mon Feb 27, 2006 11:12 am    Post subject: Reply with quote

Quote:
Пингую ya.ru
ping ya.ru
Packet filtred.

те ж написали - ПАКЕТ ФИЛЬТРУЕТСЯ
фаер свой глянь... или прову пожалуйся
из /etc/ppp/chap-secrets думаю можно спокойно удалить:
Quote:
PPTP pw777 mtv *

Quote:
/etc/ppp/peers/vpn
#debug <--------- uncomment.... for debug :) !!!!!!!!!!!!!!!!!

name pw777
remotename PPTP

pty "pptp 195.222.64.68 --nolaunchpppd"
lock
noauth
#mtu 1450 <---------------uncomment !!!!!!!!!!!!!!!!!!!!
#mru 1450 <---------------uncomment !!!!!!!!!!!!!!!!!!!!
lcp-echo-failure 10 <--------------- это те нафик?
nomppe <--------------- а вот за прова решать ничего не надо
defaultroute


вместо
Code:
# pppd call vpn

можно использовать
Code:
pon vpn

или, ещё короче
Code:
ln -s /etc/ppp/peers/provider /etc/ppp/peers/vpn
pon
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum