Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Karl Fischer <karl.fischer@quantum.com>
To: Tim <tim-lists@cimx.com>
Cc: Netfilter mailing list <netfilter@lists.samba.org>
Subject: Re: problems routing
Date: Mon, 24 Jun 2002 17:46:59 +0200	[thread overview]
Message-ID: <3D173EF3.71ED313B@quantum.com> (raw)
In-Reply-To: 007101c21b95$e87a6e50$5064a8c0@optimus

Tim wrote:
> 
> I have a 192.168.100.0 network with my iptables box sitting at
> 192.168.100.12 and a mailserver at 192.168.100.10 and also with a public ip
> and name.
> 
> I have several users who are both on the road and work in the office
> commonly.
> 
> I want to make a rule for them so that when they request mail.cimx.com it
> redirects to 192.168.100.10.
> 
> I tried to make the following rule:
> iptables -t nat -A PREROUTING -p tcp -d $MAIL_IP -j REDIRECT 192.168.100.10
> but it seems to not work.


You'll have to use DNAT for that:

iptables -t nat -A PREROUTING -p tcp -d $MAIL_IP \
	-j DNAT --to-dest 192.168.100.10

HTH

- Karl


  reply	other threads:[~2002-06-24 15:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-24 15:43 problems routing Tim
2002-06-24 15:46 ` Karl Fischer [this message]
2002-06-24 15:59   ` Antony Stone

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=3D173EF3.71ED313B@quantum.com \
    --to=karl.fischer@quantum.com \
    --cc=netfilter@lists.samba.org \
    --cc=tim-lists@cimx.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox