CISCO PIX Terminology and Background Information
PIX terminology: we generally refer to the user segment as the Inside subnet. The interface connected to the Internet router is the outside subnet. As shown, we probably have DMZ (De-Militarized Zone) subnet, the subnet where we quarantine all servers that are accessible from the outside. We might also have a separate management subnet and a subnet tying to a redundant PIX for failover (if supported/licensed).
The PIX Command-Line Interface (CLI) is somewhat like the Cisco IOS interface, but different. Use colon (":") for comments (which, as usual, are not retained). Newer PIX OS uses ACL's, replacing the former conduits (which were arguably more confusing to experienced Cisco router administrators).
PIX interfaces are normally shutdown until the administrator activates them.
PIX interfaces have an associated security level. Two interfaces at same level can't send packets to each other. We'll shortly see that you set levels with nameif command. Connections and traffic are normally permitted from higher to lower security level interfaces, although you do have to put in some basic configuration to allow traffic to flow. Connections the other way (from low to high security) are disallowed unless the configuration explicitly permits them.
You actually do not have to put any ACL if going from a higher security level to a lower. Everything will be allowed. Best practice is to put an ACL on all interfaces even if the ACL permits everything to flow using "ip any any". An ACL put inbound (PIX only does inbound ACLs) to the inside interface can control traffic destined going outbound. If an admin wants to only have www and dns traffic outbound he would allow only tcp on 80 and udp on 53 then everything else like real audio would be denied as it goes out.)
To let traffic flow from a high security level to a lower level, use the nat and global commands. For the opposite direction, from lower to higher, use the static and access-list commands. We suggest using nat and global when going from any non-outside interface to the outside interface (Internet usually unless the PIX is used as a border between business units) which is a little different than the first sentence above. We also suggest using statics from any non-outside interface to any other non-outside interface (like inside to management or ethernet3 to ethernet4, below.)
The PIX normally uses stateful NAT connections and stateful security, referred to as the Adaptive Security Algorithm (ASA). The PIX does not pass multicast traffic. (Can you say "DVMRP tunnel"?)
Cisco and we recommend you do not dynamic routing to or through the PIX. The PIX does support RIP, but the authors both loathe RIP. And static routing is more secure, cannot be as easily fooled
See all the ways you can stay connected to friends and family
الثلاثاء، 28 أبريل 2009
الأحد، 26 أبريل 2009
All ASP Tips to Improve Performance and Style
All ASP Tips to Improve Performance and Style
tips for optimizing ASP applications and VBScript
Tip 1: Cache Frequently-Used Data on the Web Server
Tip 2: Cache Frequently-Used Data in the Application or Session Objects
Tip 3: Cache Data and HTML on the Web Server's Disks
Tip 4: Avoid Caching Non-Agile Components in the Application or Session Objects
Tip 5: Do Not Cache Database Connections in the Application or Session Objects
Tip 6: Using the Session Object Wisely
Tip 7: Encapsulate Code in COM Objects
Tip 8: Acquire Resources Late, Release Early
Tip 9: Out-of-Process Execution Trades off Performance for Reliability
Tip 10: Use Option Explicit
Tip 11: Use Local Variables in Subroutines and Functions
Tip 12: Copy Frequently-Used Data to Script Variables
Tip 13: Avoid Redimensioning Arrays
Tip 14: Use Response Buffering
Tip 15: Batch Inline Script and Response.Write Statements
Tip 16: Use Response.IsClientConnected Before Embarking on Long Trips
Tip 17: Instantiate Objects Using the <OBJECT> Tag
Tip 18: Use TypeLib Declarations for ADO and Other Components
Tip 19: Take Advantage of Your Browser's Validation Abilities
Tip 20: Avoid String Concatenation in Loops
Tip 21: Enable Browser and Proxy Caching
Tip 22: Use Server.Transfer Instead of Response.Redirect Whenever Possible
Tip 23: Use Trailing Slashes in Directory URLs
Tip 24: Avoid Using Server Variables
Tip 25: Upgrade to the Latest and Greatest
Tip 26: Tune Your Web Server
Tip 27: Do Performance Testing
Tip 28: Read the Resource Links
Tip 28: Read the Resource Links:
Here are some links to some great resources related to performance. If you read anything, read Developing Scalable Web Applications.
Get news, entertainment and everything you care about at Live.com. Check it out!
tips for optimizing ASP applications and VBScript
Tip 1: Cache Frequently-Used Data on the Web Server
Tip 2: Cache Frequently-Used Data in the Application or Session Objects
Tip 3: Cache Data and HTML on the Web Server's Disks
Tip 4: Avoid Caching Non-Agile Components in the Application or Session Objects
Tip 5: Do Not Cache Database Connections in the Application or Session Objects
Tip 6: Using the Session Object Wisely
Tip 7: Encapsulate Code in COM Objects
Tip 8: Acquire Resources Late, Release Early
Tip 9: Out-of-Process Execution Trades off Performance for Reliability
Tip 10: Use Option Explicit
Tip 11: Use Local Variables in Subroutines and Functions
Tip 12: Copy Frequently-Used Data to Script Variables
Tip 13: Avoid Redimensioning Arrays
Tip 14: Use Response Buffering
Tip 15: Batch Inline Script and Response.Write Statements
Tip 16: Use Response.IsClientConnected Before Embarking on Long Trips
Tip 17: Instantiate Objects Using the <OBJECT> Tag
Tip 18: Use TypeLib Declarations for ADO and Other Components
Tip 19: Take Advantage of Your Browser's Validation Abilities
Tip 20: Avoid String Concatenation in Loops
Tip 21: Enable Browser and Proxy Caching
Tip 22: Use Server.Transfer Instead of Response.Redirect Whenever Possible
Tip 23: Use Trailing Slashes in Directory URLs
Tip 24: Avoid Using Server Variables
Tip 25: Upgrade to the Latest and Greatest
Tip 26: Tune Your Web Server
Tip 27: Do Performance Testing
Tip 28: Read the Resource Links
Tip 28: Read the Resource Links:
Here are some links to some great resources related to performance. If you read anything, read Developing Scalable Web Applications.
Resources
| Optimizing ASP scripts | Tuning IIS | ADO and SQL Server |
| ASP components and threading models | Dictionary components | Session state |
| Performance and scalability | Tools | Books |
| ASP Web sites | ASP style | XML |
Optimizing ASP scripts
- Maximizing the Performance of Your Active Server Pages by Nancy Winnick Cluts
- 15 Seconds: Performance Section
- Enhancing Performance in ASP - Part I by Wayne Plourde
- Speed and Optimization Resources by Charles Carroll
Tuning IIS
- The Art and Science of Web Server Tuning with Internet Information Services 5.0
- Leveraging ASP in IIS 5.0 by J.D. Meier
- Tuning Internet Information Server Performance by Mike Moore
ADO and SQL Server
- Top Ten Tips: Accessing SQL Through ADO and ASP by J.D. Meier
- Improve the Performance of your MDAC Application by Suresh Kannan
- Pooling in the Microsoft Data Access Components by Leland Ahlbeck and Don Willits
- SQL Server: Performance Benchmarks and Guides
ASP components and threading models
- ASP Component Guidelines by J.D. Meier
- Q243548: INFO: Design Guidelines for VB Components under ASP
- Threading Models Explained by Nancy Winnick Cluts
- Developing Active Server Components with ATL by George Reilly
- Agility in Server Components by Neil Allain
- Active Server Pages and COM Apartments by Don Box
- House of COM: Active Server Pages by Don Box
- House of COM: Contexts by Don Box
- House of COM: Performance Trade-offs of the Windows 2000 Component Execution Environment by Don Box
- Building COM Components That Take Full Advantage of Visual Basic and Scripting by Ivo Salmre
Dictionary components
Session state
- Q175167: HOWTO: Persisting Values Without Sessions
- Q157906: HOWTO: How To Maintain State Across Pages with VBScript
- XML-based Persistence Behaviors Fix Web Farm Headaches by Aaron Skonnard
- MSDN Magazine: Basic Instinct To Cache or not to Cache by Ted Pattison
Performance and scalability
- Server Performance and Scalability Killers by George Reilly
- Top Windows DNA Performance Mistakes and How to Prevent Them by Gary Geiger and Jon Pulsipher
Tools
- I Can't Stress It Enough -- Load Test Your ASP Application by J.D. Meier
- Windows DNA Performance Kit
Books
- Professional Active Server Pages 3.0, Wrox Press. (Especially Chapter 26: Optimizing ASP Performance, by George Reilly and Matthew Gibbs)
- Microsoft Internet Information Services 5.0 Resource Guide (bundled with Windows 2000 Server Resource Kit, Microsoft Press.
- Microsoft Internet Information Server Resource Kit (for IIS 4.0), Microsoft Press.
- Programming Distributed Applications with COM and Microsoft Visual Basic 6.0 by Ted Pattison, Microsoft Press.
- Effective COM by Don Box, Keith Brown, Tim Ewald, and Chris Sells; Addison-Wesley.
- Developing Web Usability: The Practice of Simplicity by Jakob Nielsen, New Riders.
ASP Web sites
- Microsoft TechNet for IIS
- LearnASP.com
- 4GuysFromRolla.com
- 15Seconds.com
- AspToday.com
- Asp101.com
- AspLists.com. Many specialized mailing lists including:
- Fast Code!
- ASP Advanced
- Not Newbie
- State Management
- Scalability
- Visual Basic Components
- XML
- C++/ATL Component Building
- UseIt.com: Web Usability
ASP style
- ASP Quick Lessons by Charles Carroll
- ASP Guidelines by J.D. Meier
XML
- Inside XML Performance by Chris Lovett
- Inside MSXML3 Performance by Chris Lovet
Get news, entertainment and everything you care about at Live.com. Check it out!
الاشتراك في:
الرسائل (Atom)


