LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-12-2005, 12:26 PM   #1
Frankablu
LQ Newbie
 
Registered: Jan 2003
Posts: 12

Rep: Reputation: 0
Iptables - Redirecting Outgoing Traffic


How can I use iptables to redirect all outgoing connections to XXX.XXX.XXX.XXX to YYY.YYY.YYY.YYY?

I've tried iptables -t nat -A POSTROUTING -d XXX.XXX.XXX.XXX -j NETMAP --to YYY.YYY.YYY.YYY but it doesn't seem to work.
 
Old 06-12-2005, 02:18 PM   #2
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Rep: Reputation: 30
The target is called DNAT (Destination NAT) not NETMAP.
 
  


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
Traffic shaping (limiting outgoing bandwidth of all TCP-traffic except FTP/HTTP) ffkodd Linux - Networking 3 10-25-2008 01:09 AM
Block outgoing traffic through router? Micro420 Linux - Networking 3 03-15-2005 08:01 AM
outgoing traffic to the internet stopped esanchez Linux - Networking 4 09-22-2004 02:29 PM
redirecting vpn traffic brb5548 Linux - Networking 1 07-01-2003 02:13 PM
How to use QoS to throttle outgoing traffic? Electrode Linux - Networking 3 06-13-2003 08:46 AM


All times are GMT -5. The time now is 04:36 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration