Talk About Network

Google





Software > Linux Debian Maint Firewall > Re: DNAT TCP 12...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 13 Topic 1561 of 1645
Post > Topic >>

Re: DNAT TCP 12345 -> 22

by "Chris Henry" <chrishenry.ni@[EMAIL PROTECTED] > Mar 21, 2008 at 01:20 PM

On Fri, Mar 21, 2008 at 7:28 PM, Fr=E9d=E9ric Massot
<frederic@[EMAIL PROTECTED]
> wrote:
>  The server that I want access through SSH is different from the
>  firewall, the server is in the DMZ and has one network interface
(chains
>  INPUT or OUTPUT), the firewall with two network interfaces (chain
>  FORWARD). The INPUT chain on the firewall is not involved in the
decisio=
n.
Hi, I didn't realize you want to access another server within the DMZ.
Okay, so now all traffic into DMZ servers must go through the firewall
right (meaning no direct access to the publicly accessible servers)?
I'm assuming that you are doing same-address NAT for the public IP. If
so, then you can do a ****t address translation:

iptables -t nat -A PREROUTING -p tcp -d <ext-public-ip> --d****t 12345
-j DNAT --to-destination <ext-public-ip>:22

If your default routing is set up correctly, any attempt to access
****t 22 directly from outside the firewall will be dropped/rejected.
While I attempt to have the command as correct as possible, I did not
test the above command so keep a backup of the original firewall
setting.

Chris
 




 13 Posts in Topic:
DNAT TCP 12345 -> 22
=?ISO-8859-15?Q?Fr=E9d=E9  2008-03-20 20:30:18 
Re: DNAT TCP 12345 -> 22
Ansgar -59cobalt- Wiecher  2008-03-20 22:10:12 
Re: DNAT TCP 12345 -> 22
=?ISO-8859-1?Q?Fr=E9d=E9r  2008-03-21 12:20:09 
Re: DNAT TCP 12345 -> 22
Ansgar -59cobalt- Wiecher  2008-03-21 14:50:12 
Re: DNAT TCP 12345 -> 22
"Stephen Benoit (Lin  2008-03-20 22:40:11 
Re: DNAT TCP 12345 -> 22
"=?ISO-8859-1?Q?M=E1  2008-03-21 00:50:12 
Re: DNAT TCP 12345 -> 22
=?ISO-8859-1?Q?Fr=E9d=E9r  2008-03-21 12:40:18 
Re: DNAT TCP 12345 -> 22
=?ISO-8859-1?Q?Fr=E9d=E9r  2008-03-21 12:40:10 
Re: DNAT TCP 12345 -> 22
"Chris Henry" &  2008-03-21 13:20:12 
Re: DNAT TCP 12345 -> 22
=?ISO-8859-1?Q?Fr=E9d=E9r  2008-03-21 12:50:11 
Re: DNAT TCP 12345 -> 22
Pascal Hambourg <pasca  2008-03-21 14:00:26 
Re: DNAT TCP 12345 -> 22
=?ISO-8859-15?Q?Fr=E9d=E9  2008-03-21 20:50:24 
Re: DNAT TCP 12345 -> 22
Paolo <oopla@[EMAIL PR  2008-03-21 23:30:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 15:29:09 PST 2009.