public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Chuanwen Wu" <wcw8410@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] iptables configuration problem
Date: Tue, 15 May 2007 11:10:55 +0800	[thread overview]
Message-ID: <7797aa370705142010i6f4f95d9n60d280c3dc9cee0e@mail.gmail.com> (raw)
In-Reply-To: <20070514214957.717a8ea9@voyager.g.spore.ath.cx>

2007/5/15, Dan Farrell <dan@spore.ath.cx>:
> On Tue, 15 May 2007 10:35:38 +0800
> "Chuanwen Wu" <wcw8410@gmail.com> wrote:
>
> > Does it mean that eth1(the interface in my subnet) receive the request
> > but don't post forward it?
>
> Perhaps you should attach the output of "iptables -t nat -L -v;
> iptables -L -v;" so I can see the rules... while you're at it,
# iptables -L -v
Chain INPUT (policy ACCEPT 24414 packets, 3853K bytes)
 pkts bytes target     prot opt in     out     source
destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source
destination

Chain OUTPUT (policy ACCEPT 33323 packets, 7123K bytes)
 pkts bytes target     prot opt in     out     source
destination



 # iptables -L -v -t nat
Chain PREROUTING (policy ACCEPT 7546 packets, 1103K bytes)
 pkts bytes target     prot opt in     out     source
destination

Chain POSTROUTING (policy ACCEPT 340 packets, 28034 bytes)
 pkts bytes target     prot opt in     out     source
destination
    0     0 MASQUERADE  all  --  any    any     192.168.1.0/24
anywhere

Chain OUTPUT (policy ACCEPT 350 packets, 28746 bytes)
 pkts bytes target     prot opt in     out     source
destination


> edit /etc/sysctl.conf so that forwarding is enabled every time you
> reboot, and make sure it's still enabled now.

Oh!God!My must forget to enabled forwarding after last night!
Now,the PCs in the subnet can connect internal!

By the way,do you mean to change  " #net.ipv4.ip_forward = 0(default
in /etc/sysctl.conf)" to "net.ipv4.ip_forward = 1"?
> --
> gentoo-user@gentoo.org mailing list
>
>


-- 
wcw
-- 
gentoo-user@gentoo.org mailing list



      reply	other threads:[~2007-05-15  3:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-13 14:41 [gentoo-user] iptables configuration problem Chuanwen Wu
2007-05-13 15:03 ` Fabio A Correa
2007-05-14  3:31   ` Chuanwen Wu
2007-05-14  3:56     ` Norberto Bensa
     [not found]       ` <7797aa370705140218s1ee9b7b4yea52a7140b031b05@mail.gmail.com>
2007-05-14 10:48         ` Norberto Bensa
2007-05-14 11:23           ` Chuanwen Wu
2007-05-14 14:58             ` Norberto Bensa
2007-05-14 21:36               ` Dan Farrell
2007-05-15  2:35                 ` Chuanwen Wu
2007-05-15  2:49                   ` Dan Farrell
2007-05-15  3:10                     ` Chuanwen Wu [this message]

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=7797aa370705142010i6f4f95d9n60d280c3dc9cee0e@mail.gmail.com \
    --to=wcw8410@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /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