All of lore.kernel.org
 help / color / mirror / Atom feed
* one to one NAT
@ 2002-09-10  1:10 Michael
  2002-09-10  0:21 ` Antony Stone
       [not found] ` <200209100119.g8A1J0r9027893@ns2.is.bizsystems.com>
  0 siblings, 2 replies; 10+ messages in thread
From: Michael @ 2002-09-10  1:10 UTC (permalink / raw)
  To: netfilter

I've been messing around all day trying to get one to one NAT working 
for my site. This is (I think) a typical DMZ application.

INTERNET <==> linux/iptables <==> localnet

linux ip 1.2.3.4 on eth1
local net 192.168.1.0

local net ip box 192.168.1.19

I want to map 1.2.3.5 to a single address behind the linux box
1.2.3.5 is mapped to eth1:0

I can't determine if I should be using 'mangle' or a combination of 
SNAT DNAT.

A pointer to a good howto that has some details would be appreciated.

Michael
Michael@Insulin-Pumpers.org


^ permalink raw reply	[flat|nested] 10+ messages in thread
* one to one NAT
@ 2002-09-24  0:13 Brennan, JosephX M
  2002-09-27 21:04 ` Antony Stone
  0 siblings, 1 reply; 10+ messages in thread
From: Brennan, JosephX M @ 2002-09-24  0:13 UTC (permalink / raw)
  To: 'netfilter@lists.netfilter.org'

I have been trying for a couple days to set up one to one nat with iptables
with a few weird results so I would any input out there that could help me
resolve my problem.

First, what I am trying to do is set up a box with a virtual ip that will be
mapped through my iptables box so that essentually the internal box is the
external ip.

I have a dual homed box with interfaces: eth1(internal card):192.168.1.254
and eth2(external card):10.10.10.254.  In addtion I have an external test
box with an ip of 10.10.11.23.  Both the 10.10.10.254 and 10.10.11.23 boxes
are hooked up to a 550T Intel routing switch so they are able to talk to
each other.  On the other side I have an internal test box with an ip of
192.168.1.24 and obviously because the routing box and internal test box are
on the same network they can talk.

My question however is i have tried this command

iptables -t nat -A PREROUTING -d 10.10.10.254 -j DNAT --to 192.168.1.24

and my internal box gets a request from the outside box however it does not
look like there has been any "NAT"ing taken place because when I run a
packet sniffer on the internal box the packets are still coming from the
10.10.10.23 address and obviously the internal box has no idea how to send
the information back.

So if anyone has any suggestions I would appreciate it.

Joe

PS.  I forgot to mention it above but I do have ip forwarding turned on.


^ permalink raw reply	[flat|nested] 10+ messages in thread
* One to One NAT
@ 2003-02-05 18:27 EricRyd
  2003-02-08 18:24 ` Joel Newkirk
  0 siblings, 1 reply; 10+ messages in thread
From: EricRyd @ 2003-02-05 18:27 UTC (permalink / raw)
  To: netfilter

I have been given a task to setup One to One NAT on a Linux box.  If I'm
correct I need to do this

iptables -t nat -A PREROUTING -p tcp -d 192.168.1.1-j DNAT --to-destination
172.100.1.1

First off, is this the correct syntax?  If not, I can't find for sure what I
would have to do.  Any suggestions?

Second, here is another scenario I have to do.  I work for Tech Support, and
we have a lab full of devices to assist us when working with Customers.  Our
internal IP Scheme is 192.168.0.0/16.  Some of the devices are
192.168.1.0/24 and can't be changed.  The original plan was to setup a 1:1
NAT with the Linux box to forward to the /24 network so we could use all of
the devices, but since I have been given the project I can't see it working.
How will the Linux box know	 which network to pass information on to
since they are both 192.168.x.x.  Any suggestions or ideas?

Thanks in advance,

Eric


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-02-08 18:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-10  1:10 one to one NAT Michael
2002-09-10  0:21 ` Antony Stone
2002-09-10  6:29   ` Anders Fugmann
2002-09-10  6:50     ` Anders Fugmann
2002-09-10  8:09     ` Antony Stone
     [not found] ` <200209100119.g8A1J0r9027893@ns2.is.bizsystems.com>
2002-09-10  8:03   ` Antony Stone
  -- strict thread matches above, loose matches on Subject: below --
2002-09-24  0:13 Brennan, JosephX M
2002-09-27 21:04 ` Antony Stone
2003-02-05 18:27 One to One NAT EricRyd
2003-02-08 18:24 ` Joel Newkirk

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.