🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.comp.os.linux
Article #13706

Iptables的奇怪问题????????

#13706
From: bobowd
Date: Tue, 18 Jun 2002 08:10
51 lines
3323 bytes
Iptables��������⣿������������������������

 ��� ��

     ������linuxʵ��һ����̬·�ɵĻ�����
     �ҵĻ�����װRedhat linux7.2, Ҫ��iptablesʵ�־�̬·�ɡ�
     ������������������������ֱ��������ʸ���εĻ�����

     ��û������setup��ѡ���iptables��

    ����/etc/rc.d/rc.local�м���һ����䣺

    /bin/echo  1 > /proc/sys/net/ipv4/ip_forward
    modprobe  ip_tables
    modprobe  ip_conntrack
    modprobe  ip_conntrack_ftp

    
   ���� iptables��L��������£�

    
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination   

  ·�ɱ����£�

 [root@linuxlab root]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.1.0.0       *               255.255.0.0     U     0      0        0 eth0
192.168.0.0     *               255.255.0.0     U     0      0        0 eth1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth1   

 ��������·�ɹ��ܲ������������Դ�192��168��0��0����172��1��0��0�����Dz����Դ�172��1��0��0
����192��168��0��0��
   ��ֵ������ǣ�����192��168��0��0���ʹ�172��1��1��0��ij����ַ����ô�����ַ�Ϳ��Է���
192��168��0��0����������ĵ�ַ�Ͳ����ԡ�
  ����֣����ֽ�����������������ַ����Ȼ����������󣬾���192��168��0��0�����������
   172��1��0��0����֮ȴ�����ԡ�

  ��λ������ʲôԭ���ǣ�Ϊʲô�ǵ����·�����ǣ���û�������κε�iptables�Ĺ�����Ĭ�ϵ�
  iptables����

  ��л
Technical Details
Message-ID: <7474fa9c.0206180010.75b4c34@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: 10b277,973231fe7de4e4f5,start
X-Google-Attributes: gid10b277,public
X-Google-ArrivalTime: 2002-06-18 01:10:31 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: yangbobo@163.com (bobowd)
Newsgroups: cn.comp.os.linux
Subject: Iptables的奇怪问题????????
Date: 18 Jun 2002 01:10:31 -0700
Organization: http://groups.google.com/
Lines: 51
Message-ID: <7474fa9c.0206180010.75b4c34@posting.google.com>
NNTP-Posting-Host: 211.161.65.250
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1024387831 18478 127.0.0.1 (18 Jun 2002 08:10:31 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 18 Jun 2002 08:10:31 GMT