Mailing List Archive

Newbie looking for help
Hi all,

I am a Master's student working on a small project for policy routing
of multi-interface network terminals. A part of my project is to
implement a simple policy module that decides to route outgoing
packets via different NICs.

I have read the Linux netfilter Hacking HOWTO and have a basic
understanding of netfilter. But when it comes to coding, I still have
some doubts. Could someone please give me some hints and/or simple
code samples that I can study to improve my practical understanding of
netfilter?

Thanks a lot!
Ron
Re: Newbie looking for help [ In reply to ]
On Jul 24 2007 11:42, Ron Lee wrote:
>
> Hi all,
>
> I am a Master's student working on a small project for policy routing
> of multi-interface network terminals. A part of my project is to
> implement a simple policy module that decides to route outgoing
> packets via different NICs.
>
> I have read the Linux netfilter Hacking HOWTO and have a basic
> understanding of netfilter. But when it comes to coding, I still have
> some doubts. Could someone please give me some hints and/or simple
> code samples that I can study to improve my practical understanding of
> netfilter?

ip ru a fwmark 1337 table 1337
ip r a default via 134.76.13.21 dev eth0 table default
ip r a default via 1.3.3.7 dev eth2 table 1337
iptables -t mangle -A OUTPUT -m random --percentage 0.5 -j MARK --mark 1337


There is zero coding involved.


Jan
--