Le pare-feu du fichier par défaut

La valeur par défaut ufw vous avez besoin de pare-feu ajouter quelque chose

Ceci est le fichier / etc / default / ufw ufw règles d'exportation par défaut. De nombreux sites sont écrits, après l' installation d' un pare - feu, besoin d'augmenter
ufw interdiction par défaut entrant
ufw par défaut le permettent sortant

Il est nécessaire de faire, de voir les règles par défaut:

# Set to yes to apply rules to support IPv6 (no means only IPv6 on loopback
# accepted). You will need to 'disable' and then 'enable' the firewall for
# the changes to take affect.
IPV6=yes

# Set the default input policy to ACCEPT, DROP, or REJECT. Please note that if
# you change this you will most likely want to adjust your rules.
DEFAULT_INPUT_POLICY="DROP"

# Set the default output policy to ACCEPT, DROP, or REJECT. Please note that if
# you change this you will most likely want to adjust your rules.
DEFAULT_OUTPUT_POLICY="ACCEPT"

# Set the default forward policy to ACCEPT, DROP or REJECT.  Please note that
# if you change this you will most likely want to adjust your rules
DEFAULT_FORWARD_POLICY="DROP"

# Set the default application policy to ACCEPT, DROP, REJECT or SKIP. Please
# note that setting this to ACCEPT may be a security risk. See 'man ufw' for
# details
DEFAULT_APPLICATION_POLICY="SKIP"

# By default, ufw only touches its own chains. Set this to 'yes' to have ufw
# manage the built-in chains too. Warning: setting this to 'yes' will break
# non-ufw managed firewall rules
MANAGE_BUILTINS=no

#
# IPT backend
#
# only enable if using iptables backend
IPT_SYSCTL=/etc/ufw/sysctl.conf

# Extra connection tracking modules to load. Complete list can be found in
# net/netfilter/Kconfig of your kernel source. Some common modules:
# nf_conntrack_irc, nf_nat_irc: DCC (Direct Client to Client) support
# nf_conntrack_netbios_ns: NetBIOS (samba) client support
# nf_conntrack_pptp, nf_nat_pptp: PPTP over stateful firewall/NAT
# nf_conntrack_ftp, nf_nat_ftp: active FTP support
# nf_conntrack_tftp, nf_nat_tftp: TFTP support (server side)
IPT_MODULES="nf_conntrack_ftp nf_nat_ftp nf_conntrack_netbios_ns"

= DEFAULT_INPUT_POLICY « DROP »
DEFAULT_OUTPUT_POLICY = « ACCEPTER »
DEFAULT_APPLICATION_POLICY = « SKIP »
besoin d'augmenter spécifiquement l'entrée, la sortie de la règle par défaut, nous sommes tous répété l'affirmation sans fondement il, un guide expert nous, pourquoi ajouter:
ufw nier entrant
ufw le permet sortant

Publié 10 articles originaux · louanges gagnées 0 · Vues 137

Je suppose que tu aimes

Origine blog.csdn.net/misisippi68/article/details/105004383
conseillé
Classement