File: iptables.sample

package info (click to toggle)
serverstats 0.8.2-10
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 604 kB
  • ctags: 796
  • sloc: php: 4,238; perl: 90; sh: 15; makefile: 12
file content (8 lines) | stat: -rw-r--r-- 307 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
# Log WWW-Traffic and accept it
iptables -N WWW
iptables -A INPUT -p tcp -m tcp --dport 80 -j WWW
iptables -A OUTPUT -p tcp -m tcp --sport 80 -j WWW
iptables -A WWW -j ACCEPT
# additional rules for HTTPS
iptables -A INPUT -p tcp -m tcp --dport 443 -j WWW
iptables -A OUTPUT -p tcp -m tcp --sport 443 -j WWW