LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-24-2006, 06:22 PM   #1
Xeta
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.
 
  


Reply



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 03:30 PM
Samba System Policy, Default User Policy scooter549 Linux - General 2 02-24-2009 02:23 AM
help with policy based routing GaijinPunch Linux - Networking 4 06-19-2005 06:35 PM
[help] RH Network Routing Policy princenux Linux - Networking 1 07-04-2004 10:34 AM
Policy routing for multiple ppp connections paulos Linux - Networking 1 06-20-2004 02:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:47 PM.

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