Skip to contentSkip to conversation

Newbie looking for help

DISCUSSION Ron Lee 2 participants 2 messages Jul 24, 2007 netfilter

lore
Share & tools
lore

Ron Lee

author
#0 lore raw

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

#1 lore raw
Quoted 8 lines · Ron Lee

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.

Quoted 5 lines

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