LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 06-22-2009, 07:00 AM   #1
summersgone
LQ Newbie
 
Registered: Dec 2006
Posts: 29

Rep: Reputation: 15
Question [HELP] redirect traffic to spesific port based on Traffic Content using iptables


Hi , I'm new to iptables , and I need to redirect all incoming traffic to port 21 in my localhost which contains of string "abcdefgh" to another server at port 21
Is this correct ?
Quote:
iptables -t nat -A PREROUTING -p tcp --dport 21 -m string --string "abcdefgh" -j DNAT --to-destination <ipaddress:21>
THank you
 
Old 06-22-2009, 08:58 AM   #2
summersgone
LQ Newbie
 
Registered: Dec 2006
Posts: 29

Original Poster
Rep: Reputation: 15
hmm :-/
 
Old 06-22-2009, 11:26 AM   #3
summersgone
LQ Newbie
 
Registered: Dec 2006
Posts: 29

Original Poster
Rep: Reputation: 15
still no reply ?
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
port based routing for local traffic houska Linux - Networking 2 05-24-2009 07:10 AM
SNMP MRTG RRDTOOL Configu of CPU memory Disk Port data traffic doc traffic manish_2479 Linux - Networking 1 06-19-2007 07:08 AM
port 25 forwarding iptables FC4, can't get it to pass traffic sahib2u Linux - Security 4 03-01-2006 10:00 AM
How can I block all traffic to port 110 to and IP using IPtables? abefroman Linux - Networking 8 11-16-2005 07:26 PM
How to filter traffic using port+process in IPTables muath Linux - Security 10 03-01-2004 11:20 AM


All times are GMT -5. The time now is 10:56 PM.

Main Menu
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