From: "Peter Marshall" <peter.marshall@caris.com>
To: Daniel Chemko <dchemko@smgtec.com>,
Ramin Dousti <ramin@cannon.eng.us.uu.net>
Cc: Thorsten Scherf <tscherf@web.de>, netfilter@lists.netfilter.org
Subject: Re: Nat with a dynamic IP
Date: Fri, 5 Sep 2003 14:47:18 -0300 [thread overview]
Message-ID: <03a601c373d5$c0236800$49caa8c0@caris.priv> (raw)
In-Reply-To: 7C9884991ADAE0479C14F10C858BCDF52E367E@alderaan.smgtec.com
LOL. I did not say it was possibel. I was looking for a way to do it. I
guess I am not as concerened with getting it to work with multiple external
interfaces .... But mostly with the second part of my question ( which by
the way was ...)
"More importantly, what about trying to connect directly to the
firewall from an external address"
I guess what I am really getting at is that if I set up DNAT the way
suggested (see below) then I am not sure how I would be able to ssh to both
the firewall and a box inside the firewall. Is the only way to do this to
ssh to the firewall and then ssh to a box inside the firewall ?
( this was the suggestion. btw, I am not using a mail server, it was just
in the solution)
iptables -t nat -A PREROUTING -p tcp --dport 25 -i $EXT_DEV -j DNAT
--to-destination $SMTP_SERVER
My setup would be something like this
iptables -t nat -A PREROUTING -p tcp --dport 22 -i$EXT_DEV -j DNAT
--to-destination $InternalIPofFirewall
( this would direct all ssh connections on port 22 to the firewall)
Is the only other possibility (other than sshing to the firewall first and
then to the internal box) to have another port listen on a high port, and
set up my internal box to listen on that high port for ssh ???
Thanks again, and sorry for the long confusing email ....
----- Original Message -----
From: "Daniel Chemko" <dchemko@smgtec.com>
To: "Ramin Dousti" <ramin@cannon.eng.us.uu.net>; "Peter Marshall"
<peter.marshall@caris.com>
Cc: "Thorsten Scherf" <tscherf@web.de>; <netfilter@lists.netfilter.org>
Sent: Friday, September 05, 2003 2:16 PM
Subject: RE: Nat with a dynamic IP
> Damn, guys, if you could set me up with a fantastic script that can do
> multiple DHCP subscriptions on a single NIC, I could throw away my all
> 4-port NIC's. I'll hear offers for the cards 'after' I get this script
> :-)
>
>
>
> -----Original Message-----
> From: Ramin Dousti [mailto:ramin@cannon.eng.us.uu.net]
> Sent: Friday, September 05, 2003 10:11 AM
> To: Peter Marshall
> Cc: Thorsten Scherf; netfilter@lists.netfilter.org
> Subject: Re: Nat with a dynamic IP
>
> On Fri, Sep 05, 2003 at 11:36:09AM -0300, Peter Marshall wrote:
>
> > That is a pretty good solution for the SNAT. I never thought about
> MASQ.
> > However .... I am not sure if the DNAT is the best solution .... WHat
> if
> > you had multiple ip numbers on the external card ....
>
> and they're all dynamic? Give us an example...
>
> Ramin
>
> > More importantly, what about trying to connect directly to the
> firewall from
> > an external address.
>
>
next prev parent reply other threads:[~2003-09-05 17:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-05 17:16 Nat with a dynamic IP Daniel Chemko
2003-09-05 17:47 ` Peter Marshall [this message]
2003-09-05 19:17 ` Ramin Dousti
2003-09-06 0:34 ` Jim Carter
2003-09-05 19:13 ` Ramin Dousti
-- strict thread matches above, loose matches on Subject: below --
2003-09-05 19:23 Daniel Chemko
2003-09-05 19:28 ` Peter Marshall
2003-09-05 13:34 Peter Marshall
2003-09-05 14:05 ` Thorsten Scherf
2003-09-05 14:36 ` Peter Marshall
2003-09-05 17:11 ` Ramin Dousti
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='03a601c373d5$c0236800$49caa8c0@caris.priv' \
--to=peter.marshall@caris.com \
--cc=dchemko@smgtec.com \
--cc=netfilter@lists.netfilter.org \
--cc=ramin@cannon.eng.us.uu.net \
--cc=tscherf@web.de \
/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