Gentoo Archives: gentoo-user

From: Chuanwen Wu <wcw8410@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] iptables configuration problem
Date: Tue, 15 May 2007 03:17:03
Message-Id: 7797aa370705142010i6f4f95d9n60d280c3dc9cee0e@mail.gmail.com
In Reply to: Re: [gentoo-user] iptables configuration problem by Dan Farrell
1 2007/5/15, Dan Farrell <dan@×××××××××.cx>:
2 > On Tue, 15 May 2007 10:35:38 +0800
3 > "Chuanwen Wu" <wcw8410@×××××.com> wrote:
4 >
5 > > Does it mean that eth1(the interface in my subnet) receive the request
6 > > but don't post forward it?
7 >
8 > Perhaps you should attach the output of "iptables -t nat -L -v;
9 > iptables -L -v;" so I can see the rules... while you're at it,
10 # iptables -L -v
11 Chain INPUT (policy ACCEPT 24414 packets, 3853K bytes)
12 pkts bytes target prot opt in out source
13 destination
14
15 Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
16 pkts bytes target prot opt in out source
17 destination
18
19 Chain OUTPUT (policy ACCEPT 33323 packets, 7123K bytes)
20 pkts bytes target prot opt in out source
21 destination
22
23
24
25 # iptables -L -v -t nat
26 Chain PREROUTING (policy ACCEPT 7546 packets, 1103K bytes)
27 pkts bytes target prot opt in out source
28 destination
29
30 Chain POSTROUTING (policy ACCEPT 340 packets, 28034 bytes)
31 pkts bytes target prot opt in out source
32 destination
33 0 0 MASQUERADE all -- any any 192.168.1.0/24
34 anywhere
35
36 Chain OUTPUT (policy ACCEPT 350 packets, 28746 bytes)
37 pkts bytes target prot opt in out source
38 destination
39
40
41 > edit /etc/sysctl.conf so that forwarding is enabled every time you
42 > reboot, and make sure it's still enabled now.
43
44 Oh!God!My must forget to enabled forwarding after last night!
45 Now,the PCs in the subnet can connect internal!
46
47 By the way,do you mean to change " #net.ipv4.ip_forward = 0(default
48 in /etc/sysctl.conf)" to "net.ipv4.ip_forward = 1"?
49 > --
50 > gentoo-user@g.o mailing list
51 >
52 >
53
54
55 --
56 wcw
57 --
58 gentoo-user@g.o mailing list