From: Subject: Solaris: Network Settings for Security Date: Wed, 14 Nov 2001 08:37:21 +0100 MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_NextPart_000_003D_01C16CE7.93E1D2A0"; type="text/html" X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 This is a multi-part message in MIME format. ------=_NextPart_000_003D_01C16CE7.93E1D2A0 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Content-Location: http://ist.uwaterloo.ca/security/howto/2000-06-29.html Solaris: Network Settings for Security

Solaris: Network Settings for Security

Information Systems and Technology
University of Waterloo=20
29-Jun-2000

3D[IST]=20

Synopsis

In the Sun = BluePrints=20 OnLine paper Solaris = Operating=20 Environment Network Settings for Security (December 1999) = by=20 Keith Watson and Alex Noordergraaf there's an in depth discussion of = network=20 settings, exploits and configuration choices for Solaris. They provide = an nddconfig=20 shell script for integration into the Solaris boot sequence that = hardens a=20 number of network parameters to better protect your system from = various=20 attacks. We recommend that configuration.

Discussion

There are lots of nasty tricks to make life difficult for = systems=20 on the Internet. Watson and Noordergraaf's paper provides an in depth = analysis=20 of many attacks and is well worth reading -- if you have the time. For = those=20 who are after a capsule summary here's a few examples:=20

  • The ping(1) command is used to test network connectivity = -- it=20 sends a short message to a system which echoes it back to the = sender. The=20 "Ping of Death" attack requires that the target machine echo the = ping back=20 to everyone. Protecting against that attack on current Solaris = systems is a=20 simple ndd(1) configuration option.=20

  • A popular denial of service attack is to flood your system with=20 "half-open" connections. While you can't eliminate the vulnerability = a=20 simple ndd(1) configuration setting can reduce the risk. =

You may recall that there was quite fuss in the Spring of 2000 when = several=20 denial of service attacks were launched against several major web = sites. The=20 configuration settings Watson and Noordergraaf recommend go a long way = towards=20 helping Solaris systems survive such attacks.

Recommendation

The configuration supplied in the nddconfig=20 shell script works well on the few systems where we've installed it. = We would=20 encourage all Solaris sites to install as per the instructions in the = script:=20
  • Copy this=20 script to /etc/init.d and name it 'nddconfig'.=20
  • Create a hard link to /etc/init.d/nddconfig in = /etc/rc2.d=20 named 'S70nddconfig'.=20
  • Run the script as nddconfig start to make the settings = effective=20 immediately.
Some sites may wish to tailor the settings = for their=20 local needs. We've carefully read the script and see no reason to do = so.=20

Cautions and Beware

The script comes with a warning: "The settings included here = are=20 considered safe in terms of security. Some settings may not work in = your=20 environment." However, we have been running the configuration exactly = as=20 provided on personal Solaris 2.6 workstations for months with no ill = effects.=20 We've recently used the same configuration on two "back-room" secure = Oracle=20 servers and again we've seen no ill effects.=20

We are not aware of any problems at all! If you encounter = any=20 problems as a result of configuring your system as recommended we'd = like to=20 hear about them as would the authors of the original paper.=20

One caution: the script provided isn't a "magic = bullet" --=20 it won't make your network services completely secure. It catches=20 some problems but no doubt the clever hackers will discover = new ones=20 in due course.

References


(ed) 29-June-2000; Reg Quinton, Information Systems and Technology =
------=_NextPart_000_003D_01C16CE7.93E1D2A0 Content-Type: image/gif Content-Transfer-Encoding: base64 Content-Location: http://ist.uwaterloo.ca/ISTlogo.gif R0lGODlhYABfALMAAP///wAAAJ2dnYAGHPDm6F1dXSwsLNK3vKJJWkZGRv7+/saQmrNreIKCgpIq PeHM0CH5BAEAAAAALAAAAABgAF8AAAT+EMhJq7046827/2AojmRpnmiqrmzrvuZxbAoB3yAzT8ww MJPHAOHY4Y4SI2AxUCQHB6ZzCR0ikUKGDXCASoSL3rQHcAAzhMP2SmIOtorfhFnkaQcLjcMhZ48I CE0TCGcbBGsXe10Pfh0EOhMEPkonj10OD4iNFwd7A4wSCwdTKZKieJsbCAt7DqQuXT6gCpSpAAoO C4SaLWmgAEK/jWu4XpsMDo+8OIF5Eq9sTg5EdVcKrM22EmY+DNDMA8nI32wPZsJHgEXhBOTat3vL KQqBMgju2g9drDfF6O8UOmHDh4LAAoLvEARyoaAQQA7XaqFghfDhhUcM/oWQhMrih2v+PpyZIMDH oUcNgfZU9HBA40kLZm693KQPxQMG3jIcaMCTp4cHDwQIHSpgCwGiSJMOlXgCFx8EGQQEmBrAgKEC BqhqnbpD6tavXwtgu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_NextPart_000_003D_01C16CE7.93E1D2A0 Content-Type: image/jpeg Content-Transfer-Encoding: base64 Content-Location: http://ist.uwaterloo.ca/security/howto/images/back.jpg /9j/4AAQSkZJRgABAgEASABIAAD/7QG4UGhvdG9zaG9wIDMuMAA4QklNA+kAAAAAAHgAAwAAAEgA SAAAAAAC2gIo/+H/4gL5AkYDRwUoA/wAAgAAAEgASAAAAAAC2gIoAAEAAABkAAAAAQABAQEAAAAB Jw8AAQABAAAAAAAAAAAAAAAAAAIAGQGQAAAAAABAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA4 QklNA+0AAAAAABAASAAAAAEAAQBIAAAAAQABOEJJTQPzAAAAAAAIAAAAAAAAAAA4QklNJxAAAAAA AAoAAQAAAAAAAAACOEJJTQP1AAAAAABIAC9mZgABAGxmZgAGAAAAAAABAC9mZgABAKGZmgAGAAAA AAABADIAAAABAFoAAAAGAAAAAAABADUAAAABAC0AAAAGAAAAAAABOEJJTQP4AAAAAABwAAD///// ////////////////////////A+gAAAAA/////////////////////////////wPoAAAAAP////// //////////////////////8D6AAAAAD/////////////////////////////A+gAADhCSU0EBgAA AAAAAgAC/+4ADkFkb2JlAGSAAAAAAf/bAIQADAgICAkIDAkJDBELCgsRFQ8MDA8VGBMTFRMTGBEM DAwMDAwRDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAENCwsNDg0QDg4QFA4ODhQUDg4ODhQR DAwMDAwREQwMDAwMDBEMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM/8AAEQgAYABgAwEiAAIR AQMRAf/EAT8AAAEFAQEBAQEBAAAAAAAAAAMAAQIEBQYHCAkKCwEAAQUBAQEBAQEAAAAAAAAAAQAC AwQFBgcICQoLEAABBAEDAgQCBQcGCAUDDDMBAAIRAwQhEjEFQVFhEyJxgTIGFJGhsUIjJBVSwWIz NHKC0UMHJZJT8OHxY3M1FqKygyZEk1RkRcKjdDYX0lXiZfKzhMPTdePzRieUpIW0lcT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