From mboxrd@z Thu Jan 1 00:00:00 1970 From: Payal Rathod Subject: DNAT Date: Tue, 26 Oct 2004 03:39:30 -0400 Sender: netfilter-bounces@lists.netfilter.org Message-ID: <20041026073930.GA3574@tranquility.scriptkitchen.com> Mime-Version: 1.0 Return-path: Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Netfilter ML 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 -p tcp --dport 8081 -j DNAT --to-destination 192.168.0.16:80 # iptables -I INPUT -p tcp --dport 8081 -j ACCEPT # iptables -I FORWARD -s 192.168.0.16 -j ACCEPT I know these are very crude but they are simple to start with. Also, once I get one more public IP from my ISP, I will NAT it to the internal machine. Can anyone give pointers on this and above to why it is not working? If this is right, is it possible that my ISP might be blocking traffic from outside to ports other than the few. With warm regards, -Payal