How can we help?

Transparent Proxy Setup


Setting up Transparent Proxy on Netsweeper

Use this quick setup guide to configure the nsproxy.conf and the iptables.conf to enable transparent filtering through Netsweeper.



Using your preferred text editor, open the NSProxy configuration file.



Next, locate the listening rules within the file, and modify as shown below.

listen http 31281
listen https 31282

Save and quit

systemctl restart nsproxyctl


If you follow the set of commands below, you will be backing up the iptables file, then copying and renaming the iptables.example to replace the iptables file.

cp /etc/sysconfig/iptables iptables.backup
cp /usr/local/netsweeper/etc/iptables.example /etc/sysconfig/iptables

Confirm by pressing (Y)


Add the below to the bottom of the new Iptables file.

-A PREROUTING -p tcp -m tcp ! -d ip.of.webadmin --dport 80 -j REDIRECT --to-port 31281
-A PREROUTING -p tcp -m tcp ! -d ip.of.webadmin --dport 443 -j REDIRECT --to-port 31282

Save and quit

systemctl restart iptables.

NOTE - ! -d ip.of.webadmin - As the iptables act as a firewall, you are making a rule that says NOT Domain ip.of.webadmin


Further information on this topic can also be found in our NSProxy Configuration documentation.


Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request