Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Linux IPTables/Routing Problem
Results 1 to 4 of 4

Thread: Linux IPTables/Routing Problem

Hybrid View

  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.
    Frrkh hmd

  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.
    Frrkh hmd

Similar Threads

  1. OpenVPN\IPtables routing problem!! Please help me out
    By Pumbaa in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 01-25-2012, 10:59 AM
  2. iptables specific ip routing via tun
    By shamora in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 07-15-2011, 03:50 PM
  3. linux firewall, iptables forwarding problem
    By weiwei in forum Redhat / Fedora
    Replies: 1
    Last Post: 05-29-2011, 04:58 PM
  4. problem with Routing for multiple uplinks/providers on RH9 2.4.36.2
    By ciuly in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 07-24-2009, 10:04 PM
  5. routing problem
    By ehdlim in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 11-08-2005, 04:38 AM

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
  •