• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/iptables-1.4.x/extensions/
1.TP
2[\fB!\fP] \fB\-\-cpu\fP \fInumber\fP
3Match cpu handling this packet. cpus are numbered from 0 to NR_CPUS-1
4Can be used in combination with RPS (Remote Packet Steering) or
5multiqueue NICs to spread network traffic on different queues.
6.PP
7Example:
8.PP
9iptables \-t nat \-A PREROUTING \-p tcp \-\-dport 80 \-m cpu \-\-cpu 0 
10\-j REDIRECT \-\-to\-port 8080
11.PP
12iptables \-t nat \-A PREROUTING \-p tcp \-\-dport 80 \-m cpu \-\-cpu 1 
13\-j REDIRECT \-\-to\-port 8081
14.PP
15Available since Linux 2.6.36.
16