Results 1 to 4 of 4

Thread: Linux IPTables/Routing Problem

  1. #1

    Linux IPTables/Routing Problem

    Hi,

    I have a bunch of rules in iptables to calculate network traffic and these are working fine for most IPs on the network (192.168.0.106, 192.168.0.107 etc).

    One however is not working, this is 192.168.0.205. I have set this up exactly the same as all the other rules. The only difference I can see is that I have an entry in the route table with 192.168.0.205.

    Code:
    Kernel IP routing table 
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface 
    210.55.140.0    *               255.255.255.0   U     0      0        0 eth1 
    192.168.1.0     192.168.0.205   255.255.255.0   UG    0      0        0 eth0 
    192.168.0.0     *               255.255.255.0   U     0      0        0 eth0 
    default         210.55.140.129  0.0.0.0         UG    0      0        0 eth1
    Could this be stopping the rules in iptables counting traffic for this ip?

    Any help would be appreciated.

    Thanks[/code]

  2. #2
    Senior Member
    Join Date
    May 2004
    Location
    Pakistan
    Posts
    253

    Re:

    Dear Mephisto,
    Hello,

    Show me the output of these commands one by one !!

    # iptables -L -n --line
    # iptables -t nat -L -n --line
    # iptables -t mangle -L -n --line
    # iptables -t filter -L -n --line


    Best Regards.
    Färrükh Ähmëd

  3. #3

    Re:

    Thanks for your reply. Large output so have put into text files.

    iptables -L -n --line
    iptables -t nat -L -n --line
    iptables -t mangle -L -n --line
    iptables -t filter -L -n --line

    Thanks again

  4. #4
    Senior Member
    Join Date
    May 2004
    Location
    Pakistan
    Posts
    253

    Re:

    Dear Mephisto,
    Hello,

    It should work as i had seen your given output !!

    Chain ipac~i (1 references)
    num target prot opt source destination
    27 all -- 192.168.0.1 192.168.0.205
    and

    Chain traffic (6 references)
    num target prot opt source destination
    49 all -- 192.168.0.205 0.0.0.0/0
    50 all -- 0.0.0.0/0 192.168.0.205
    Best Regards.
    Färrükh Ähmëd

Similar Threads

  1. problem while installing linux
    By pansarevaibhav in forum Redhat / Fedora
    Replies: 4
    Last Post: 02-16-2006, 08:20 PM
  2. Does Linux need Microsoft?
    By starfish in forum General Chat
    Replies: 3
    Last Post: 12-19-2005, 03:38 PM
  3. networking problem between windos xp and linux
    By mwalam in forum Windows - General Topics
    Replies: 2
    Last Post: 08-30-2005, 07:58 PM
  4. Linux, should I convert?
    By cloverm in forum Linux - General Topics
    Replies: 37
    Last Post: 07-22-2005, 03:26 PM
  5. I've made a new improved distro: Linux XP !!
    By NGene in forum General Chat
    Replies: 34
    Last Post: 01-09-2002, 04:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •