Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-24-2006, 07:22 PM   #1
LQ Newbie
Registered: Apr 2006
Posts: 17

Rep: Reputation: 0
Question Policy routing using marks

hey all,

im trying to get routing to different gateways set up using the MARK function of iptables.

the mark that im using is a match for the string on the output chain of the mangle table.
iptables -t mangle -A OUTPUT -m string --string "string" -j MARK --set-mark 0x2

i can see traffic hitting this chain, but when it gets down to the routing, the page is not loaded.

# ip rule add fwmark 0x2 table 200

# ip route add default via GA.TE.WA.Y table 200

my assumption is that packets that are marked will end up going thru the GATEWAY right?

but what i notice is a few packets hitting GATEWAY and the rest go to my default route.

the overall result is my page is not being loaded.

Help appreciated.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set the password policy and lockout policy bin_shell Linux - Security 4 03-24-2010 04:30 PM
Samba System Policy, Default User Policy scooter549 Linux - General 2 02-24-2009 03:23 AM
help with policy based routing GaijinPunch Linux - Networking 4 06-19-2005 07:35 PM
[help] RH Network Routing Policy princenux Linux - Networking 1 07-04-2004 11:34 AM
Policy routing for multiple ppp connections paulos Linux - Networking 1 06-20-2004 03:02 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration