chiark
/
gitweb
/
~mdw
/
firewall
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2d80d32
)
local.m4: We don't have an untrusted network.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 11 May 2015 14:16:48 +0000
(15:16 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 11 May 2015 14:16:48 +0000
(15:16 +0100)
local.m4
patch
|
blob
|
blame
|
history
diff --git
a/local.m4
b/local.m4
index 37da67a788048cb3a48d5969601d8f1ebc7cbf79..f0702c3f01f664263120e9f2140768132902ca7e 100644
(file)
--- a/
local.m4
+++ b/
local.m4
@@
-153,16
+153,6
@@
openports inbound
run ip46tables -A inbound -j forbidden
run ip46tables -A INPUT -m mark --mark $from_untrusted/$MASK_FROM -g inbound
run ip46tables -A inbound -j forbidden
run ip46tables -A INPUT -m mark --mark $from_untrusted/$MASK_FROM -g inbound
-## Allow responses from the scary outside world into the untrusted net, but
-## don't let untrusted things run services.
-case $forward in
- 1)
- run ip46tables -A FORWARD -j ACCEPT \
- -m mark --mark $to_untrusted/$(( $MASK_FROM | $MASK_TO )) \
- -m state --state ESTABLISHED,RELATED
- ;;
-esac
-
## Otherwise process as indicated by the mark.
for i in $inchains; do
run ip46tables -A $i -m mark ! --mark 0/$MASK_MASK -j ACCEPT
## Otherwise process as indicated by the mark.
for i in $inchains; do
run ip46tables -A $i -m mark ! --mark 0/$MASK_MASK -j ACCEPT