Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) adding configuration option for transparent proxy support

thelicfe3d7e640f1
diff --git a/yacy.init b/yacy.init
index 8605f8ae7..250ebbade 100644
--- a/yacy.init
+++ b/yacy.init
@@ -416,3 +416,17 @@ ramCacheWiki = 8192
# may last for the word flush
wordCacheMax = 10000
maxWaitingWordFlush = 180
+
+# Specifies if yacy can be used as transparent http proxy.
+#
+# Please note that you also have to reconfigure your firewall
+# before you can use yacy as transparent proxy. On linux this
+# can be done like this:
+# iptables -t nat -A PREROUTING -p tcp -s 192.168.0.0/16 \
+# --dport 80 -j DNAT --to 192.168.0.1:8080
+#
+# With this iptables filter listed above all http traffic that
+# comes from your private network (in this case 192.168.0.0)
+# and goes to any webserver listening on port 80 will be forwarded
+# by the firewall to yacy running on port 8080 (192.168.0.1:8080)
+isTransparentProxy=false