LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 09-28-2007, 11:24 AM   #1
SPEEDEX
LQ Newbie
 
Registered: Apr 2007
Posts: 22

Rep: Reputation: 0
simple port forwarding


Hi,
I am running a PPTP VPN server on IP 1.2.3.4 , but I want my users to connect to my VPN server using another box with IP 5.6.7.8
both IPs are valid and they are on different datacenters.
so I think I should do a port forwarding for port 1723 from my proxy box to my VPN server. this is what I did using iptables on my proxy box :
Table: nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp -- 0.0.0.0/0 1.2.3.4 tcp dpt:1723 to:5.6.7.8

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
SNAT tcp -- 0.0.0.0/0 5.6.7.8 tcp dpt:1723 to:1.2.3.4

but it doesnt work ! when I try to connect to port 1723 on my proxy box , I dont get an answer.
please help me.
Regards
 
Old 09-28-2007, 12:20 PM   #2
SPEEDEX
LQ Newbie
 
Registered: Apr 2007
Posts: 22

Original Poster
Rep: Reputation: 0
I solved it , I had forgotten to enable IP Forwarding on my proxy box , now clients can connect to VPN server through proxy box , but they get error 628. seems it is somehow related to GRE and how PPTP works. microsoft SUCKS
 
  


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
Shorewall : So simple , yet so hard (Help with port forwarding) Wynand1 Linux - Networking 1 05-09-2006 01:33 AM
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 01:08 PM
iptables on router: simple port forwarding not working hamish Linux - Networking 1 10-27-2005 07:06 AM
Simple enough...iptables..port forwarding pembo13 Linux - Networking 4 07-19-2003 03:08 AM
How can I do simple port forwarding on RH9? yetalu Linux - Networking 4 07-14-2003 08:44 PM


All times are GMT -5. The time now is 10:46 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration