PDA

View Full Version : How did you get VPN working in FC7?


tameboy
2007-10-27, 03:04 AM CDT
I've studied lots of how-tos, these two being amongst the best
http://pptpclient.sourceforge.net/howto-fedora-core-6.phtml - substituting fc7 for fc6 where appropriate
http://www.fedoraguide.info/index.php/Fedora7#How_to_configure_VPN_client_.28PPTP.29
but I still can't get a VPN client connection to my ISP's webservers. Anybody have better luck? Any tips??

pete_1967
2007-10-27, 05:19 AM CDT
to my ISP's webservers
First check and ensure that your ISP is actually running a VPN server in the first place (why would they?). If they are, you need to have separate VPN logon name and password set for it by them.

tameboy
2007-10-28, 01:56 AM CDT
thanks Pete. I currently connect via windows VPN to the ISP servers - mainly to administer my website MySQL databases with GUI tools. So I have the sign in details which I know work on windows. I currently have PPTP installed on my linux set up and I seem to be able to connect to the VPN but keep gettinig my sign in details rejected by the MySQL database.

I am currently liasing with the ISP to see if they can help sort out this issue. They seem quite positive about it and don't think there should be any problem connecting from a linux machine. Which is nice. :)

Salgeras
2007-10-29, 03:17 AM CDT
Hello!
I also have a pretty much the same problems with VPN WiFi connection on Fedora 7.. read lots of tutorials, howto's, but still cant connect..

Concerning hardware configuration, it looks like this:
Yagi antenna->AP TL-WA501G->Ethetnet card on laptop.

I've followed instructions from http://pptpclient.sourceforge.net/howto-fedora-core-6.phtml, successfully installed pptpconfig, and setup it like from the picture..name, server, user and pass.. For routing I set "all to tunnel" (dont know what route is, but only works with this option:))..

When I start connection, it says this:

Using interface ppp0pptpconfig: monitoring interface ppp0

Connect: ppp0 <--> /dev/pts/1
Remote message: 138/128/128/128^J
PAP authentication succeeded
local IP address 91.148.114.106
remote IP address 10.200.2.1
pptpconfig: pppd process exit status 0 (started)
ip route replace 10.200.250.130 via 10.200.125.1 dev eth0 src 10.200.125.175
pptpconfig: routes added to remote networks
ip route replace default dev 'ppp0'
pptpconfig: default route changed to use tunnel
pptpconfig: DNS changes made to /etc/resolv.conf
pptpconfig: connected


And I see that packages are being sent..but none received. I cant ping, nor open any web page.

This is "ifconfig" output:

eth0 Link encap:Ethernet HWaddr 00:17:31:25:8C:E0
inet addr:10.200.125.175 Bcast:10.200.125.255 Mask:255.255.255.0
inet6 addr: fe80::217:31ff:fe25:8ce0/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:231 errors:0 dropped:0 overruns:0 frame:0
TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20329 (19.8 KiB) TX bytes:4795 (4.6 KiB)
Interrupt:18 Base address:0xd800

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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)


Then, my /etc/resolv.conf

# generated by NetworkManager, do not edit!
nameserver 10.200.1.30


I think that problem is somewhere in IP's configuration, but I dont know what else to do.

This is output from "ipconfig /all" from windows:

Windows IP Configuration
Host Name . . . . . . . . . . . . : salgeras
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8139/810x Family Fast Ethernet NIC
Physical Address. . . . . . . . . : 00-17-31-25-8C-E0
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 10.200.125.175
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.200.125.1
DHCP Server . . . . . . . . . . . : 10.200.125.1
DNS Servers . . . . . . . . . . . : 10.200.1.30
Lease Obtained. . . . . . . . . . : Monday, October 29, 2007 9:17:19 AM
Lease Expires . . . . . . . . . . : Thursday, November 01, 2007 9:17:19AM

PPP adapter KBCnet:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
Physical Address. . . . . . . . . : 00-53-45-00-00-00
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 91.148.113.154
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 91.148.113.154
DNS Servers . . . . . . . . . . . : 10.200.1.30
194.106.162.2

Please, help!!
Thanks!!

Salgeras
2007-10-30, 08:29 AM CDT
I forgot to give you one more information. This is 'ifconfig' after the pptpconfig establish connection:

eth0 Link encap:Ethernet HWaddr 00:17:31:25:8C:E0
inet addr:10.200.125.175 Bcast:10.200.125.255 Mask:255.255.255.0
inet6 addr: fe80::217:31ff:fe25:8ce0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:107 errors:0 dropped:0 overruns:0 frame:0
TX packets:106 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8544 (8.3 KiB) TX bytes:20744 (20.2 KiB)
Interrupt:22 Base address:0x400

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:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:660 (660.0 b) TX bytes:660 (660.0 b)

ppp0 Link encap:Point-to-Point Protocol
inet addr:91.148.114.253 P-t-P:10.200.253.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1400 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:2862342 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:40 (40.0 b) TX bytes:966316019 (921.5 MiB)

virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:9081 (8.8 KiB)


Looking in this everything seem ok. But, still cant open any page. I really dont understand what is wrong.
This is screenshot from pptpconfig log screen: http://www.freewebs.com/salgeras/linux/Screenshot.jpg