Differences between version 5 and previous revision of SourceBasedRouting.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 5 | Last edited on Monday, December 12, 2005 6:40:48 pm | by TimCareySmith | Revert |
Older page: | version 4 | Last edited on Monday, December 12, 2005 6:35:01 pm | by TimCareySmith | Revert |
@@ -108,8 +108,12 @@
Firstly, create a rule in the OUTPUT chain of the mangle table:
<verbatim>
whisky:~# iptables -A OUTPUT -o eth0 -m owner --uid-owner 1004 -j MARK --set-mark 0x1
+ whisky:~# iptables -t mangle -nvL OUTPUT
+ Chain OUTPUT (policy ACCEPT 25152 packets, 6543K bytes)
+ pkts bytes target prot opt in out source destination
+ 0 0 MARK all -- * eth0 0.0.0.0/0 0.0.0.0/0 OWNER UID match 1004 MARK set 0x1
</verbatim>
Secondly, create a rule in the RPDB specifying that packets MARKed 0x1 should use the ORCON routing table.
<verbatim>