LinuxQuestions.org
Review your favorite Linux distribution.
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-03-2006, 03:36 PM   #1
jccurtis
LQ Newbie
 
Registered: Dec 2005
Posts: 5

Rep: Reputation: 0
IPTABLES DNAT SNAT Re-Addressing


Okay I have a Linux box set up on my network and want to do the following but it is not working. Any help is appreciated:

*mangle
COMMIT

*nat
-F PREROUTING
-A POSTROUTING -p all -s 10.22.92.111 -o eth0 -j SNAT --to 172.24.9.211
-A PREROUTING -p all -d 172.24.9.211 -i eth0 -j DNAT --to 10.22.92.111
-A INPUT
COMMIT

I want any packets coming in with a destination address of 172.24.9.211 to be re-directed to 10.22.92.11 or re-addressed. Also any packets with 10.22.92.111 as the source address need to be changed to 172.24.9.211.

upstatenewyork2@yahoo.com
 
Old 01-03-2006, 04:41 PM   #2
grimse
Member
 
Registered: Oct 2004
Location: Oldenburg, Germany
Distribution: FC4
Posts: 42

Rep: Reputation: 15
hi.
ip-forwarding activated?

greetings, grim
 
  


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
MASQUERADE vs. DNAT/SNAT Palula Linux - Networking 9 08-12-2005 10:23 AM
IPtables: SNAT & Aliasing kegwell Linux - Security 2 01-05-2005 08:55 PM
IPTables: DNAT, SNAT and Masquerading tarballed Linux - Security 3 12-10-2004 03:45 PM
[MS Direct Play DNAT SNAT] MrGreg Linux - Networking 2 06-09-2002 06:58 PM
IPTables - DNAT, SNAT, port forwarding FunkFlex Linux - Security 2 01-15-2002 07:18 PM

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

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