All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: IPTABLES HELP
Date: Wed, 15 Dec 2004 18:17:34 -0500	[thread overview]
Message-ID: <1103152647.13025.4.camel@hubcap.ljm.dom> (raw)
In-Reply-To: <20041215231734.20439410C37@mailroute.thevine.net>

On Wed, 2004-12-15 at 18:09, Burton wrote:
> Ok I have had some great help with people on this board I just have not
> found an answer to my problem.
>  
> This is what I need to happen
>  
> [Client]--->T1(12.22.81.1) -->[Linux 12.22.81.8 10025]-->[Windows Mail
> Server 204.250.113.2 25] 
> 
> Then I would like it to also send the data back though T1 (12.22.81.1)
>  
> Current clients get to our SMTP server IE:
> [Client]--->T1(204.250.113.1) -->[Windows Mail Server 204.250.113.2 25]
>  
> 
> The point of this is my boss wants us to divert some traffic though t1
> (12.22.81.1) but keep the our mail server on its current network
>  
> This is what I have tried
>  
> iptables -F
> service iptables stop
>  
> iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 10025 -j DNAT --to
> 204.250.113.2:25

try adding:

  iptables -t nat -A POSTROUTING -o eth1 -d 204.250.113.2 --dport 25 \
    -j SNAT --to-source $ip_of_eth1

to force the replies from the windows mail server back through the linux
box.
 
-j

--
"Here we have an ordinary square.
 Whoa! Slow down egghead!"
	--The Simpsons



  reply	other threads:[~2004-12-15 23:17 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-15 23:09 IPTABLES HELP Burton
2004-12-15 23:17 ` Jason Opperisano [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-10-31 11:41 iptables help Vikram Bhuskute
2005-04-04 12:08 Iptables help Vishwas Manral
2005-04-04  5:11 dpadalkar2001
2005-04-04 14:46 ` Henrik Nordstrom
2004-11-04  2:42 iptables help Wei Ming Long
2004-11-05 10:43 ` Harald Welte
2004-11-04  2:40 Wei Ming Long
2004-11-04  2:40 ` Wei Ming Long
2004-11-04 21:02 ` Jason Opperisano
2004-11-04 22:39 ` Bosse Klykken
2004-11-04  2:40 Wei Ming Long
2004-07-28 23:20 Ashley M. Kirchner
2004-07-29  6:32 ` Antony Stone
2004-05-31 16:20 iptables Help Daniel Chemko
2004-05-31 10:36 Vinay Poojary
2003-10-13  3:04 iptables help George Vieira
2003-10-10  4:45 JM
2003-10-10  5:29 ` Ralf Spenneberg
2003-10-13  3:12   ` JM
2003-02-17  6:15 Laxman Gummadavally

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1103152647.13025.4.camel@hubcap.ljm.dom \
    --to=opie@817west.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.