Differences between version 7 and previous revision of SourceBasedRouting.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 7 | Last edited on Wednesday, December 14, 2005 2:27:25 pm | by TimCareySmith | Revert |
Older page: | version 6 | Last edited on Monday, December 12, 2005 6:43:24 pm | by TimCareySmith | Revert |
@@ -107,9 +107,9 @@
I will be doing this for a specific uid, so that all locally-generated traffic owned by the uid:1004 will be routed out through 192.168.1.253.
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
-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