CertForums


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


CISCO 837 CONFIG NEEDS SECURING

Reply
 
Thread Tools Display Modes
  #1  
Old 27-Oct-2007, 12:49 PM
gillz gillz is offline
New Member
Posts: 9
 
Reputation
Points: 0 gillz has no points
Power: 6
Awards
None
Profile
Join Date: 22 Oct 2007
Rep Power: 6
gillz has no points
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, 02:05 AM
Spice_Weasel's Avatar
Spice_Weasel Spice_Weasel is offline
Valued Member
Posts: 247
 
Reputation
Points: 2081 Spice_Weasel has over 2000 pointsSpice_Weasel has over 2000 pointsSpice_Weasel has over 2000 pointsSpice_Weasel has over 2000 pointsSpice_Weasel has over 2000 pointsSpice_Weasel has over 2000 pointsSpice_Weasel has over 2000 pointsSpice_Weasel has over 2000 pointsSpice_Weasel has over 2000 pointsSpice_Weasel has over 2000 pointsSpice_Weasel has over 2000 points
Power: 30
Awards
None
Profile
Join Date: 24 Jun 2006
Certifications: CCNA, CCNP, CCIP, JNCIA-ER, JNCIS-ER,MCP
WIP: CCIE
Rep Power: 30
Spice_Weasel has over 2000 pointsSpice_Weasel has over 2000 pointsSpice_Weasel has over 2000 pointsSpice_Weasel has over 2000 pointsSpice_Weasel has over 2000 pointsSpice_Weasel has over 2000 pointsSpice_Weasel has over 2000 pointsSpice_Weasel has over 2000 pointsSpice_Weasel has over 2000 pointsSpice_Weasel has over 2000 pointsSpice_Weasel has over 2000 points
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 02:36 AM.
 
Reply With Quote
  #3  
Old 29-Oct-2007, 09:37 AM
gillz gillz is offline
New Member
Posts: 9
 
Reputation
Points: 0 gillz has no points
Power: 6
Awards
None
Profile
Join Date: 22 Oct 2007
Rep Power: 6
gillz has no points
Hi Spice,

Thanks for your detailed informative response.

Cheers

 
Reply With Quote
  #4  
Old 29-Jan-2009, 02:19 PM
ManishBehal's Avatar
ManishBehal ManishBehal is offline
New Member
Posts: 6
 
Reputation
Points: 0 ManishBehal has no points
Power: 3
Awards
None
Profile
Join Date: 29 Jan 2009
Location: West Midlands,UK
Certifications: CCIE,CCNP,CCDA,CCNP,MCSE,MCSA,MCDST,MCT
WIP: CCIE Security,
Rep Power: 3
ManishBehal has no points
Or use Cisco Auto-Secure - it does all this for you!!




Manish Behal - CCIE# 22198
 
Reply With Quote
  #5  
Old 29-Jan-2009, 02:43 PM
Fergal1982's Avatar
Fergal1982 Fergal1982 is offline CertForums News Posting Member
Lifetime Member
Posts: 3,994
 
Reputation
Points: 9291 Fergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 points
Power: 143
Awards
None
Profile
Join Date: 04 May 2004
Location: Aberdeen, UK
Certifications: ITIL Foundation, Driving
WIP: you shihou, zuo zuoye... bu xihuan.
Rep Power: 143
Fergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 points
Quote:
“
Originally Posted by ManishBehal View Post
Or use Cisco Auto-Secure - it does all this for you!!
”
Please dont resurrect old threads!




Hecate Guides, but you dont hear me preaching about it! Now p*** off and leave me be.

Posts made by this user do not, and never will, represent anyone other than himself, except in any scenario where explicitly declared. This non-representation includes, but is not limited to, current employers.
 
Reply With Quote
  #6  
Old 29-Jan-2009, 03:59 PM
ManishBehal's Avatar
ManishBehal ManishBehal is offline
New Member
Posts: 6
 
Reputation
Points: 0 ManishBehal has no points
Power: 3
Awards
None
Profile
Join Date: 29 Jan 2009
Location: West Midlands,UK
Certifications: CCIE,CCNP,CCDA,CCNP,MCSE,MCSA,MCDST,MCT
WIP: CCIE Security,
Rep Power: 3
ManishBehal has no points
"Please dont resurrect old threads!"


You are joking, right??


Manish Behal - CCIE# 22198
 
Reply With Quote
  #7  
Old 29-Jan-2009, 04:13 PM
Qs's Avatar
Qs Qs is offline
Semi-Honorary Member
Posts: 3,009
 
Reputation
Points: 3235 Qs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 points
Power: 67
Awards
None
Profile
Join Date: 13 May 2008
Location: West Midlands
Age: 23
Certifications: See Signature
WIP: On Hiatus
Rep Power: 67
Qs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 points
Quote:
“
Originally Posted by ManishBehal View Post
"Please dont resurrect old threads!"


You are joking, right??
”
Admittedly the last post in the thread was over 12 months ago, Manish.

Qs




HND Applied I.T (Merit), MBCS, MCSE, MCSA, CCNA, MCITP: EDST 7, MCTS:Win 7, MCITP:EST, MCTS:Vista, MCDST, MCP (271, 290, 293, 294, 297), F.A.S.T Approved Software Manager, F.A.S.T Approved Software Auditor,
 
Reply With Quote
  #8  
Old 29-Jan-2009, 04:22 PM
ManishBehal's Avatar
ManishBehal ManishBehal is offline
New Member
Posts: 6
 
Reputation
Points: 0 ManishBehal has no points
Power: 3
Awards
None
Profile
Join Date: 29 Jan 2009
Location: West Midlands,UK
Certifications: CCIE,CCNP,CCDA,CCNP,MCSE,MCSA,MCDST,MCT
WIP: CCIE Security,
Rep Power: 3
ManishBehal has no points
Yes the post was 12 months ago and Cisco has moved on leaps and bounds since then. My post simply highlighed the new feature that is now the preferred method for securing a Cisco SOHO router like that of the Original Poster.

No worries, no harm intended, just trying to help.


Manish Behal - CCIE# 22198
 
Reply With Quote
  #9  
Old 29-Jan-2009, 05:05 PM
Fergal1982's Avatar
Fergal1982 Fergal1982 is offline CertForums News Posting Member
Lifetime Member
Posts: 3,994
 
Reputation
Points: 9291 Fergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 points
Power: 143
Awards
None
Profile
Join Date: 04 May 2004
Location: Aberdeen, UK
Certifications: ITIL Foundation, Driving
WIP: you shihou, zuo zuoye... bu xihuan.
Rep Power: 143
Fergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 points
help: Good. Necroposting: Bad! (Fire: Bad! )

A lot of areas have moved on in leaps and bounds in the years since the post was made here in CF, If everyone went back and necroposted every time there was a curriculum change in the A+, to update the posts, it would never end now, would it?

More than a few months old is the general rule of thumb for necroposting (and even then sometimes less depending on the topic). General exceptions are if the OP is returning to update the forum on their current situation in relation to the thread topic. Even then they should generally create a new post.

Other notable exceptions are posts that lend themselves to necroposting, such as the polls.




Hecate Guides, but you dont hear me preaching about it! Now p*** off and leave me be.

Posts made by this user do not, and never will, represent anyone other than himself, except in any scenario where explicitly declared. This non-representation includes, but is not limited to, current employers.
 
Reply With Quote
  #10  
Old 29-Jan-2009, 05:12 PM
Qs's Avatar
Qs Qs is offline
Semi-Honorary Member
Posts: 3,009
 
Reputation
Points: 3235 Qs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 points
Power: 67
Awards
None
Profile
Join Date: 13 May 2008
Location: West Midlands
Age: 23
Certifications: See Signature
WIP: On Hiatus
Rep Power: 67
Qs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 pointsQs has over 3000 points
Quote:
“
Originally Posted by ManishBehal View Post
Yes the post was 12 months ago and Cisco has moved on leaps and bounds since then. My post simply highlighed the new feature that is now the preferred method for securing a Cisco SOHO router like that of the Original Poster.

No worries, no harm intended, just trying to help.
”
Indeed, and we're all for that!

Fergal's point is that the OP isn't going to be looking at this anymore and nor is anyone else.




HND Applied I.T (Merit), MBCS, MCSE, MCSA, CCNA, MCITP: EDST 7, MCTS:Win 7, MCITP:EST, MCTS:Vista, MCDST, MCP (271, 290, 293, 294, 297), F.A.S.T Approved Software Manager, F.A.S.T Approved Software Auditor,
 
Reply With Quote
Reply

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

Bookmarks

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

BB 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 09:33 PM
Cisco 877W wireless config delta_v Routing & Switching 0 18-Oct-2007 12:28 AM
Cisco 837 Router configuration help needed! ciscofevers Routing & Switching 2 07-Sep-2007 10:54 PM
Cisco confirms design cert track may reach CCIE level jackson Design 0 25-Jul-2007 05:55 PM


All times are GMT +1. The time now is 05:20 AM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
CertForums.co.uk (C) copyright 2003-2009 All Rights Reserved. Content published on CertForums.co.uk requires permission for reprint.
Lunarpages.com Web Hosting