LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 07-14-2005, 06:44 PM   #1
dawime
LQ Newbie
 
Registered: Jul 2005
Posts: 1

Rep: Reputation: 0
iptables routing for a win2k3 server


I am trying to get a debian machine that currently masquerades for the internal network to allow the win2k3 server inside the local network to serve as the vpn server for the incoming connections, but so far ive been unsuccessful.

I have tried quite a few things, such as

iptables -t nat -A PREROUTING -p tcp -m tcp -i eth0 -d 68.165.xxx.xx --dport 1723 -j DNAT --to 192.168.10.26
iptables -t nat -A PREROUTING -p tcp -m tcp -i eth0 -d 68.165.xxx.xx --dport 47 -j DNAT --to 192.168.10.26

which gets me to verifying passwords, but then it hangs , and doesnt establish the tunnel. I have fiddled with postrouting rules (and fowarding udp 500), but neither have gotten me further from that point.

Anyway, Any ideas of what I could try to get this server to work with outside clients? The iptables version is 1.2.11, on debian 3.1 - Thanks
 
Old 07-15-2005, 01:52 AM   #2
pvs
Member
 
Registered: Jan 2005
Location: Lviv, Ukraine
Distribution: Something self-made
Posts: 69

Rep: Reputation: 16
In your post I see rules routing only TO your server, and where is MASQUERADE for server replies? In server settings you should specify IP-address of your linux server (192.168.10.xxx) as default gateway.
 
Old 07-15-2005, 05:54 AM   #3
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
what does your FORWARDING chain say?
 
Old 07-15-2005, 05:58 AM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
Re: iptables routing for a win2k3 server

Quote:
Originally posted by dawime

iptables -t nat -A PREROUTING -p tcp -m tcp -i eth0 -d 68.165.xxx.xx --dport 47 -j DNAT --to 192.168.10.26
try :
iptables -t nat -A PREROUTING -p 47 -i eth0 -d 68.165.xxx.xx -j DNAT --to 192.168.10.26

GRE is called protocol 47 not tcp port 47.

u dont have to use windows box for vpn server. check www.poptop.org

good luck.

edit: im not sure if iptables supports protocol 47 for DNAT.

Last edited by maxut; 07-15-2005 at 06:03 AM.
 
Old 07-15-2005, 10:59 AM   #5
lwfinger
LQ Newbie
 
Registered: Sep 2003
Distribution: SuSE 9.1, 9.2, 9.3
Posts: 26

Rep: Reputation: 15
I have setup a VPN server on a SuSE-based firewall. My emphasis was to secure a wireless network that my management requires to be open. My article is at http://www.linuxjournal.com/article/8126.

Larry
 
  


Reply



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
iptables routing CJ_Grobler Linux - Security 1 06-14-2005 02:13 AM
Routing with iptables logo Linux - Networking 4 11-01-2004 06:21 AM
iptables / routing hakcenter Linux - Networking 13 05-01-2003 04:16 AM
More Help routing with iptables LAR12345 Linux - Networking 2 02-02-2003 10:28 AM
routing with iptables Han_Solo Linux - Security 0 10-28-2001 06:04 PM

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

All times are GMT -5. The time now is 09:23 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