summaryrefslogtreecommitdiff
path: root/package/transproxy/patches/patch-tproxyrun
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2012-10-24 09:31:34 +0200
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2012-10-24 09:31:34 +0200
commitf2a1d214b781e30e20b5f0750f3921cb19aaa379 (patch)
tree27d68bf9107edb915dee368f392da51c0dec130d /package/transproxy/patches/patch-tproxyrun
parent2ea9b0d3dfda3a881c87afc00727ef7dc7de93da (diff)
new package: transproxy
Diffstat (limited to 'package/transproxy/patches/patch-tproxyrun')
-rw-r--r--package/transproxy/patches/patch-tproxyrun29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/transproxy/patches/patch-tproxyrun b/package/transproxy/patches/patch-tproxyrun
new file mode 100644
index 000000000..b04e524d7
--- /dev/null
+++ b/package/transproxy/patches/patch-tproxyrun
@@ -0,0 +1,29 @@
+--- transproxy-1.6.orig/tproxyrun 2004-03-31 14:19:34.000000000 +0200
++++ transproxy-1.6/tproxyrun 2012-10-24 09:06:52.000000000 +0200
+@@ -50,7 +50,7 @@ Linux)
+ # I really have no idea about Linux, are these kernel versions correct
+ # for the type if network filtering supported? Is there a surefire way?
+ case `uname -r` in
+- 2.[3456789].*)
++ 3.*|2.[3456789].*)
+ iptables -t nat -A PREROUTING -p tcp -d localhost --dport 80 -j ACCEPT
+ iptables -t nat -A PREROUTING -p tcp -d "$HOSTNAME1" --dport 80 -j ACCEPT
+ if [ -n "$HOSTNAME2" ]; then
+@@ -106,7 +106,7 @@ if [ -n "$FORCE_URL" ]; then
+ fi
+
+ # Start transproxy running.
+-/usr/local/sbin/tproxy -s "$TRANSPROXYPORT" -d $CMD "$PROXYNAME" "$PROXYPORT"
++/usr/sbin/tproxy -s "$TRANSPROXYPORT" -d $CMD "$PROXYNAME" "$PROXYPORT"
+
+ # Remove the filter rules.
+ case `uname` in
+@@ -121,7 +121,7 @@ FreeBSD)
+ ;;
+ Linux)
+ case `uname -r` in
+- 2.[3456789].*)
++ 3.*|2.[3456789].*)
+ iptables -t nat -D PREROUTING -p tcp -d localhost --dport 80 -j ACCEPT
+ iptables -t nat -D PREROUTING -p tcp -d "$HOSTNAME1" --dport 80 -j ACCEPT
+ if [ -n "$HOSTNAME2" ]; then