Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Marek Dohojda <mdohojda@cisco.com>
To: Sam Loy <sampaw@mac.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: Please help...
Date: Mon, 28 Jun 2004 15:18:15 -0700	[thread overview]
Message-ID: <40E09927.4000101@cisco.com> (raw)
In-Reply-To: <FC8C43AB-C94D-11D8-9C38-000A95AD0230@mac.com>

well 0/0 is exactly right. that just means the whole internet.

What are your other chains setup as?

Sam Loy wrote:
> If I sound a little frustrated, keep in mind I'm now on week 2 of my 
> attempt to setup linux as a firewall router on my home network. I have 
> installed 3 different versions of linux, read hundreds of pages, tried 
> at least 5 different configurations 20 times each....but still I cannot 
> seem to share my dsl connection with my other machines.
> 
> I have 2 NICs in a Linux 9 installation. One card connects to my lan 
> with a static ip of 192.168.1.1. The other connects to my DSL provider 
> which dynamically allocates the ip.
> 
> I did this:
> 
> modprobe iptable_nat
> 
> # In the NAT table (-t nat), Append a rule (-A) after routing
> # (POSTROUTING) for all packets going out ppp0 (-o ppp0) which says to
> # MASQUERADE the connection (-j MASQUERADE).
> iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
> 
> # Turn on IP forwarding
> echo 1 > /proc/sys/net/ipv4/ip_forward
> 
> 
> It does not work.  When I do a iptables -t nat  -n -L
> It displays:
> 
> MASQUERADE all -- 0.0.0.0/0         0.0.0.0/0
> 
> once for each time I've executed the above command. (now 7 times). I'm 
> sorry, but this doesn't seem right. 0 to 0? don't think so. So I try 
> different -o values - but always get the same.
> 
> Don't get it - Do I need to manually add a route? Completely befuttled 
> and ready to throw in the towell.
> 
> Sam
> 
> 
> 


  parent reply	other threads:[~2004-06-28 22:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-28 21:56 Please help Sam Loy
2004-06-28 22:13 ` Antony Stone
2004-06-28 22:18 ` Marek Dohojda [this message]
     [not found] ` <16609.34789.711050.944527@saint.heaven.net>
2004-06-29 16:57   ` Sam Loy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40E09927.4000101@cisco.com \
    --to=mdohojda@cisco.com \
    --cc=netfilter@lists.netfilter.org \
    --cc=sampaw@mac.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox