Hello and welcome to CertForums.co.uk, here we host free active certification forums with links to the best free resources for Microsoft's MCSA MCSE MCDBA Cisco's CCNA CCDA and CCNP, and CompTIA's A+ Network+ i-NET+ and Security+ certifications in the UK. If you wish to post or use other advanced features you will need to register first. Registration is absolutely free and takes only a few minutes to complete so sign up today!

If you have any problems with the registration process or your account login, please contact support

Go Back   CertForums > Certification Forums > Cisco Certification Forums > Network Security
Home Forums Register Search Today's Posts Mark Forums Read

CISCO 837 CONFIG NEEDS SECURING

Post New ThreadReply
 
Thread Tools Display Modes
  #1  
Old 27-Oct-2007, 11:49 AM
gillz gillz is offline
New Member
Posts: 9
Points: 0 gillz has no points
Power: 2
None
Join Date: 22 Oct 2007
CISCO 837 CONFIG NEEDS SECURING

Hi All,

I need some help in securing my 837 configuration; I've searched around and have added a few things to lock the router down further. I seem to have a problem applying access lists to the Dialer interface, for example blocking RFC1918 ranges to prevent ant-spoofing. Although the access list is accepted by the IOS as soon as it’s applied I lose my internet access????? If anyone can point out where I can lock the device down further it would be appreciated. I'm new the IOS so any assistance would make me less paranoid when using this router.

Building configuration...

Current configuration : 2322 bytes
!
version 12.3
no service pad
service tcp-keepalives-in
service tcp-keepalives-out
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname cs837
!
enable secret 5 xxxxxxxxxxxxxx
!
no aaa new-model
ip subnet-zero
ip domain name yourdomain.com
ip name-server x.x.x.x
ip name-server x.x.x.x
ip dhcp excluded-address 10.10.10.1
!
ip dhcp pool home-pool
import all
--More--   network 10.10.10.0 255.255.255.0
default-router 10.10.10.1
dns-server x.x.x.x x.x.x.x
!
!
ip audit notify log
ip audit po max-events 100
no ftp-server write-enable
!
!
!
!
!
!
!
interface Ethernet0
description Ethernet
ip address 10.10.10.1 255.255.255.0
ip access-group 100 in
no ip redirects
no ip unreachables
no ip proxy-arp
ip nat inside
hold-queue 100 out
--More--  !
interface ATM0
no ip address
no ip redirects
no ip unreachables
no ip proxy-arp
ip route-cache flow
no atm ilmi-keepalive
pvc 0/38
encapsulation aal5mux ppp dialer
dialer pool-member 1
!
dsl operating-mode auto
!
interface FastEthernet1
no ip address
duplex auto
speed auto
!
interface FastEthernet2
no ip address
duplex auto
speed auto
!
--More--  interface FastEthernet3
no ip address
duplex auto
speed auto
!
interface FastEthernet4
no ip address
duplex auto
speed auto
!
interface Dialer0
ip address negotiated
ip access-group 111 in
no ip redirects
no ip unreachables
no ip proxy-arp
ip nat outside
encapsulation ppp
dialer pool 1
dialer-group 1
no cdp enable
ppp authentication chap callin
ppp chap hostname xxxxxxxxxxx
ppp chap password 0 xxxxxxxxxx
 !
ip nat inside source list 1 interface Dialer0 overload
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer0
no ip http server
no ip http secure-server
!
access-list 1 permit 10.10.10.0 0.0.0.255
access-list 100 remark lan access to router
access-list 100 deny udp any eq netbios-ns any
access-list 100 deny udp any eq netbios-dgm any
access-list 100 deny udp any eq netbios-ss any
access-list 100 deny icmp any any redirect
access-list 100 permit udp any eq bootpc any
access-list 100 permit ip 10.0.0.0 0.255.255.255 any
access-list 100 deny ip any any log
!
line con 0
no modem enable
line aux 0
line vty 0 4
password xxxxxxxxxxxx
login
!
scheduler max-task-time 5000
!
end

Cheers,

Gillz

 
Reply With Quote
  #2  
Old 28-Oct-2007, 01:05 AM
Spice_Weasel's Avatar
Spice_Weasel Spice_Weasel is offline
Valued Member
Posts: 166
Points: 597 Spice_Weasel has over 500 pointsSpice_Weasel has over 500 pointsSpice_Weasel has over 500 pointsSpice_Weasel has over 500 pointsSpice_Weasel has over 500 pointsSpice_Weasel has over 500 points
Power: 11
None
Join Date: 24 Jun 2006
Certifications: CCNA, CCNP, CCIP, JNCIA-ER, JNCIS-ER,MCP
WIP: CCIE
Here are some quick recommendations:

- Better logging:
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service sequence-numbers

- Use aaa for authentication/authorization:
aaa new-model
aaa authentication login default local
aaa authentication login admin local

- Create enable password
enable secret 0 <some strong password>

- Create a suitable user account.
user <some name> secret 0 <a good password>

- Source routes and grat arps are not good, disable them
no ip source-route
no ip gratuitous-arps

- Close half open connections
ip tcp synwait-time 10

- Do not resolve names
no ip domain lookup

- Log logins, give three attempts before blocking logins
login block-for 60 attempts 3 within 30
login on-failure log
login on-success log

- CDP should not be used unless needed. And never on a router connected to untrusted networks.
no cdp run
Also, use "no cdp enable" on each interface, as it is a good practice to disable cdp globally and on each interface.

- SSH configuration. Use version 2 and log it.
ip ssh time-out 60
ip ssh authentication-retries 2
ip ssh version 2
ip ssh logging events

As well, you will need to generate a key, use the following:
cry key gen rsa mod 1024

- Use ssh to access router, and admin aaa group. Get rid of the password on the vty lines.
line vty 0 4
transport input ssh
login authentication admin

- Create an access-list to protect the vty lines
access-list 15 permit 10.0.0.0 0.0.0.255 log
access-list 15 deny any log

- Apply the access-list to your vty lines
line vty 0 4
access-class 12 in

- Kill the aux port, unless you use it.
line aux 0
no exec
transport input none
transport output none

- Stop backscatter from null0
int null0
no ip unreachables

- Log stuff.
logging buffered 32768 debug

- but keep console clear.
logging console critical <-- usually I will disable console logging. But here I left critical messages to console.

- Set up ntp, and disable ntp on all interfaces except on the interface you will receive time updates on.
ntp server 132.246.168.148 <-- sample timeserver ip's
ntp server 132.246.168.164
ntp disable <-- apply to interfaces that do not provide time info

- If you are not using snmp, disable it.
no snmp-server enable

- Don't boot from the network.
no network boot

Do the login related changes first and don't save them. Test them out thoroughly. If you accidentally lock yourself out just cycle the power. Don't write the changes until you are sure they work properly.

Also, in access-list 100 the permitted network is too large, change it to match your actual internal lan. As well, if you really want a well protected network, I would strongly advise filtering outbound traffic. For example, permit only http, https and dns (to a valid dns server) out. Then add further to the permitted list as needed.

You will need an access-list on the external interface (di0) - or, even better, use the IOS firewall if available. Depending on how thoroughly you want to filter inbound packets, your external access-list could just block private addresses, e.g.:

ip access-list ext incoming
10 deny ip 10.0.0.0 0.255.255.255 any
20 deny ip 172.16.0.0 0.15.255.255 any
30 deny ip 192.168.0.0 0.0.255.255 any
40 deny ip 127.0.0.0 0.255.255.255 any
50 deny ip 224.0.0.0 31.255.255.255 any
60 deny ip 225.0.0.0 0.255.255.255 any
70 deny ip 169.254.0.0 0.0.255.255 any
80 deny ip host 0.0.0.0 any
90 permit ip any any

If you have a static ip, deny packets with that ip as a source. You can also log the above deny lines - logging is a good thing!
You can also block ports, e.g. telnet, snmp, etc. that you never want coming into your network. There are plenty of things you can add to the external access-list depending on your preferences.
You can also go all the way and restrict bogon and hijacked ip address blocks, but that takes work and must be maintained, and can be considered overkill for a home user.

I always create a loopback and use it for a variety of purposes, in particular as a source ip for certain functions, e.g. syslog, snmp, ssh, rcmd, etc.

There are other things you can do, e.g. ip accounting, ios firewall, ip verify unicast, syslog/snmp, ip flow, archive, ids, mop, etc.

This will get you started, more can be done later. Depending on your IOS version and feature set not all of the above may be available.

Spice_Weasel


Oh as I was young and easy in the mercy of his means, Time held me green and dying
Though I sang in my chains like the sea.

Last edited by Spice_Weasel : 28-Oct-2007 at 01:36 AM.
 
Reply With Quote
  #3  
Old 29-Oct-2007, 08:37 AM
gillz gillz is offline
New Member
Posts: 9
Points: 0 gillz has no points
Power: 2
None
Join Date: 22 Oct 2007
Hi Spice,

Thanks for your detailed informative response.

Cheers

 
Reply With Quote
Post New ThreadReply Spread this thread: Submit this thread to digg Submit this thread to del.icio.us


Go Back   CertForums > Certification Forums > Cisco Certification Forums > Network Security


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CISCO 837 NAT/DNS Problem? gillz Routing & Switching 12 23-Oct-2007 08:33 PM
Cisco 877W wireless config delta_v Routing & Switching 0 17-Oct-2007 11:28 PM
Cisco 837 Router configuration help needed! ciscofevers Routing & Switching 2 07-Sep-2007 09:54 PM
Cisco confirms design cert track may reach CCIE level jackson Design 0 25-Jul-2007 04:55 PM


All times are GMT. The time now is 11:28 PM.

Powered by vBulletin® Version 3.6.11
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
CertForums.co.uk (C) copyright 2003-2007 All Rights Reserved. Content published on CertForums.co.uk requires permission for reprint.
Hosted by Lunarpages