Manual:IP/Settings: Difference between revisions

From MikroTik Wiki
Jump to navigation Jump to search
Created page with "{{Versions| v6+}} __TOC__ ==Summary== <p id="shbox"><b>Sub-menu:</b> <code>/ip settings</code></p> IP Settings allows to configure several IP related kernel parameters. ..."
 
Line 24: Line 24:
|arg=accept-redirects
|arg=accept-redirects
|type=yes {{!}} no
|type=yes {{!}} no
|default=yes
|default=no
|desc=Whether to accept ICMP redirect messages.
|desc=Whether to accept ICMP redirect messages.
Typically should be enabled on host and disabled on routers.
Typically should be enabled on host and disabled on routers.
Line 33: Line 33:
|arg=accept-source-route
|arg=accept-source-route
|type=yes {{!}} no
|type=yes {{!}} no
|default=
|default=no
|desc=Whether to accept packets with SRR option.
|desc=Whether to accept packets with SRR option.
Typically should be enabled on router.
Typically should be enabled on router.
Line 47: Line 47:
{{Mr-arg-table
{{Mr-arg-table
|arg=rp_filter
|arg=rp_filter
|type=integer [0..2]
|type=loose {{!}} no {{!}} strict
|default=0
|default=no
|desc=Disables enables source validation.
|desc=Disables enables source validation.
* 0 - No source validation.
* no - No source validation.
* 1 - Strict mode as defined in RFC3704 Strict Reverse Path. Each incoming packet is tested against the FIB and if the interface is not the best reverse path the packet check will fail. By default failed packets are discarded.
* strict - Strict mode as defined in RFC3704 Strict Reverse Path. Each incoming packet is tested against the FIB and if the interface is not the best reverse path the packet check will fail. By default failed packets are discarded.
* 2 - Loose mode as defined in RFC3704 Loose Reverse Path. Each incoming packet's source address is also tested against the FIB and if the source address is not reachable via any interface the packet check will fail.
* loose - Loose mode as defined in RFC3704 Loose Reverse Path. Each incoming packet's source address is also tested against the FIB and if the source address is not reachable via any interface the packet check will fail.


Current recommended practice in RFC3704 is to enable strict mode to prevent IP spoofing from DDos attacks. If using asymmetric routing or other complicated routing, then loose mode is recommended.
Current recommended practice in RFC3704 is to enable strict mode to prevent IP spoofing from DDos attacks. If using asymmetric routing or other complicated routing, then loose mode is recommended.

Revision as of 11:26, 26 October 2012

Applies to RouterOS: v6+

Summary

Sub-menu: /ip settings


IP Settings allows to configure several IP related kernel parameters.



Properties

Property Description
accept-redirects (yes | no; Default: no) Whether to accept ICMP redirect messages. Typically should be enabled on host and disabled on routers.
accept-source-route (yes | no; Default: no) Whether to accept packets with SRR option. Typically should be enabled on router.
ip-forwarding (yes | no; Default: yes) Emable/disable packet forwarding between interfaces. Resets all configuration parameters to defaults according to RFC1812 for routers.
rp_filter (loose | no | strict; Default: no) Disables enables source validation.
  • no - No source validation.
  • strict - Strict mode as defined in RFC3704 Strict Reverse Path. Each incoming packet is tested against the FIB and if the interface is not the best reverse path the packet check will fail. By default failed packets are discarded.
  • loose - Loose mode as defined in RFC3704 Loose Reverse Path. Each incoming packet's source address is also tested against the FIB and if the source address is not reachable via any interface the packet check will fail.
Current recommended practice in RFC3704 is to enable strict mode to prevent IP spoofing from DDos attacks. If using asymmetric routing or other complicated routing, then loose mode is recommended.
secure-redirects (yes | no; Default: yes) Accept ICMP redirect messages only for gateways, listed in default gateway list.
send-redirects (yes | no; Default: yes) Whether to send ICMP redirects. Recommended to be enabled on routers.
tcp_syncookies (yes | no; Default: no)


[ Top | Back to Content ]