Linux Server Update

I just about have this thing running the way I need it to.

My requirement (desired endstate) was to have a Linux server that I could use for multiple training courses. Specifically CCNP, Cisco ASA, and Voice over IP.

The server is configured to provide a bunch of different services, all for IPv4 and IPv6

  1. SYSLOG reception
  2. RADIUS authentication
  3. TACACS+ authentication and authorization
  4. Secure and Non-Secure Web Server (80, 8080, 443, and 8443)
  5. FTP Server
  6. TFTP Server
  7. DHCP Server
  8. Wireshark protocol analysis
  9. NETFLOW collection

I still have to work out a few little things

  1. SNMPv2 and v3 manager service (need polling and trap reception capability)
  2. NSEL collection (this is proving difficult to do with Linux; NSEL or NETFLOW Security Event Logging, is specific to Cisco’s ASA and NETFLOW v9. None of the FOSS options seem to *really* support it)
  3. Whether to use DNS or not. In CCNP it’s easy because the networks are isolated; in the other classes, the networks touch each other. I might be able to script it…

One of things I really worked hard on was making the server generally usable by a non-Linux user.

The biggest chunk of work I did was to write and re-write a bash script to set the addressing information and start/stop DHCP as appropriate for the particular lab being worked on.

So over the next few… time periods… I will post individual entries on the setup and configuration of each of the services.

Happy New Year

2015. School (college) starts in 6 days. Also have full intentions of building a one-size-fits-almost-everything linux server.

Additionally plan on VCP-DCV this year, and a Cisco cert of some type to renew everything.

Gonna be busy!

More Windows 7 NETSH CLI

Setting an IPv6 address from Administrative CLI:

netsh interface ipv6 set address "Local Area Connection" [address] unicast

The network space seems to automatically be included in the routing table as ‘on-link’. Also in the routing table is a route to unspecified (::1/128) with the gateway ‘on-link’.

Windows 7 NETSH CLI

Flipping between static addresses and dhcp addresses is a pain… right-click, click, click, double-click, type, type, type, type…. etc.

So – to change the address on the windows box using NETSH —

First, You must have an ADMINISTRATIVE command line (Start > Accessories > Command Line [right click select “run as administrator”]

To set a static ipv4 address:

netsh interface ipv4 set address name="Local Area Connection" static [IP] [mask] [gateway]

To set to use DHCP:

netsh interface ipv4 set address name="Local Area Connection" source=dhcp

And DONE

This works very well in a single-threaded virtual machine.

Windows 7 Network Interfaces

I can’t stand it when Windows 7 (and others I’m sure) default to having a crap-ton of software interfaces … just because there are a crap ton of physical interfaces on the machine. I’m not going to use 6to4 or Teredo, so why does the output of ipconfig have to have them listed?!?

So, to turn all that stuff off:

netsh interface ipv6 isatap set state disable
netsh interface ipv6 6to4 set state disable
netsh interface teredo set state disable

Windows 7 and IPv6

I was presented with a particular problem (DHCPv6 and Windows 7) and had to do some learning.

Practical IPv6 for Windows Administrators by Ed Horley was VERY helpful.

So the things to remember

Temporary addresses WILL be formulated if either:

a) The A flag is ON in Router Advertisements. To turn the A flag off, use the command

ipv6 nd prefix [applicable prefix/cidr] no auto-config

on the advertising interface

b) Privacy extensions are enabled on the windows machine. To turn them off, use the commands

netsh interface ipv6 set privacy state=disabled store=active
netsh interface ipv6 set privacy state=disabled store=persistent

This only turns off temporary addresses, NOT the randomized identifiers. To turn those off, use the commands

netsh interface ipv6 set global randomizeidentifiers=disabled store=active
netsh interface ipv6 set global randomizeidentifiers=disabled store=persistent