summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorRobert "ar" Gerus <ar@bash.org.pl>2013-03-12 16:15:01 +0100
committerRobert "ar" Gerus <ar@bash.org.pl>2013-03-12 16:15:01 +0100
commit15156bc1cbbd0680abd0d77a20d0dedfffc8b1ed (patch)
treed335a012e85c0e5a4afb47c2c26973d46da9fbe4 /rules
parent65fa267c2f553eea8199af240577f072b7b3b742 (diff)
downloadold-firewall-15156bc1cbbd0680abd0d77a20d0dedfffc8b1ed.tar.gz
old-firewall-15156bc1cbbd0680abd0d77a20d0dedfffc8b1ed.tar.bz2
old-firewall-15156bc1cbbd0680abd0d77a20d0dedfffc8b1ed.tar.xz
old-firewall-15156bc1cbbd0680abd0d77a20d0dedfffc8b1ed.zip
fukitol.
Diffstat (limited to 'rules')
-rw-r--r--rules/04-kasha-local-connections2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/04-kasha-local-connections b/rules/04-kasha-local-connections
index 4cb9f26..007eac8 100644
--- a/rules/04-kasha-local-connections
+++ b/rules/04-kasha-local-connections
@@ -1,5 +1,7 @@
#!/bin/bah
rules() {
+ iptables -t filter $flag INPUT -i lo -j ACCEPT
+ iptables -t filter $flag OUTPUT -o lo -j ACCEPT
iptables -t filter $flag OUTPUT -s 127.0.0.0/8 -d 127.0.0.0/8 -p tcp -m tcp --sport 53 -j ACCEPT
iptables -t filter $flag OUTPUT -s 127.0.0.0/8 -d 127.0.0.0/8 -p udp -m udp --sport 53 -j ACCEPT
iptables -t filter $flag INPUT -s 127.0.0.0/8 -d 127.0.0.0/8 -p tcp -m tcp --dport 53 -j ACCEPT