[or-cvs] r22438: {projects} add some stuff for transproxy (projects/android/trunk/Orbot/src/org/torproject/android/service)

Jacob Appelbaum jacob at appelbaum.net
Fri May 28 17:02:14 UTC 2010


Author: ioerror
Date: 2010-05-28 17:02:13 +0000 (Fri, 28 May 2010)
New Revision: 22438

Modified:
   projects/android/trunk/Orbot/src/org/torproject/android/service/TorTransProxy.java
Log:
add some stuff for transproxy

Modified: projects/android/trunk/Orbot/src/org/torproject/android/service/TorTransProxy.java
===================================================================
--- projects/android/trunk/Orbot/src/org/torproject/android/service/TorTransProxy.java	2010-05-28 16:47:45 UTC (rev 22437)
+++ projects/android/trunk/Orbot/src/org/torproject/android/service/TorTransProxy.java	2010-05-28 17:02:13 UTC (rev 22438)
@@ -20,7 +20,7 @@
 
 	private final static String IPTABLES_ADD = " -A ";
 	private final static String IPTABLES_DELETE = " -D ";
-
+    private final static String IPTABLES_DROP_ALL = " -j DROP ";
 	private static boolean hasRoot = false;
 	
 	/**
@@ -57,7 +57,23 @@
     	
     	
 	}
-	
+
+    /*
+    public static int setIptablesDropAll() {
+        // iptables -A OUTPUT -j DROP
+    }
+
+    public static int setTransparentProxying() {
+        // Flush everything from iptables first
+        purgeNatIptables();
+        // Setup DNS redirection
+        setDNSProxying();
+        //
+
+        //
+    }
+    */
+
 	public static boolean purgeNatIptables() {
     	StringBuilder res = new StringBuilder();
 		try {



More information about the tor-commits mailing list