File: 01_loopback.py

package info (click to toggle)
pyroman 0.5.0~alpha1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 400 kB
  • sloc: python: 1,653; xml: 88; sh: 59; makefile: 2
file content (6 lines) | stat: -rw-r--r-- 212 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
"""
We don't want to have any restrictions on the loopback interface,
and want to have the allow rules early in the firewall rules
"""
ipXtables("INPUT", "-i lo -j ACCEPT")
ipXtables("OUTPUT", "-o lo -j ACCEPT")