projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
91a054c
)
* applications/luci-fw: Fixed initscript
author
Steven Barth
<steven@midlink.org>
Wed, 14 May 2008 20:16:56 +0000
(20:16 +0000)
committer
Steven Barth
<steven@midlink.org>
Wed, 14 May 2008 20:16:56 +0000
(20:16 +0000)
applications/luci-fw/root/etc/init.d/luci_fw
patch
|
blob
|
history
diff --git
a/applications/luci-fw/root/etc/init.d/luci_fw
b/applications/luci-fw/root/etc/init.d/luci_fw
index
51faef9
..
5f09b52
100644
(file)
--- a/
applications/luci-fw/root/etc/init.d/luci_fw
+++ b/
applications/luci-fw/root/etc/init.d/luci_fw
@@
-59,14
+59,14
@@
apply_routing() {
config_get ifmask "$iface" netmask
eval "$(ipcalc.sh $ifip $ifmask)"
config_get ifmask "$iface" netmask
eval "$(ipcalc.sh $ifip $ifmask)"
- iptables -t nat -A luci_f
reifunk_postrouting -s "$NETWORK/$PREFIX" -o "$ofac
e" -j MASQUERADE
+ iptables -t nat -A luci_f
w_postrouting -s "$NETWORK/$PREFIX" -o "$ofnam
e" -j MASQUERADE
[ "$bidi" -gt 0 ] && {
config_get ofip "$oface" ipaddr
config_get ofmask "$oface" netmask
eval "$(ipcalc.sh $ofip $ofmask)"
[ "$bidi" -gt 0 ] && {
config_get ofip "$oface" ipaddr
config_get ofmask "$oface" netmask
eval "$(ipcalc.sh $ofip $ofmask)"
- iptables -t nat -A luci_f
reifunk_postrouting -s "$NETWORK/$PREFIX" -o "$iface" -j MASQUERADE
+ iptables -t nat -A luci_f
w_postrouting -s "$NETWORK/$PREFIX" -o "$ifname" -j MASQUERADE
}
}
}
}
}
}