LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-18-2004, 07:01 PM   #1
affeee
LQ Newbie
 
Registered: Aug 2003
Distribution: Debian Sarge - 2.6.8
Posts: 14

Rep: Reputation: 0
Relay certain ports?


Is it possible to relay certain ports from one server to another? I dont mean that i want to forward ports to LAN, i want to relay to a external server/ip. The dnsname still have to point to the old server, but certain ports must point to the new server. So, is this possible?
 
Old 02-20-2004, 01:03 PM   #2
cli_man
Member
 
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428

Rep: Reputation: 30
Yes it is with iptables, I will give you an example iptables command:

iptables -t nat -A PREROUTING -s 63.166.11.0/24 -d 63.174.211.23 -p udp --dport 53 -j DNAT --to-destination 63.174.211.24

That would take any udp traffic coming from the 63.166.11.0 network that is going to 63.174.211.23 port 53 and redirect it to 63.174.211.24
 
  


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
Cannot Open Mail Server Ports 25, 110, and 220. Other Ports will open. Binxter Linux - Newbie 9 11-29-2007 02:03 AM
Postfix as a mail relay (getting relay access denied) hypexr Linux - Software 3 09-13-2005 07:15 PM
qmail + relay ... help.. rincewind Linux - Software 2 01-24-2005 09:49 AM
relay mail to sendmail relay server??? lemay_jeff Linux - Newbie 0 07-06-2004 04:54 PM
Relay or not to relay? Manuel-H Linux - General 2 04-20-2003 03:25 PM

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

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