IE7 and IE6 will by default add padding to input button object depending on width, to remove the extra padding, add the following css to your input object:
When using Windows RDP you may encounter the error message ‘The terminal server has exceeded the maximum number of allowed connections’. You can delete open sessions or use the admin switch to administer the server.
At the command prompt:
To administer the server:
mstsc /v:<server> /admin
To obtain a list of current sessions:
query session /server:<server>
To close a session – [ID] can be found from session list
reset session [ID] /server:<server>
Paste the following code into your functions.php file replacing the UA-xxxxxxxx-x code with your Google Analytics code.
You can change the file directivies for a folder by adding a .htaccess file in the folder and including the following code:
<IfModule mod_headers.c> <FilesMatch "\.(?i:mp3|ogg)$"> ForceType application/octet-stream Header set Content-Disposition attachment </FilesMatch> </IfModule>
This will force .mp3 and .ogg files to prompt for action rather than open with the default browser setting. The IfModule condition is recommended as it will prevent an error message if the Apache headers module is not installed.
If someone browses to a folder on your website that does not have an index file it will, by default, list the directory’s contents. If you have an Apache based web server you can prevent access to this folder by placing a .htaccess file within it containing the following code:
This can also be placed at the root of your site as it will be inherited through the sub-directories. Using Options -Indexes does not prevent access to the folders from scripts running on your website so you can still, for example, list the contents with PHP and download the files.
In this example we have 2 private subnets 192.168.1.0/24 and 172.16.1.0/24 where only 192.168.1.xxx addresses can directly access the router at 192.168.1.1. We want to access the internet from both subnets.
We need a machine connected to both networks and allow IP forwarding from 172.16.1.0/24 to 192.168.1.0/24. Although probably better with 2 NICs it can be done usings network aliases using only 1 network interface.
Presuming you have a configured NIC with an address for eth0 on the 192.168.1.0/24 range and on eth0:1 an address from 18.104.22.168/24 we can start configuring the machine. This machine will act as the gateway for the 172.16.1.xxx range.
First check if packet forwarding is activated.
Check /etc/default/ufw and make sure DEFAULT_FORWARD_POLICY is set to ACCEPT.
Type the following to test for IP forwarding
If this returns 0 we need to turn it on. Edit /etc/ufw/sysctl.conf and uncomment
Now to configure IP masquerading, network address translation
Edit the file /etc/ufw/before.rules and add the following code to the top.
*nat :POSTROUTING ACCEPT [0:0] #Forward traffic from the alias range 172.16.1.xxx through eth0 -A POSTROUTING -s 172.16.1.0/24 -o eth0 -j MASQUERADE COMMIT
To activate new firewall settings type
ufw disable ufw enable
If ufw was not already enabled you may need to alter some rules as it may now be blocking some routes and ports. In this example we may need to add rules such as.
ufw allow from 192.168.1.0/24 ufw allow to 192.168.1.0/24 ufw allow from 172.16.1.0/24 ufw allow to 172.16.1.0/24
Tested with ubuntu server 11.10