Jump to content

Problem with VPN connection [solved]


TwoFace
 Share

Recommended Posts

Hello, guys!!! Here is my problem: After installation of Mandriva 2008.0 I cann't create VPN connection. Now I'll describe my actions. And please note - all this works on Mandriva 2007.1

 

1.

I installed ppp and pptp from distro

2.

I edit file /etc/ppp/options.pptp like this:

lock
noauth
persist
debug
nobsdcomp
nodeflate
lcp-echo-failure 36
lcp-echo-interval 5
lcp-max-failure 0

3.

I edit file /etc/ppp/chap-secrets like this:

myLogin PPTP myPassword *

4.

I create file /etc/ppp/peers/gold with this:

name myLogin
remotename PPTP
file /etc/ppp/options.pptp
ipparam gold

5.

In console as root I type:

pptp vpn.goldnet.com.ua call gold

And I have :

[root@twoface twoface]# ifconfig
eth0 Link encap:Ethernet HWaddr A2:5A:CD:8F:13:00
inet addr:10.100.188.22 Bcast:10.100.188.255 Mask:255.255.255.0
inet6 addr: fe80::a05a:cdff:fe8f:1300/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:45252 errors:0 dropped:0 overruns:0 frame:0
TX packets:11821 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5505927 (5.2 MiB) TX bytes:1231930 (1.1 MiB)
Interrupt:17 Base address:0xc000

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:9692 errors:0 dropped:0 overruns:0 frame:0
TX packets:9692 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1082552 (1.0 MiB) TX bytes:1082552 (1.0 MiB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:192.168.188.22 P-t-P:172.16.110.3 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:15 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:162 (162.0 B) TX bytes:180 (180.0 B)

6.

After this I need to modify routes. Here my commands:

route add -host vpn.goldnet.com.ua gw 10.100.188.1
route add -net 10.0.0.0/8 gw 10.100.188.1
route add -net 80.73.0.0/20 gw 10.100.188.1
route add -net default ppp0

 

And I have this:

[root@twoface twoface]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.10.10.50 10.100.188.1 255.255.255.255 UGH 0 0 0 eth0
172.16.110.3 * 255.255.255.255 UH 0 0 0 ppp0
10.100.188.0 * 255.255.255.0 U 10 0 0 eth0
80.73.0.0 10.100.188.1 255.255.240.0 UG 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 10 0 0 eth0
10.0.0.0 10.100.188.1 255.0.0.0 UG 0 0 0 eth0
default * 0.0.0.0 U 0 0 0 ppp0
default 10.100.188.1 0.0.0.0 UG 10 0 0 eth0

 

Can you help me please, 'cause I don't know what to do, all this worked on Mandriva 2007.1

Thank you!

Link to comment
Share on other sites

Oh, guys, I really need help!!! :wall: I'm bound to Windows and this doesn't makes me happy!!! Can you point me where problems? Help!!! :wall:

 

P.S.: On Mandriva 2007.1 I had 1 default route, in 2008 I have 2, why?

P.P.S.:

Here the quote from Linux PPP HOWTO:

<a name="AEN452">

8.4. Default route not set

f pppd refuses to set up a default route, it is because (quite correctly) it refuses to remove/replace an existing default route.The usual reason that this error occurs is that some distributions set up a default route via your Ethernet card as opposed to setting up a specific network route.

Any ideas? Edited by TwoFace
Link to comment
Share on other sites

Hi, thanks for your attention!

Yes? I've tried this, but this doesn't help:

[root@twoface twoface]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.10.10.50 10.100.188.1 255.255.255.255 UGH 0 0 0 eth0
172.16.110.3 * 255.255.255.255 UH 0 0 0 ppp0
10.100.188.0 * 255.255.255.0 U 10 0 0 eth0
80.73.0.0 10.100.188.1 255.255.240.0 UG 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 10 0 0 eth0
10.0.0.0 10.100.188.1 255.0.0.0 UG 0 0 0 eth0
default * 0.0.0.0 U 0 0 0 ppp0

Any ideas?

Link to comment
Share on other sites

Hmm, I cann't find file /etc/rc.d/rc.inet1, where it can be? (Or, on some systems /etc/rc.net)

 

P.S.: I don't like this, but it seems I'll delete Mandriva 2008 and install Mandriva 2007.1 back, cause there're no such poblems. Sad... :cry:

Edited by TwoFace
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...