This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
dumb_firewall [2010/11/24 13:10] kyxap создано |
dumb_firewall [2013/12/15 13:36] kyxap Page moved from stuff:iptables:dumb_firewall to iptables:dumb_firewall |
||
---|---|---|---|
Line 4: | Line 4: | ||
#!/bin/sh | #!/bin/sh | ||
- | iptables="/usr/sbin/iptables" | + | iptables="/sbin/iptables" |
WHITELIST="123.123.123.123 | WHITELIST="123.123.123.123 | ||
Line 25: | Line 25: | ||
# allow smtp, http | # allow smtp, http | ||
$iptables -A INPUT -p tcp -m multiport --dports 25,53,80 -j ACCEPT | $iptables -A INPUT -p tcp -m multiport --dports 25,53,80 -j ACCEPT | ||
- | $iptables -A INPUT -p udp -m multiport --dports 25,53,80 -j ACCEPT | + | $iptables -A INPUT -p udp -m multiport --dports 53 -j ACCEPT |