LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-14-2004, 05:17 PM   #1
mr_jrt
LQ Newbie
 
Registered: Jun 2004
Distribution: Redhat
Posts: 1

Rep: Reputation: 0
Question Port forwarding CVS


Hya, I'm trying to coerce iptables into achieving the following goals:

Router 'A' should perform NAT on all outgoing packets
Router 'A' should forward all CVS connections to it to the CVS server 'B', both from an internal host 'C', as well as an external host, 'D'.

My current relevant iptables rules are:

Code:
-A PREROUTING -p tcp -m tcp --dport 2401 -j DNAT --to-destination 192.168.69.244:2401
-A POSTROUTING -o ppp0 -j MASQUERADE
-A POSTROUTING -d 192.168.69.0/255.255.255.0 -p tcp -m tcp --dport 2401 -j MASQUERADE
The problem with these is that when computer 'C' tries to access external CVS servers, it can't. If I remove the prerouting rule it can just fine, but then of course theres no port forwarding.

I have a sinking suspicion that whats happening is that all incoming CVS traffic is getting routed to my CVS server irrespective of its intended destination as I can connect to these servers fine, but I'm unable to be more specifc as to the destination in the rule as I'm on a DSL provider that only offers dynamic IPs.

Suggestions would be appreciated.

Last edited by mr_jrt; 06-14-2004 at 05:18 PM.
 
  


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
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 12:08 PM
Port 80 forwarding to port 22 with iptables zahoo Linux - Networking 3 02-22-2005 07:22 AM
CVS port 2401??? yenonn Linux - Newbie 0 01-13-2004 06:17 PM
port forwarding and packet forwarding syrtsardo Linux - Newbie 2 07-03-2003 10:37 AM

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

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