LinuxQuestions.org
Help answer threads with 0 replies.
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 05-21-2004, 12:53 PM   #1
saburo62
LQ Newbie
 
Registered: Mar 2004
Posts: 22

Rep: Reputation: 15
Question linux nat windows xp vpn server


hopefully somebody here can give me a hand with this one. i have been reading howtos for days now and my brain is starting to get numb.

here is the problem
i have cable internet witch is hooked up to a redhat 9 box (kernel 2.4.8-20)
the linux box has 2 nics and is preformin the roll of a nat box / router. on the local network i have a windows xp machine that can allow other computers to connect to it via vpn. i know this vpn connection works as i have had other computers on the local network connect to it with no hickups. what i am pretty sure i have to do to allow internet traffic to connect to the vpn is tell ipchains to forward any vpn requests to the windows box. i have been able to do this with http and ftp no problem, but i cant seem to get it to work for vpn. anyone got any ideas?

i added into my firewall rules the following


$iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 1723 -j DNAT --to 192.168.0.3
$iptables -t nat -A PREROUTING -i eth1 -p 47 -j DNAT --to 192.168.0.3


any help would be great
 
Old 05-21-2004, 01:04 PM   #2
saburo62
LQ Newbie
 
Registered: Mar 2004
Posts: 22

Original Poster
Rep: Reputation: 15
just had a brain wave. i was missing some lines for my rules so i got that going. now when i connect ir goes to check my password and then i get an error mesage saying that the remote computer did not respond
 
Old 05-21-2004, 02:31 PM   #3
LuggerHouse
Member
 
Registered: May 2004
Location: Montreal,QC,Canada
Distribution: Fedora Core 7
Posts: 210

Rep: Reputation: 30
Well I read you post and found it very interesting :-)

Did some searches and found

http://www.onecomputerguy.com/networ...vpn_server.htm

I noticed this
Quote:

If the VPN server is behind a router, Port Mapping will need to be done on the router. Standard port usage is 1723 for PPTP. You might also need to configure your router for PPTP Passthrough. Port usage for IPSec is 500, 50-51. These ports will have to be forwarded to the VPN server's IP

Are those the missing lines ???

500, 50 and 51 ?
 
Old 05-21-2004, 04:03 PM   #4
saburo62
LQ Newbie
 
Registered: Mar 2004
Posts: 22

Original Poster
Rep: Reputation: 15
i have the windows side of things already running and tested. so i know it works, i have port 1723 tcp protocall forwarded to the windows box and port 47 as well. i know that the windows box is expecting pptp im not sure if ipsec is in there too or not. basicly right now it checks my username and password but then never reply to the client computer. so basicly i got half the connecmtion working. im not sure what this pptp passthrough thing is that he speaks of, but he is on the windows side of things where as i know for fact that its my router / nat configuration that needs something... i just dont know what. thank you for your help though LuggerHouse
 
  


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
how can Linux connect to windows vpn server LinuxLover Linux - Networking 1 10-01-2005 07:03 AM
VPN: linux VPN server behind Linksys router hamish Linux - Networking 14 08-25-2005 09:42 PM
VPN Question Win98->internet->Router->Linux VPN Server->Win2k Server patrickrea Linux - Networking 1 08-10-2004 03:09 AM
I want to make a linux vpn server for my windows client Raphael_T Linux - Networking 7 01-16-2004 07:42 AM
VPN/File Server with Windows and Linux PAB Linux - Networking 0 10-26-2003 10:36 AM

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

All times are GMT -5. The time now is 02:19 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration