summaryrefslogtreecommitdiff
path: root/ipmasq/rules/A01interfaces.rul
blob: 3ce53daa959139b57022978c80813feed5ce7165 (plain)
  1. # You should not edit this file. Instead, create a file with the same
  2. # name as this one, but with a .rul extension instead of .def. The
  3. # .rul file will override this one.
  4. #
  5. # However, any changes you make to this file will be preserved.
  6. # find interface names
  7. EXTERNAL=$(default-if | sort -u)
  8. INTERNAL=$(enumerate-if | sort -u | grep -v lo | grep -v irda | grep -v ipsec)
  9. if [ -n "$EXTERNAL" ]; then
  10. for i in $EXTERNAL; do
  11. INTERNAL=$(echo $INTERNAL | sed -e s/$i//)
  12. done
  13. fi
  14. IPSEC=$(enumerate-if | sort -u | grep ipsec)