Jump to content

VPN problem


igotnoluck
 Share

Recommended Posts

Hi,

i'm trying to connect to my ISP using PPTP connection.

i've configured the following files / settings:

 

1. i've installed the pptp-linux package

 

and i've done steps 2-5 in this thread:

Problem with VPN

 

now my ifconfig is:

[root@localhost peers]# ifconfig
eth0	  Link encap:Ethernet  HWaddr 00:16:17:BC:2C:84
	  inet addr:172.21.13.46  Bcast:255.255.255.255  Mask:255.255.224.0
	  inet6 addr: fe80::216:17ff:febc:2c84/64 Scope:Link
	  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
	  RX packets:247543 errors:0 dropped:0 overruns:0 frame:0
	  TX packets:25100 errors:0 dropped:0 overruns:0 carrier:0
	  collisions:0 txqueuelen:1000
	  RX bytes:42039565 (40.0 MiB)  TX bytes:4021366 (3.8 MiB)
	  Interrupt:23 Base address:0x2c00

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:67 errors:0 dropped:0 overruns:0 frame:0
	  TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
	  collisions:0 txqueuelen:0
	  RX bytes:5206 (5.0 KiB)  TX bytes:5206 (5.0 KiB)

ppp0	  Link encap:Point-to-Point Protocol
	  inet addr:89.0.32.175  P-t-P:212.29.206.206  Mask:255.255.255.255
	  UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
	  RX packets:9748 errors:0 dropped:0 overruns:0 frame:0
	  TX packets:9805 errors:0 dropped:0 overruns:0 carrier:0
	  collisions:0 txqueuelen:3
	  RX bytes:7002604 (6.6 MiB)  TX bytes:1534588 (1.4 MiB)

 

using the pptp command:

pptp pns.barak.net.il call barak

 

and i've routed as following:

route add -host pns.barak.net.il gw 172.21.13.46
route add -net 172.0.0.0/8 gw 172.21.13.46
route add -net default ppp0

 

now the thing is that the network is working fine BUT

the connection is realy slow, i think its the DNS server, but how can i config the DNS for the ppp0 connection ?

and the second thing is: can i change the 172.21.13.46 to eth0 ?

 

thanks,

noluck

Link to comment
Share on other sites

DNS info is always held in /etc/resolv.conf, not matter what connection (eth0, ppp0, etc.) you're using (IIRC). I would suggest setting up OpenDNS, it's faster and does a lot of nice little extras.

 

and the second thing is: can i change the 172.21.13.46 to eth0 ?
I don't understand what you're asking here...could you clarify?
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...