Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-07-2004, 12:54 AM   #1
LQ Newbie
Registered: Aug 2003
Distribution: Redhat 9.1
Posts: 29

Rep: Reputation: 15
Unhappy Windows VPN connection throuh Linux router

I think i almost got it but i'm not quite there
I'm trying to make a VPN connection from a windows XP machien to an XP machine. I have the VPN server side setup at PC A and i have PC B connecting. Right now PC B can get as far as verifying username and password and goes no further.

Ports i have forwarded to PC A from the linux box (which is my router) are 1723, 500, 47, 50, 51

using this method:
$iptables -A FORWARD -p tcp -i eth0 -d --dport 1723 -j ACCEPT
$iptables -t nat -A PREROUTING -p tcp-i eth0 -d --dport 1723 -j NAT --to-destination

i do that for every port i forward.
the setup of my VPN server side is right, cuz i've tested connecting locally and it works, anyone see what i'm missing?

Linux distro is Redhat 9

Thanks for your help!
Old 06-07-2004, 02:26 AM   #2
Senior Member
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
does it work with encryption ?
if it is so it wont work via NAT.
Old 06-07-2004, 03:40 PM   #3
LQ Newbie
Registered: Aug 2003
Distribution: Redhat 9.1
Posts: 29

Original Poster
Rep: Reputation: 15
well yes... microsoft's VPN uses encryption so if what you say is true, then I scrap that idea and try to setup vpn server on the linux box. I have done this now but maybe not correctly.

i setup PopTop and the remote user was able to connect to the linux box, but he cant ping the linux boxes internal IP or any ip in my network, i can ping the IP he connects to the lan using though, i set the server to use a range from and he connected with .15 i could ping with average ms of 37ms. he cant ping anything to our end though so somethings not quite there. i'm stuck:/
Old 06-07-2004, 11:51 PM   #4
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Err... 47, 50, and 51 are protocols, not ports (at least in this case).
[chort@abydos ~] grep -E "47|50|51" /etc/protocols
gre 47 GRE # General Routing Encapsulation
esp 50 IPSEC-ESP ESP # Encap Security Payload
ah 51 IPSEC-AH AH # Authentication Header
In particular, you need to allow all GRE traffic through your firewall.


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
Connection to Windows VPN flyingace Linux - Networking 4 03-28-2006 02:51 PM
VPN: linux VPN server behind Linksys router hamish Linux - Networking 14 08-25-2005 08:42 PM
Multiple connection VPN on Linux? shassouneh Linux - Networking 3 02-04-2005 03:25 AM
VPN Question Win98->internet->Router->Linux VPN Server->Win2k Server patrickrea Linux - Networking 1 08-10-2004 02:09 AM
Win -> Linux VPN via Linksys Router gmeazell Linux - Networking 3 03-16-2004 07:28 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:34 PM.

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