Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Primero <primero@fastwebnet.it>
To: Payal Rathod <payal-netfilter@scriptkitchen.com>
Cc: Netfilter ML <netfilter@lists.netfilter.org>
Subject: Re: DNAT
Date: Tue, 26 Oct 2004 12:30:33 +0200	[thread overview]
Message-ID: <417E2749.2020900@fastwebnet.it> (raw)
In-Reply-To: <20041026102023.GA7941@tranquility.scriptkitchen.com>

[-- Attachment #1: Type: text/plain, Size: 850 bytes --]

Payal Rathod wrote:

>Hi,
>I want to access my internal machine from outside. But I am unable to do 
>so. I tried,
># iptables -t nat -I PREROUTING -d <my_ext_ip> -p tcp --dport
>8081 -j DNAT --to-destination 192.168.0.16:80
># iptables -I INPUT -p tcp --dport 8081 -j ACCEPT
>  
>
the one above is useless because the INPUT chain in this case is not 
traversed.

># iptables -I FORWARD -s 192.168.0.16 -j ACCEPT
>  
>
This one is the one u need ... but u have to make the check on 
destination and not on source so
#iptables -I FORWARD -d 192.168.0.16 -j ACCEPT

>With warm regards,
>-Payal
>
>  
>
bye :)


-- 
---------------------------------------
#######################################

"Linux, the choice of a GNU generation"
     ==Micro$oft - just say NO== 

#######################################
---------------------------------------


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

  reply	other threads:[~2004-10-26 10:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-26 10:20 DNAT Payal Rathod
2004-10-26 10:30 ` Primero [this message]
2004-10-26 12:42 ` DNAT Jason Opperisano
  -- strict thread matches above, loose matches on Subject: below --
2005-07-19  2:01 DNAT Kai Hendry
2004-10-26  7:39 DNAT Payal Rathod
2003-09-08 22:48 DNAT George Vieira
2003-09-08 14:40 DNAT Nejc Skoberne
2003-09-08 22:20 ` DNAT Jim Carter
2003-09-08 22:31   ` DNAT Nejc Skoberne
2003-08-28 22:57 DNAT Mattia Martinello
2003-03-30 14:30 DNAT Alexandru Coseru
2002-12-12 18:00 DNAT Justin Kay

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=417E2749.2020900@fastwebnet.it \
    --to=primero@fastwebnet.it \
    --cc=netfilter@lists.netfilter.org \
    --cc=payal-netfilter@scriptkitchen.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