Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, i want to define some routing rules for my test networks using iptables. so my first question can be is it possible to use iptables to select a path ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2006
    Posts
    2

    using iptables to define routing rules


    Hi,
    i want to define some routing rules for my test networks using iptables.
    so my first question can be is it possible to use iptables to select a path from two different available paths.

    further here i explain my situation.
    i have 4 networks with me NetX(192.168.1.0), NetA(192.168.2.0) NetB(192.168.3.0) and NetY(192.168.4.0)
    now there is no direct access from NetX to NetY but through NetA or NetB.
    I want send some traffic through NetA and some through NetB and lets assume at the moment all the traffic for port 80 will go through NetA and rest of the traffic will go through NetB.

    so i want to know how to built a firewal at the point where NetX, NetA and NetB meet so that from that point onward traffic is diverted in two paths.

    thanks

    Regards
    Ali

  2. #2
    Just Joined! letmeknowlinux's Avatar
    Join Date
    Mar 2006
    Posts
    82
    This might be the quick intuitive tutorial:
    http://www.linuxhomenetworking.com/w...Using_iptables

  3. #3
    Just Joined!
    Join Date
    Jul 2006
    Posts
    2
    Hi,
    thanks for the link i have gone through few iptables tutorials,
    what i think about iptables is they can help to filter traffic means either drop or pass through the firewall or iptable can help to do Network Adress Translation. so my confusion is that can it help me to decide the route as well on the basis of filtering it does. if yes then how.

    thanks

  4. #4
    Just Joined! letmeknowlinux's Avatar
    Join Date
    Mar 2006
    Posts
    82
    This thread might be helpful:
    http://www.firewall.cx/ftopict-2766.html

    Good luck,

Posting Permissions

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