MRV Communications LX-4000 Series Información técnica Pagina 323

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 692
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 322
Configuring iptables and ip6tables
Configuring Packet Filters Using the iptables and ip6tables Commands 12-11
where
X To create a rule allow outbound connections to a
specific destination IP address
Use the
iptables
command. The following example creates a
rule that allows the LX unit to output packets to the
destination IP address
123.146.17.129
:
Example Config:0 >>
iptables -A OUTPUT -d 123.146.17.129 -j ACCEPT
Use the
ip6tables
command. The following example creates a
rule that allows the LX unit to output packets to the
destination IP address
123.146.17.129
:
Example Config:0 >>
ip6tables -A OUTPUT -d fe80::220:edff:febe:3cae
-j ACCEPT
where
-A Specifies that the rule is to be appended to the specified chain
(in this case, the INPUT chain).
See “Using iptables and ip6tables Command Options” on
page 12-13 for alternatives to the -A option.
-s Specifies that the rule applies to the specified source IP Address
(in this case, 10.240.10.240).
-j Specifies the action that is to be taken when a packet matching
this criteria is received. In this case, the packet is to be
dropped.
See “Using iptables and ip6tables Command Options” on
page 12-13 for a description of all of the allowable values (for
example, ACCEPT, DENY, or DROP) of the -j option.
-A Specifies that the rule is to be appended to the specified chain
(in this case, the OUTPUT chain).
See “Using iptables and ip6tables Command Options” on
page 12-13 for alternatives to the -A option.
-d Specifies that the rule applies to the specified destination IP
Address (in this case, 123.146.17.129).
-j Specifies the action that is to be taken when a packet matching
this criteria is received. In this case, the packet is to be
accepted.
See “Using iptables and ip6tables Command Options” on
page 12-13 for a description of all of the allowable values (for
example, ACCEPT, DENY, or DROP) of the -j option.
Vista de pagina 322
1 2 ... 318 319 320 321 322 323 324 325 326 327 328 ... 691 692

Comentarios a estos manuales

Sin comentarios