LinuxQuestions.org
Visit Jeremy's Blog.
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 08-16-2011, 04:24 AM   #1
Raghu140
LQ Newbie
 
Registered: Oct 2009
Posts: 20

Rep: Reputation: 0
Routing RTP to mutiple Servers


Dear All,

I am facing following routing problem. Please help me to resolve the same.

Problem Statement:-" I have a intermediate Linux Server that is taking RTSP request from various server/RTSP Client on different subnets on the behalf of a RTSP Server. Now I need to send corresponding RTP stream to the requesting servers/RTSP Client. I have done the configuration successfully for a single requsting server. But the problem how make it for mutiple servers."

Configuration for Single RTSP Server in the IPtables:-
#RTSP Server IP is 192.168.33.51
#Requesting Server IP (RTSP Client) 10.3.9.204

:PREROUTING ACCEPT [525:40295]
:POSTROUTING ACCEPT [7:1150]
:OUTPUT ACCEPT [7:1150]
-A PREROUTING -i eth0 -p tcp -m tcp --dport 554 -j DNAT --to-destination 192.168.33.51:554
#The above setting is ok for mutiple rtsp client

-A PREROUTING -i eth0 -p udp -m udp -s 192.168.33.51 -j DNAT --to-destination 10.3.9.204
#How to make this line for mutiple client

-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT

IP Forward flag is ON.

Please help me.

Regards,
Raghuvendra Kumar
 
Old 08-16-2011, 04:50 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Quote:
-A PREROUTING -i eth0 -p udp -m udp -s 192.168.33.51 -j DNAT --to-destination 10.3.9.204-10.XX.XX.XX
something like this?
 
Old 08-16-2011, 06:08 AM   #3
Raghu140
LQ Newbie
 
Registered: Oct 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Krukan,

-A PREROUTING -i eth0 -p udp -m udp -s 192.168.33.51 -j DNAT --to-destination 10.3.9.204- 10.xx.xx.xx

Yes..but the ip can be mutiple. For example:-

-A PREROUTING -i eth0 -p udp -m udp -s 192.168.33.51 -j DNAT --to-destination 10.3.9.204-209;10.49.54.87-92;10.133.49.26-29

Please help.
 
  


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
Servers not routing email appropriately DrStrangepork Linux - Server 2 09-03-2009 08:34 AM
Routing table for 2 servers. Ronin_tekorei Linux - Networking 2 05-19-2009 01:40 PM
kickstart installs with mutiple nfs servers perlabsrat Linux - General 7 05-09-2008 09:18 AM
Debian Server Mutiple Gateways Routing azamup Debian 3 10-01-2007 01:11 AM
Masquerade + Routing servers through iptables hazmatt20 Linux - Networking 16 08-02-2006 03:14 PM

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

All times are GMT -5. The time now is 11:57 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
Open Source Consulting | Domain Registration