mod_rewrite, a beginner’s guide (with examples)

16 June 2007 5 comments

Until recently, I only had the vaguest of ideas of what mod_rewrite was, and I certainly had no clue about how to use it. So, when I started designing this site, I decided to delve into the wonders that are the mod_rewrite Apache module.

So, what is mod_rewrite for?

Simply, mod_rewrite is used for rewriting a URL at the server level, giving the user output for that final page. So, for example, a user may ask for http://www.somesite.com/widgets/blue/, but will really be given http://www.somesite.com/widgets.php?colour=blue by the server. Of course, the user will be none the wiser to this little bit of chicanery.

On workingwith.me.uk, I use mod_rewrite to redirect all pages to one central PHP page, which then loads the data that the user wanted from an external data file. Lots of people use mod_rewrite to show an “alternative” image when people are hotlinking directly to their images. Read more…

Categories: Linux, Networking, Tips & Trik

Protecting Your Data: A Guide to Windows Firewall

9 June 2007 Leave a comment

Introduction to Windows Firewall

The introduction of high-speed Internet connectivity has created a powerful and extraordinary computer networking experience. This newfound burst of bandwidth has launched new innovations in information exchange, media access, and other advanced computing experiences. Unfortunately, this technology has also created a very accessible conduit to the internals of your computer. Using these open and available digital pipelines, it’s now easier than ever for hackers, worms, and viruses to attack your unprotected home and home office computers.

These threats aren’t exaggerations thrown around by computer industry pundits or descriptions of theoretical worst-case scenarios. A test in my lab found that a computer added onto a previously unconnected cable-modem connection was found by automated hacker tools in three minutes, attacked by an Internet worm in eleven minutes, and it only took five hours before a hacker was running active scans against my computer in an attempt to find an open doorway or unlocked pathway into my system.

These timeframes are staggering. If an unprotected computer is connected to your high-speed Internet connection then your confidential information, financial details, private email messages, and any other personal information on your computer is at risk. If you connect to the Internet in hotels or wireless hot-spots without a personal firewall, then your computer and private information can be easily attacked. Read more…

Will an nmap Operating System scan work through a firewall?

9 June 2007 Leave a comment

From the mailbag, Jesse C. writes:

I have been assigned a project within my organization to perform OS Fingerprinting on subnets. What I find is that end-users that do not use Windows Firewall (have it disabled or not installed), I am able to detect their OS with no problem. The problem lies that many new users have Windows SP2 Firewall enabled which are limiting my scan results. I am using the following nmap command in Linux. (# nmap -sS -O -PI 192.168.0.1/24)What should I do to accurately perform an OS Fingerprint scan on my subnet? If not 100% accurate, what nmap commands would your suggest?

Jesse – Read more…

MPLS Overview

9 June 2007 Leave a comment

Multi-Protocol Label Switching (MPLS) defines a mechanism for packet forwarding in network routers. It was originally developed to provide faster packet forwarding than traditional IP routing, although improvements in router hardware have reduced the importance of speed in packet fowarding. However, the flexibility of MPLS has led to it becoming the default way for modern networks to achieve Quality of Service (QoS), next generation VPN services, and optical signaling.

Traditional IP networks are connectionless: when a packet is received, the router determines the next hop using the destination IP address on the packet alongside information from its own forwarding table. The router’s forwarding tables contain information on the network topology. They use an IP routing protocol, such as OSPF, IS-IS, BGP, RIP or static configuration, to keep their information synchronized with changes in the network.

MPLS also uses IP addresses, either v4 or v6, to identify end points and intermediate switches and routers. This makes MPLS networks IP-compatible and easily integrated with traditional IP networks. However, unlike traditional IP, MPLS flows are connection-oriented and packets are routed along pre-configured Label Switched Paths (LSPs). Read more…

Categories: Networking

MPLS – What is ?

9 June 2007 Leave a comment

Short for Multiprotocol Label Switching, an IETF initiative that integrates Layer 2 information about network links (bandwidth, latency, utilization) into Layer 3 (IP) within a particular autonomous system–or ISP–in order to simplify and improve IP-packet exchange. MPLS gives network operators a great deal of flexibility to divert and route traffic around link failures, congestion, and bottlenecks. Read more…

Categories: Artikel, Networking

How To Find Your IP and MAC Addresses On Windows XP | 2000 | NT

9 June 2007 Leave a comment

Follow these steps to quickly find the Internet Protocol (IP) and Media Access Control (MAC) address of a computer running Windows XP, Windows 2000, or Windows NT.

Difficulty: Easy

Time Required: seconds

Here’s How:

  1. Click the Start menu button on the Windows taskbar.
  2. Click Run… on this menu.
  3. Type cmd in the text box that appears. A command prompt window launches on the desktop.
  4. In this command window, type ipconfig /all. Details are shown for each of the computer’s network adapters. Computers installed with VPN software or emulation software will possess one or more virtual adapters. <!–more–>
  5. The IP Address field states the current IP address for that network adapter.
  6. The Physical Address field states the MAC address for that adapter.

Tips:

  1. Take care to read the IP address from the correct adapter. Virtual adapters generally show a private address rather than an actual Internet address.
  2. Virtual adapters possess software-emulated MAC addresses and not the actual physical address of the network interface card.

What You Need:

  • Windows XP / 2000 / NT

From Bradley Mitchell,
Your Guide to Wireless / Networking.

Categories: Networking, Tips & Trik

MTU – What is ?

9 June 2007 Leave a comment

Definition: The MTU is a limit, expressed in bytes, on the size of data sent over a network. It is the maximum size of a single unit (e.g., an Ethernet frame) of digital communications.

MTU sizes are properties of physical network interfaces. The MTU for Ethernet, for instance, is 1500 bytes. Some types of networks (like Token Ring) have larger MTUs, and some types have smaller MTUs. Higher-level network protocols like TCP/IP can be configured with a maximum packet size, but this setting is distinct from the physical MTU. The MTU of a network has important implications on the performance of computer communications as explained below.

In Microsoft Windows, the maximum packet size for protocols like TCP can be set in the Registry. If this value is set too low, streams of network traffic will be broken up into a relatively large number of small packets that adversely affects performance. If the maximum TCP packet size is set too high, it will exceed the network’s MTU and also degrade performance by requiring that each packet be subdivided into at least two smaller ones (a process known as fragmentation). Read more…

Categories: Networking
Follow

Get every new post delivered to your Inbox.