7 msgpppconfig can't find internal modem.
8 msgHelp playing simultaneously splitted videos (so...

iptables configuration problem
\ Chuanwen Wu (13 May 2007)
. \ Fabio A Correa (13 May 2007)
. . \ Chuanwen Wu (14 May 2007)
. . . \ Norberto Bensa (14 May 2007)
. \ Norberto Bensa (14 May 2007)
. . \ Chuanwen Wu (14 May 2007)
. . . \ Norberto Bensa (14 May 2007)
. . . . \ Dan Farrell (14 May 2007)
. . . . . \ Chuanwen Wu (15 May 2007)
. . . . . . \ Dan Farrell (15 May 2007)
. . . . . . . \ Chuanwen Wu (15 May 2007)
. . . . . . . . \ Dan Farrell (15 May 2007)

4 msgnoatime option is ignored for /
2 msgConfiguring and Booting Xen
8 msgNvidia drivers for 8600 GT
1 msgProblems with Ncurses UIs through Terminal
7 msgshould dual-core Pentium Processor Extreme Edit...
4 msgOT - Need help setting up mailman to work with ...
2 msgOT - A serious problem with my exim configuration
1 msgOT - !!! An error occured while trying to send ...
4 msgnew install 2007.0 and gcc-3.3.6
13 msglocate
1 msgProblems recieving digest
36 msgPanic at boot time after update kernel to 2.6.2...
3 msgpython emerge appears to have broken my python ...
6 msg{OT} web/mail server as nameserver
26 msgconvert rpm to ebuild
3 msgOnboard video
1 msgsomething keeps incrementing links to CD and DV...
Subject:iptables configuration problem
Group:Gentoo-user
From:Chuanwen Wu
Date:13 May 2007


 
Hi,guys!
I use iptables to let the PCs in the subnet to connect the internet outside.

And i write a simple script,but it doesn't work:

#!/bin/sh
iptables -F
#Define packets from Internet server to Intranet
iptables -A FORWARD -d 198.168.1.0/24 -i eth0 -j ACCEPT
#Define packets from Intranet to Internet
iptables -A FORWARD -s 198.168.1.0/24 -i eth1 -j ACCEPT


Here is the result of iptables -L:

# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere 198.168.1.0/24
ACCEPT all -- 198.168.1.0/24 anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination


The eth0 here has the real ip,and the eth1 have a subnet ip:192.168.1.21.
How to fix this problem?All I need now is just to let my office
machine to use the internet!
Thanks in advanced!!
--
wcw
--
gentoo-user mailing list



© 2004-2008 readlist.com