Netfilter Router on UserSpace
Install library libnetfilter-queue (Ubuntu 12.04):
$ sudo apt-get install libnetfilter-queue-dev libnetfilter-queue1
NetfilterQueue module install:
$ sudo apt-get install libnetfilter-queue-python python-scapy python-ipaddr
$ sudo pip install NetfilterQueue
$ iptables -t nat -A PREROUTING -j NFQUEUE --queue-num 0
$ cd /usr/local/pyNFRouter
$ python Main.py
[general]
logfile=/var/log/pyNFRouter/pyNFRouter.log
path=/usr/local/pyNFRouter
[queue0]
number=0
tablename=queue0
logqueue=/var/log/pyNFRouter/queue0.log