LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] iptables & DNAT

[ILUG] iptables & DNAT

Dave Airlie airlied at csn.ul.ie
Fri May 25 12:48:26 IST 2001


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 csn.ul.ie]
> > > [root at 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 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 skynet.ie
pam_smb / Linux DecStation / Linux VAX / ILUG person






More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell