From: John Mathey Subject: another port forwarding question Date: Wed, 03 Dec 2003 12:28:03 -0600 Sender: netfilter-admin@lists.netfilter.org Message-ID: <6.0.1.1.2.20031203122704.02c71e98@mail> Mime-Version: 1.0 Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit To: netfilter@lists.netfilter.org Sorry, I mistyped, the second -p was --dport: $IPT -t nat -A PREROUTING -d $MYEXTIP -p tcp -s $MYSOURCEIP --dport 196 -j DNAT --to 192.168.1.50:80 John I'm trying to figure a way to forward a packet from a linux box to an internal windows box given a specific port. I'm pretty sure I can specify a port in my browser via a colon: eg: http://myfoobox:196, right? Here is the rule I've set up in the iptables: $IPT -t nat -A PREROUTING -d $MYEXTIP -p tcp -s $MYSOURCEIP -p 196 -j DNAT --to 192.168.1.50 Now, if I remove the -p ( port) it works, but I don't want every single request coming here to get forwarded, just a specific port, I've tried entering this in my browser: http;//myfoobox - This works if I don't have a port (-p ) in my iptables rule http://myfoobox:196 - this doesn't work no matter what just entering the myfoobox , still no go. The rule is the first one in my table so I know it has to at least get evaluated, in other words, there's not another rule filtering it out before it hits this. Thanks in advance John