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:
18b341c
)
radius.m4: Forbid traffic directly to the NAT address.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 6 Mar 2012 10:42:58 +0000
(10:42 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 6 Mar 2012 10:42:58 +0000
(10:42 +0000)
It should only be for forwarded traffic.
radius.m4
patch
|
blob
|
blame
|
history
diff --git
a/radius.m4
b/radius.m4
index 7f0dc2ce24b1ce17861e152934211887ba88d98f..e5438786d9d4a8ddb8be3b6f3406d08d3222d73d 100644
(file)
--- a/
radius.m4
+++ b/
radius.m4
@@
-69,5
+69,8
@@
run iptables -t nat -A outbound -j RETURN -d 172.29.198.0/23
run iptables -t nat -A outbound -j SNAT --to-source 62.49.204.158
run iptables -t nat -A POSTROUTING -j outbound
+## Forbid anything complicated to the NAT address.
+run iptables -A INPUT -d 62.49.204.158 ! -p icmp -j REJECT
+
m4_divert(-1)
###----- That's all, folks --------------------------------------------------