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 01-27-2005, 06:18 AM   #1
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES / FC/ OES / CentOS
Posts: 614

Rep: Reputation: 32
Portrouting to special IP


Hy!

Im confused about what our elster-Software wants but, well, her it is how far i understand the problem.


I would have to install a server that would listen to some ports. lets say:

10000
10001
10002
10003

When the elster client is sending data to the port 10000 it should be routed to the ip xx.xx.xx.xx
When the elster client is sending data to the port 10001 it should be routed to the ip yy.yy.yy.yy

So this would be what it should look like


'Proxy'-Ports Internet

Elster --> 10000 --- > xx.xx.xx.xx
Client --> 10001 --- > yy.yy.yy.yy
--> 1000n --- > zz.zz.zz.zz

How would i do that ? with Port-Forwarding an my SuSELinux Firewall ???

Thanks for your ideas!
 
Old 01-27-2005, 06:49 AM   #2
zsoltrenyi
Member
 
Registered: May 2004
Distribution: redhat, trustix, debian
Posts: 103

Rep: Reputation: 15
you could do some portforwarding in your firewall
what firewall do you have if any?
 
Old 01-28-2005, 03:41 AM   #3
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES / FC/ OES / CentOS
Posts: 614

Original Poster
Rep: Reputation: 32
SuSEFirewall 2
 
Old 01-28-2005, 06:42 AM   #4
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES / FC/ OES / CentOS
Posts: 614

Original Poster
Rep: Reputation: 32
it wolks....

iptables -t nat -A PREROUTING --dst xx.xx.xx.xx -p tcp --dport 10000 -j DNAT --to-destination 62.xx.xxxx:8000
iptables -t nat -A PREROUTING --dst 10.x.x.x -p tcp --dport 10001 -j DNAT --to-destination 62.xx7.xx.xx:8000
iptables -t nat -A PREROUTING --dst 10.x.x.x -p tcp --dport 10002 -j DNAT --to-destination 62.1x.xx.x0:8000
iptables -t nat -A PREROUTING --dst 10.x.x.x -p tcp --dport 10003 -j DNAT --to-destination 193.1x.x.x:8000
iptables -t nat -A PREROUTING --dst 10.x.x.x -p tcp --dport 10004 -j DNAT --to-destination 193.1x.xxx.x:8000
iptables -t nat -A PREROUTING --dst 10.x.x.x -p tcp --dport 10005 -j DNAT --to-destination 213.x.x.x:8000
 
  


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
block special and character special files s_shenbaga Linux - Newbie 4 06-23-2015 02:16 AM
Special Characters SimeonV SUSE / openSUSE 14 07-07-2006 01:29 PM
Is D really something special? dafatdude Programming 10 05-24-2005 12:52 AM
Special Keys raven Linux - Laptop and Netbook 0 10-16-2003 09:21 AM
i need help with a special character Hone101 Linux - Newbie 1 05-03-2003 07:21 PM

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

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