RE: [ILUG] iptables & DNAT

From: Dave Airlie (airlied at domain csn.ul.ie)
Date: Fri 25 May 2001 - 12:48:26 IST


maybe flush the tables first then try it without the 80...

you don't have some other rule blocking it previously?

flush all tables and try just the rule..

I'll take another look at the script we have..

Dave.

On Fri, 25 May 2001, Fergal Moran wrote:

> > From: Dave Airlie [mailto:airlied at domain csn.ul.ie]
> > > [root at domain pasteur /]# iptables -t nat -A PREROUTING -p tcp
> > --dport 80 -i eth0 -j
> > > DNAT --to 192.168.1.6:80
> > well not sure you don't need the :80 on the end of to anyways
> > for a start
> Yeah - I figured that - I tried it both ways - no difference
>
> > do iptables -L PREROUTING -t nat
> > to get a listing of the PREROUTING tables..
>
> [root at domain pasteur /]# iptables -L PREROUTING -t nat
> Chain PREROUTING (policy ACCEPT)
> target prot opt source destination
> DNAT tcp -- anywhere anywhere tcp dpt:http
> to:192.168.1.6:80
> DNAT tcp -- anywhere anywhere tcp dpt:http
> to:192.168.1.6
>
> To me - this looks as if the rule is set up ok - is it?
>
>

-- 
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / airlied at domain skynet.ie
pam_smb / Linux DecStation / Linux VAX / ILUG person


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:27 GMT