Find the answer to your Linux question:
Results 1 to 7 of 7
Dear All.... Can anyone give me the example how to make or implement firewall routing with iptable's mark rules for two isp to two diffrent network.. I have two static ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2012
    Posts
    8

    Routing with IPtable Mark


    Dear All....


    Can anyone give me the example how to make or implement firewall routing with iptable's mark rules for two isp to two diffrent network..

    I have two static isp.
    i want to configure tcp traffic on eth1 and
    udp traffic on eth2. How can it possible????????

    Thanks & Regards..
    Pratik Patel
    8000110453

  2. #2
    Linux Newbie
    Join Date
    Apr 2012
    Posts
    112
    You can use iproute2 to set up two default routes one for each interface. ( kindlund.wordpress.com/2007/11/19/configuring-multiple-default-routes-in-linux/)

    You can then set up rules on iptables to block all UDP traffic on eth1 and all TCP traffic on eth2.

    What is it that you are trying to achieve?

  3. #3
    Just Joined!
    Join Date
    Mar 2012
    Posts
    8
    Quote Originally Posted by manyrootsofallevil View Post
    You can use iproute2 to set up two default routes one for each interface. ( kindlund.wordpress.com/2007/11/19/configuring-multiple-default-routes-in-linux/)

    You can then set up rules on iptables to block all UDP traffic on eth1 and all TCP traffic on eth2.

    What is it that you are trying to achieve?


    I have two interface (isp) i want my local machine 192.168.0.44 marked by eth1 and other local machine 192.168.0.45 marked with eth2.
    can it possible????

  4. #4
    Linux Newbie
    Join Date
    Apr 2012
    Posts
    112
    Quote Originally Posted by Pratikp View Post
    I have two interface (isp) i want my local machine 192.168.0.44 marked by eth1 and other local machine 192.168.0.45 marked with eth2.
    can it possible????
    I'm really confused now, sorry.

    Are you saying that you want to set two static ip addresses?

  5. #5
    Just Joined!
    Join Date
    Mar 2012
    Posts
    8
    I have two interface and I want to set policy that ICMP packets routes through eth1 and all tcp packets routes through eth2. I want to configute this using iptables mark.

  6. #6
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Let me google that for you

    After you tried to setup your routing and still have issue come back and ask again with details of what you done and what is not working.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  7. #7
    Just Joined!
    Join Date
    Mar 2012
    Posts
    8
    I have done this... thanks all...

Posting Permissions

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