iptables is not working



Hi everyone..

I am using Redhat linux 9.

I want to use iptables to monitor the bandwidth.

So create the rues and i saved it ..but no response is there...

---->iptables -N vlan100
---->iptables -N vlan120

---->iptables -A FORWARD -d 172.16.100.0/24 -j vlan100

---->iptables -A FORWARD -s 172.16.120.0/24 -j vlan120

---->service iptables save

Saving current rules to /etc/sysconfig/iptables: [OK]
---> service iptables status

Table: filter
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination
vlan100 all -- anywhere 172.16.140.0/24
vlan120 all -- anywhere 172.16.2.0/24

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain vlan100 (1 references)
target prot opt source destination

Chain vlan120 (1 references)
target prot opt source destination

--->iptables -L -v -n

Chain INPUT (policy ACCEPT 5657K packets, 3766M 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
0 0 vlan100 all -- * * 0.0.0.0/0
172.16.140.0/24
0 0 vlan120 all -- * * 0.0.0.0/0
172.16.2.0/24

Chain OUTPUT (policy ACCEPT 6502K packets, 4150M bytes)
pkts bytes target prot opt in out source
destination

Chain vlan100 (1 references)
pkts bytes target prot opt in out source
destination

Chain vlan120 (1 references)
pkts bytes target prot opt in out source
destination


----so nothing has come in the output. What will be the reason. I dont
know whether iptables has some problem or me.


Tell me the procedure wise to correct this problem

Thanks in advance

.



Relevant Pages

  • Routing questions
    ... pkts bytes target prot opt in out source ... Chain FORWARD ...
    (comp.os.linux.networking)
  • Re: Firestarter in FC2
    ... Chain INPUT ... pkts bytes target prot opt in out source ...
    (Fedora)
  • Iptables, adsl, some protocols not working
    ... Chain FORWARD (policy ACCEPT) ... Chain PREROUTING (policy ACCEPT 16M packets, ... pkts bytes target prot opt in out source ...
    (comp.os.linux.networking)
  • Re: masquerading with SUSE 9.3
    ... pkts bytes target prot opt in out source ... Chain FORWARD ...
    (comp.os.linux.networking)
  • Re: iptables problem
    ... Chain INPUT (policy DROP) ... Say I have a server that runs services for web, mail, domain, time and is also a gateway (I will use masquerading for the last although you can use plain NAT). ... $ipt -F OUTPUT ...
    (RedHat)

Quantcast