From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Nicholas N.E" Subject: w/s on same LAN can't access DNAT'ed w/s Date: Mon, 24 Jun 2002 21:27:34 +0700 Sender: netfilter-admin@lists.samba.org Message-ID: <20020624140559.1FCE67994D@smtp01.metro.net.id> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: Errors-To: netfilter-admin@lists.samba.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: netfilter@lists.samba.org to be short : 10.0.3.0/24 ---> Gatewaty --> Internet w.x.y.z 10.0.3.8 is DNAT'ed to accept http request and some UDP ports To the gateway w/ public IP Internet ---> Gateway:80 -- DNAT--> 10.0.3.8:80 But workstations ( on the same LAN ) can not access 10.0.3.8 using the Gateway's Public IP THey can only connect by typing 10.0.3.8 ( or hostname only ) in the browser's URL box So far, I only use these on the nat tables : iptables -t nat -A PREROUTING -p tcp -s 0/0 -d $Gateway_Ext_IP --dport 80 -j DNAT --to 10.0.3.8:80 AND iptables -t nat -A POSTROUTING -s 0/0 -d 0/0 -o $ ext_iface -j SNAT --to $Gateway_ext_IP Should I add something more so other workstations on the same LAN as 10.0.3.8 can access it by using their gateway's Public IP ? I do not know what this is called tho' Thank you for reading. Nicholas.