What is a route
A route is a rule used by your kernel to determine how to get someplace on a network. IP routes (routes on an IP network) and other types of routable networks. Routes are stored in the Linux kernel are accessible for viewing and editing to users.
Checking the route table in Linux
netstat -rn
route
The table will look something like this.
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth1
Adding and Removing a Network in Linux
route add -net 10.10.10.0/24 gw 192.168.0.1
route del -net 10.10.10.0/24 gw 192.168.0.1
Adding and Removing a specific host in Linux
route add -host 10.10.10.45 gw 192.168.0.1
route del -host 10.10.10.45 gw 192.168.0.1
Read the rest of this entry »
Like this blog? Why not buy me a cup of coffee?
Do you wnat to know what is your public IP Address? Here is a small script that you can use to check your IP Address using PHP. You can check my sidebar for your IP Address.
<?
if (getenv(HTTP_X_FORWARDED_FOR)) {
$pipaddress = getenv(HTTP_X_FORWARDED_FOR);
$ipaddress = getenv(REMOTE_ADDR);
echo “Your Proxy IP address is : “.$pipaddress. ” (via $ipaddress) ” ;
} else {
$ipaddress = getenv(REMOTE_ADDR);
echo “Your IP address is : $ipaddress”;
}
?>
Like this blog? Why not buy me a cup of coffee?
Filed under:
Networking, PHP
Many legitimate advertisers on the Internet use windows that pop up in the middle of your screen to display a message. They might also open when you click a link or button on a Web site, and they might open either over or under the window you wish to view. Some pop-ups are helpful. For example, if you click an image to see a larger version, it might open in a pop-up window. Unfortunately, some pop-up windows can contain inappropriate content or can be a way for you to accidentally download dangerous software (called spyware or adware) onto your computer.
With Windows XP Service Pack 2 (SP2) Internet Explorer allows you to prevent most pop-up windows from appearing over pages you want to view while you’re using the Internet.
Read the rest of this entry »
Like this blog? Why not buy me a cup of coffee?