You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# First we added a new chain called 'REDSOCKS' to the 'nat' table.
iptables -t nat -N REDSOCKS
# Next we used "-j RETURN" rules for the networks we don’t want to use a proxy.
whileread item;do
iptables -t nat -A REDSOCKS -d $item -j RETURN
done< /etc/redsocks-whitelist.txt
# We then told iptables to redirect all port 80 connections to the http-relay redsocks port and all other connections to the http-connect redsocks port.