I'm trying to configure iptables to get Redsocks working {purpose is to get system wide socks proxy}#!/bin/bash# Create new chainiptables -t nat -N REDSOCKSiptables -t nat -A REDSOCKS -d 0.0.0.0/8 -j RETURNiptables -t nat -A REDSOCKS -d 10.0.0.0/8 -j RETURNiptables -t nat -A REDSOCKS -d 127.0.0.0/8 -j RETURNiptables -t nat -A REDSOCKS -d 169.254.0.0/16 -j RETURNiptables -t nat -A REDSOCKS -d 172.16.0.0/12 -j RETURNiptables -t nat -A REDSOCKS -d 192.168.0.0/16 -j RETURNiptables -t nat -A REDSOCKS -d 224.0.0.0/4 -j RETURNiptables -t nat -A REDSOCKS -d 240.0.0.0/4 -j RETURNiptables -t nat -A REDSOCKS -p tcp -j REDIRECT --to-ports 8888iptables -t nat -A OUTPUT -p tcp -m owner --uid-owner USER -j REDSOCKSI get the following iptables: No chain/target/match by that name.iptables: No chain/target/match by that name.i think what causes this is -j REDIRECT --to-ports e.g when i try iptables -t nat -A OUTPUT -p tcp -j REDIRECT --to-port 8888still gives me thatAnd using this i can get redsocks work but it redirects everything to 127.0.0.1:8888 , e.g when i open google.com it goes to 127.0.0.1:8888 but url stays google.com#!/bin/bashiptables -t nat -N REDSOCKSiptables -t nat -A REDSOCKS -d 0.0.0.0/8 -j RETURNiptables -t nat -A REDSOCKS -d 10.0.0.0/8 -j RETURNiptables -t nat -A REDSOCKS -d 127.0.0.0/8 -j RETURNiptables -t nat -A REDSOCKS -d 169.254.0.0/16 -j RETURNiptables -t nat -A REDSOCKS -d 172.16.0.0/12 -j RETURNiptables -t nat -A REDSOCKS -d 192.168.0.0/16 -j RETURNiptables -t nat -A REDSOCKS -d 224.0.0.0/4 -j RETURNiptables -t nat -A REDSOCKS -d 240.0.0.0/4 -j RETURNiptables -t nat -A REDSOCKS -p tcp -o eth0 -j DNAT --to 127.0.0.1:8888iptables -t nat -A OUTPUT -p tcp -j REDSOCKSand here is my redsocks.confbase {        log_debug = on;        log_info = on;        daemon = on;        log = file:redsocks.log;        redirector = iptables;}redsocks {        local_ip = 127.0.0.1;        local_port = 12345;        ip = 127.0.0.1;        port = 8888;        type = socks5;}
iptables: No chain/target/match by that name
iptables