Skip Navigation Links | |
Exit Print View | |
Securing the Network in Oracle Solaris 11.1 Oracle Solaris 11.1 Information Library |
1. Using Link Protection in Virtualized Environments
Configuring Link Protection (Task Map)
How to Disable Link Protection
How to Specify IP Addresses to Protect Against IP Spoofing
How to Specify DHCP Clients to Protect Against DHCP Spoofing
2. Tuning Your Network (Tasks)
3. Web Servers and the Secure Sockets Layer Protocol
4. IP Filter in Oracle Solaris (Overview)
6. IP Security Architecture (Overview)
8. IP Security Architecture (Reference)
9. Internet Key Exchange (Overview)
To use link protection, you set the protection property of the link. If the type of protection works with other configuration files, such as ip-nospoof with allowed-ips or dhcp-nospoof with allowed-dhcp-cids, then you perform two general actions. First, you enable link protection. Then, you customize the configuration file to identify other packets that are allowed to pass.
Note - You must configure link protection in the global zone.
The following task map points to the procedures for configuring link protection on an Oracle Solaris system.
|
This procedure restricts outgoing packet types and prevents the spoofing of links.
Before You Begin
You must become an administrator who is assigned the Network Link Security rights profile. For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.
# dladm show-linkprop -p protection LINK PROPERTY PERM VALUE DEFAULT POSSIBLE vnic0 protection rw -- -- mac-nospoof, restricted, ip-nospoof, dhcp-nospoof
For a description of the possible types, see Link Protection Types and the dladm(1M) man page.
# dladm set-linkprop -p protection=value[,value,...] link
In the following example, all four link protection types on the vnic0 link are enabled:
# dladm set-linkprop \ -p protection=mac-nospoof,restricted,ip-nospoof,dhcp-nospoof vnic0
# dladm show-linkprop -p protection vnic0 LINK PROPERTY PERM VALUE DEFAULT POSSIBLE vnic0 protection rw mac-nospoof -- mac-nospoof, restricted restricted, ip-nospoof ip-nospoof, dhcp-nospoof dhcp-nospoof
The link protection type under VALUE indicates that protection is enabled.
This procedure resets link protection to the default value, no link protection.
Before You Begin
You must become an administrator who is assigned the Network Link Security rights profile. For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.
# dladm reset-linkprop -p protection link
# dladm show-linkprop -p protection vnic0 LINK PROPERTY PERM VALUE DEFAULT POSSIBLE vnic0 protection rw -- -- mac-nospoof, restricted, ip-nospoof, dhcp-nospoof
No listing of a link protection type under VALUE indicates that link protection is disabled.
Before You Begin
The ip-nospoof protection type is enabled, as shown in How to Enable Link Protection.
You must become an administrator who is assigned the Network Link Security rights profile. For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.
# dladm show-linkprop -p protection link LINK PROPERTY PERM VALUE DEFAULT POSSIBLE link protection rw ... ip-nospoof ip-nospoof
The listing of ip-nospoof under VALUE indicates that this protection type is enabled.
# dladm set-linkprop -p allowed-ips=IP-addr[,IP-addr,...] link
The following example shows how to add the IP addresses 10.0.0.1 and 10.0.0.2 to the allowed-ips property for the vnic0 link:
# dladm set-linkprop -p allowed-ips=10.0.0.1,10.0.0.2 vnic0
For more information, see the dladm(1M) man page.
Before You Begin
The dhcp-nospoof protection type is enabled, as shown in How to Enable Link Protection.
You must become an administrator who is assigned the Network Link Security rights profile. For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.
# dladm show-linkprop -p protection link LINK PROPERTY PERM VALUE DEFAULT POSSIBLE link protection rw ... dhcp-nospoof dhcp-nospoof
The listing of dhcp-nospoof under VALUE indicates that this protection type is enabled.
# dladm set-linkprop -p allowed-dhcp-cids=CID-or-DUID[,CID-or-DUID,...] link
The following example shows how to specify the string hello as the value for the allowed-dhcp-cids property for the vnic0 link:
# dladm set-linkprop -p allowed-dhcp-cids=hello vnic0
For more information, see the dladm(1M) man page.
Before You Begin
You must become an administrator who is assigned the Network Link Security rights profile. For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.
# dladm show-linkprop -p protection,allowed-ips,allowed-dhcp-cids link
The following example shows the values for the protection, allowed-ips, and allowed-dhcp-cids properties for the vnic0 link:
# dladm show-linkprop -p protection,allowed-ips,allowed-dhcp-cids vnic0 LINK PROPERTY PERM VALUE DEFAULT POSSIBLE vnic0 protection rw mac-nospoof -- mac-nospoof, restricted restricted, ip-nospoof ip-nospoof, dhcp-nospoof dhcp-nospoof vnic0 allowed-ips rw 10.0.0.1, -- -- 10.0.0.2 vnic0 allowed-dhcp-cids rw hello -- --
Note - The allowed-ips property is used only if ip-nospoof is enabled, as listed under VALUE. The allowed-dhcp-cids property is used only if dhcp-nospoof is enabled.
The output of the dlstat command is committed, so this command is suitable for scripts.
# dlstat -A ... vnic0 mac_misc_stat multircv 0 brdcstrcv 0 multixmt 0 brdcstxmt 0 multircvbytes 0 bcstrcvbytes 0 multixmtbytes 0 bcstxmtbytes 0 txerrors 0 macspoofed 0 <---------- ipspoofed 0 <---------- dhcpspoofed 0 <---------- restricted 0 <---------- ipackets 3 rbytes 182 ...
The output indicates that no spoofed or restricted packets have attempted to pass through.
You might use the kstat command, but its output is not committed. For example, the following command finds the dhcpspoofed statistics:
# kstat vnic0:0:link:dhcpspoofed module: vnic0 instance: 0 name: link class: vnic dhcpspoofed 0
For more information, see the dlstat(1M) and kstat(1M) man pages.