LINUX.ORG.RU

Хэлп! не могу настроить VPN


0

0

[root@localhost ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:19:DB:D1:76:5B
inet addr:172.25.4.234 Bcast:172.25.4.255 Mask:255.255.255.0
inet6 addr: fe80::219:dbff:fed1:765b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:313 errors:0 dropped:0 overruns:0 frame:0
TX packets:121 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27340 (26.6 KiB) TX bytes:15184 (14.8 KiB)
Interrupt:17 Base address:0xc000

[root@localhost ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.25.4.0 0.0.0.0 255.255.255.0 U 10 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 10 0 0 eth0
0.0.0.0 172.25.4.1 0.0.0.0 UG 10 0 0 eth0
[root@localhost ~]# ifconfig eth0 172.25.4.234 netmask 255.255.255.0 up
[root@localhost ~]# route add default gw 172.25.4.1
[root@localhost ~]# ifconfig eth0 172.25.4.234 netmask 255.255.255.0 up
[root@localhost ~]# route add default gw 172.25.4.1
[root@localhost ~]# cat /etc/resolv.conf
nameserver 195.69.134.130
nameserver 195.69.134.141
[root@localhost ~]# ping -c5 172.25.4.1 "(my gateway)"
PING 172.25.4.1 (172.25.4.1) 56(84) bytes of data.
64 bytes from 172.25.4.1: icmp_seq=1 ttl=64 time=0.720 ms
64 bytes from 172.25.4.1: icmp_seq=2 ttl=64 time=0.347 ms
64 bytes from 172.25.4.1: icmp_seq=3 ttl=64 time=0.727 ms
64 bytes from 172.25.4.1: icmp_seq=4 ttl=64 time=0.613 ms
64 bytes from 172.25.4.1: icmp_seq=5 ttl=64 time=0.511 ms

--- 172.25.4.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4000ms
rtt min/avg/max/mdev = 0.347/0.583/0.727/0.144 ms
[root@localhost ~]# ping -c5 195.69.134.131 "(VPN)"
PING 195.69.134.131 (195.69.134.131) 56(84) bytes of data.
64 bytes from 195.69.134.131: icmp_seq=1 ttl=63 time=1.62 ms
64 bytes from 195.69.134.131: icmp_seq=2 ttl=63 time=1.66 ms
64 bytes from 195.69.134.131: icmp_seq=3 ttl=63 time=2.61 ms
64 bytes from 195.69.134.131: icmp_seq=4 ttl=63 time=2.51 ms
64 bytes from 195.69.134.131: icmp_seq=5 ttl=63 time=2.94 ms

--- 195.69.134.131 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 1.624/2.271/2.944/0.531 ms
[root@localhost ~]# route add -host 195.69.134.130 gw 172.25.4.1
[root@localhost ~]# route add -host 195.69.134.141 gw 172.25.4.1
[root@localhost ~]# route add -host 195.69.134.131 gw 172.25.4.1
[root@localhost ~]# route del default "(Падает сеть)"
[root@localhost ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
195.69.134.141 172.25.4.1 255.255.255.255 UGH 0 0 0 eth0
195.69.134.130 172.25.4.1 255.255.255.255 UGH 0 0 0 eth0
195.69.134.131 172.25.4.1 255.255.255.255 UGH 0 0 0 eth0
172.25.4.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
[root@localhost ~]# ping -c5 195.69.134.131 "(VPN)"
PING 195.69.134.131 (195.69.134.131) 56(84) bytes of data.
64 bytes from 195.69.134.131: icmp_seq=1 ttl=63 time=1.82 ms
64 bytes from 195.69.134.131: icmp_seq=2 ttl=63 time=2.01 ms
64 bytes from 195.69.134.131: icmp_seq=3 ttl=63 time=2.92 ms
64 bytes from 195.69.134.131: icmp_seq=4 ttl=63 time=1.81 ms
64 bytes from 195.69.134.131: icmp_seq=5 ttl=63 time=3.40 ms

--- 195.69.134.131 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4000ms
rtt min/avg/max/mdev = 1.816/2.396/3.400/0.648 ms
[root@localhost ~]# ping -c5 195.69.134.130 "(DNS1)"
PING 195.69.134.130 (195.69.134.130) 56(84) bytes of data.

--- 195.69.134.130 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 3999ms

[root@localhost ~]# ping -c5 195.69.134.141 "(DNS2)"
PING 195.69.134.141 (195.69.134.141) 56(84) bytes of data.

--- 195.69.134.141 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 3999ms

[root@localhost ~]# man pppd
/usr/bin/iconv: преобразование остановлено из-за проблемы при записи вывода
[root@localhost ~]# pppd call vilcom debug nodetach "(Попытка коннекта)"
sh: pptp: command not found
Couldn't get channel number: Input/output error
Script pptp 172.25.4.234 --nolaunchpppd finished (pid 7591), status = 0x7f
[root@localhost ~]# ifconfig eth0 172.25.4.234 netmask 255.255.255.0 up
[root@localhost ~]# route add default gw 172.25.4.1 "(Поднимается сеть)"
[root@localhost ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
195.69.134.141 172.25.4.1 255.255.255.255 UGH 0 0 0 eth0
195.69.134.130 172.25.4.1 255.255.255.255 UGH 0 0 0 eth0
195.69.134.131 172.25.4.1 255.255.255.255 UGH 0 0 0 eth0
172.25.4.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 172.25.4.1 0.0.0.0 UG 0 0 0 eth0
[root@localhost ~]# pppd call vilcom debug nodetach "(След. попвтка коннекта)"
using channel 2
Using interface ppp0
Connect: ppp0 <--> /dev/pts/5
sh: pptp: command not found
Modem hangup
Connection terminated.
Script pptp 172.25.4.234 --nolaunchpppd finished (pid 7629), status = 0x7f

:( Помогите пожалста уже неделю парюсь:( Очень хочу вывести своего пингвина в и-нет. Version: Linux Mandriva 2008

Не забудь прибить net_applet, эта глючная скотина много портит.

anonymous
()
Ответ на: комментарий от simulink

> pptp клиента поставил

ЛОГ покажи после установки что пишет.

Anoxemian ★★★★★
()
Ответ на: комментарий от ZloySergant

Да, по меньшей мере (остальные ключи навроде noauth, nobsdcomp - в ман pppd и требования ISP) тебе нужно (при наличии ppp и pptp) выполнить 3 команды:

#pppd name LOGIN_NAME pty "pptp 195.69.134.131 --nolaunchpppd"
#route add -net 195.69.134.131 netmask 255.255.255.255 gw 172.25.4.1
#route add -net DNS.DNS.DNS.DNS netmask 255.255.255.255 gw 172.25.4.1
#route add default dev ppp0

ZloySergant
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.