Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quick Mesh Project
qMp packages
Commits
20b2fe02
Commit
20b2fe02
authored
Jun 16, 2012
by
Simó Albert i Beltran
Browse files
sed -i -e 's/\s\+$//g' packages/qmp-tinyproxy/files/tinyproxy.init
parent
d3e22029
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/qmp-tinyproxy/files/tinyproxy.init
View file @
20b2fe02
...
...
@@ -157,16 +157,16 @@ PRIVATE_NETWORKS="$IPLOCAL 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16"
case
$1
in
stop
)
iptables
-t
nat
-D
PREROUTING
-i
br-lan
-j
captive-portal
iptables
-t
nat
-D
PREROUTING
-i
br-lan
-j
captive-portal
iptables
-t
nat
-F
captive-portal
iptables
-t
nat
-X
cpative-portal
;;
start
)
start
)
iptables
-t
nat
-N
captive-portal
iptables
-t
nat
-I
PREROUTING
-i
br-lan
-j
captive-portal
for
i
in
$PRIVATE_NETWORKS
do
for
i
in
$PRIVATE_NETWORKS
do
iptables
-t
nat
-I
captive-portal
-d
${
i
}
-j
RETURN
done
iptables
-t
nat
-A
captive-portal
-p
tcp
--destination-port
80
-j
DNAT
--to-destination
${
IPLOCAL
}
:8888
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment