LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-12-2002, 02:55 PM   #1
s018811
LQ Newbie
 
Registered: Feb 2002
Location: Ohio
Distribution: Red Hat
Posts: 3

Rep: Reputation: 0
Vpn


I sort of new to linux and learning as I go. I run a Red Hat 7.1 Linux server at work running poptop (vpn server) on a dsl line. My problem is connecting from my home. Using me cable modem, if connected directly through my workstation and using dhcp I can connect to the vpn. If I run through my home server running Red Hat 7.0 and assigned ip, I cannot connect. I get the following error message in /var/log/messages on the work server (Red Hat 7.1): Feb 12 00:46:02 mail pptpd[22614]: GRE: read(fd=6,buffer=bfffd8ec,len=8260) from network failed: status = -1 error = Protocol not available. I can ssh fine from the workstation to the workserver and can connect if I hook directly to the cable modem and use dhcp. What do I need to change and where to I need to change it???? Work server..?? Home server..?? BOTH servers run nat using ipchains..i.e. ipchains -A forward -s 0.0.0.0/0 -d 0.0.0.0/0 -j MASQ.
 
Old 02-13-2002, 10:34 AM   #2
Jon-
Member
 
Registered: Dec 2001
Distribution: RH5.2/6.2/7.0/7.1/7.2/9/ES21/ES31
Posts: 91

Rep: Reputation: 15
Just a thought... I'm assuming here that when it doesn't work you're attempting to use masquerading -- connecting "through" your home server. In other words, when your workstation is directly connected to your cable modem it works but when your workstation is connected to your home server which is then connected to the cable modem it breaks.

I don't think IP masquering can masquerade PPTP packets w/o a kernel patch.
 
Old 02-13-2002, 05:28 PM   #3
s018811
LQ Newbie
 
Registered: Feb 2002
Location: Ohio
Distribution: Red Hat
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Jon-
Just a thought... I'm assuming here that when it doesn't work you're attempting to use masquerading -- connecting "through" your home server. In other words, when your workstation is directly connected to your cable modem it works but when your workstation is connected to your home server which is then connected to the cable modem it breaks.

I don't think IP masquering can masquerade PPTP packets w/o a kernel patch.
Yes, connecting directly to cable modem with the workstation works. If I connect the cable modem to my home server, I can browse the Internet, so I am getting out, but am unable to connect to the vpn... I can connect to that server via ssh..

What kernel patch do I need..? or do you or anyone else have thoughts on solving this situation..One person I talked to says that this is just a routing issue and can be solved that way, but didn't give me much clue on how to do it...
 
Old 02-14-2002, 10:44 AM   #4
Jon-
Member
 
Registered: Dec 2001
Distribution: RH5.2/6.2/7.0/7.1/7.2/9/ES21/ES31
Posts: 91

Rep: Reputation: 15
"Getting out" and using SSH are both examples of using the TCP portion of TCP/IP protocol. AFAIK, IP masquerading on a Linux box would be better named TCP/IP masquerading, because it only masquerades TCP, UDP, and ICMP packets. I don't think PPTP uses those protocols -- I have a list at work, can't remember which ones it does use. Protocol # 50 and 51 I think (TCP is #6 I think).

Anyway, try this
http://freshmeat.net/projects/linuxv...rade/homepage/

I haven't tried this, but it looks like it will do what you want.

Oh, you'll just need this on your home server. You don't need this on your work server.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VPN: linux VPN server behind Linksys router hamish Linux - Networking 14 08-25-2005 08:42 PM
VPN Question Win98->internet->Router->Linux VPN Server->Win2k Server patrickrea Linux - Networking 1 08-10-2004 02:09 AM
How do i connect Ciscos VPN client to Checkpoint VPN server Klas Linux - Networking 1 11-29-2003 08:00 AM
MASQ VPN to VPN Router hakcenter Linux - Networking 0 06-26-2003 04:14 PM
Connect to Cisco VPN w/o Cisco VPN Client gboutwel Linux - Networking 4 02-07-2003 12:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration