Iptables Block Outgoing Traffic

We need to give one of our customers to an internal server, for this we’ve enabled remote SSH access. Even though we trust them we don’t want anyone to use the server as a launchpad to attack other remote servers, or a launch pad to attack internal servers for that matter, in case their account and SSH keys are compromised. So to prevent this we are using iptables to block outgoing traffic from the external IP.

Burger At The Seven Stars

Burger At The Seven Stars
I recently went to the Seven Stars for a lunch burger on a hangover day at work. It was the worst burger experience of my life and I wasn’t going to write it up due to the hangover but I’ve been assured that it wasn’t how I felt, the food was actually terrible, so here we go. I will also preface this with the staff were amazing, I’m sure I’ve had a burger here in the past that was pretty good so maybe this was just an off day, but my friend who also ordered the same burger had the same issue.

5 Meat Slow Cooker Chilli

5 Meat Slow Cooker Chilli

2 weeks ago I came up with an idea. An entire duck in a slow cooker. I’m not sure how it popped in to my brain and I was sober at the time, but it happened. Some people called me crazy, others called me stupid, until today, when I made it, in all it’s glorious glory!

5 Meat Chilli Ingredients

Approximate Ingredients
1 Duck Crown
2 Duck Legs
8 Chicken Thighs
400g Diced Pork
400g Diced Beef
500g Bacon
400g Diced Lamb
1 Table Spoon Mollasses Sugar
9 Fresh Jalapeno Peppers
6 Fresh Bullet Chili Peppers
3 Dried Chipotle Chili Peppers
1 Dried Ancho Chili Pepper
2 Dried De Arbol Chili Peppers
1.2kg Chopped Tomato
4 Diced Onions
1 Heaped Table Spoon Cocoa Powder
1 Shot Tequila
1 Shot Cointreau
1 Large Glass Red Wine
3 Cloves Garlic
Salt
Pepper

Sidey Burger at the Sidewinder

Sidey Burger at the Sidewinder

I accidently ended up at the Sidewinder in Brighton and realised I haven’t had their burger in a while so couldn’t say no as I was starving 😀 They have several different burgers, the 2 main ones being their Classic and the Sidey. ‘Why settle?’ is one of my motos so I opted for the Sidey in all it’s delicious glory!

The Classic Burger

Homemade & 100% British Beef Burger topped with melted emmental cheese, a slice of bacon, roquette & beef tomato in a seeded brioche bap. Served with a side of fries and our house lime and coriander redslaw. £7.25

Google Analytics: The site has not been registered.

In my old blog I had Google Analytics working flawlessly and have several years worth of data showing people searching for SVN or Nagios help 😉

Now I’ve moved to WordPress I wanted to keep using analytics and have had great success using the Google Analyticator plugin with my other blogs so wanted to keep using that here!

Google Analyticator has a fantastic feature that completely automates linking your site to Google Analytics, it’s one mouse click and for my other sites worked flawlessly! For some reason on idimmu.net, probably because I’d previously registered with Anaylyics, it kept throwing the error

Elgg 1.8 Tidypics Group Fix

I’m creating a new community site using the Elgg 1.8 platform, but a lot of the widgets are still using the old 1.7 CSS for their displays so it means a lot of fixing.

The existing tidypics/views/default/tidypics/groupprofile_albums.php suffers from this problem but is simply fixed by changing

<br />

if ($vars[’entity’]->photos_enable != ’no’) {<br /> echo ‘</p> <div class=“group_tool_widget photos”>’;<br /> echo ‘<span class=“group_widget_link”><a href="’ . $vars[‘url’] . ‘pg/photos/owner/’ . page_owner_entity()->username . ‘">’ . elgg_echo(’link:view:all’) . ‘</a></span>’;<br /> echo ‘</p> <h3>’ . elgg_echo(‘album:group’) . ‘</h3> <p>’;<br /> echo elgg_view(’tidypics/albums’, array(’num_albums’ => 5));<br /> echo ‘</p></div> <p>’;<br /> }<br /> ?><br />

to

BackupPC ping too slow

Whilst adding a new remote server to our BackupPC configuration, it threw the following error

`
Contents of file /Volumes/2TB/backuppc/pc/www.server.co.uk/LOG.102011, modified 2011-10-25 13:10:23

2011-10-25 12:00:00 ping too slow: 22.21msec
2011-10-25 13:00:01 ping too slow: 49.63msec
2011-10-25 13:10:23 ping too slow: 47.79msec
`

and refusing to back up the server! After browsing the documentation I discovered the following configuration option

<br /> $Conf{PingMaxMsec} = 20;<br />

Maximum round-trip ping time in milliseconds. This threshold is set to avoid backing up PCs that are remotely connected through WAN or dialup connections. The output from ping -s (assuming it is supported on your system) is used to check the round-trip packet time. On your local LAN round-trip times should be much less than 20msec. On most WAN or dialup connections the round-trip time will be typically more than 20msec. Tune if necessary.

List Contents Of An RPM Package

Often when building RedHat RPM packages I want to make sure that the package built correctly and all the files are present before I actually install the RPM, but I do keep forgetting the command to do this, so here it is for prosperity!

<br /> rpm -qlp<br />

e.g.

<br /> root@build:/usr/src/redhat/SPECS# rpm -qlp ../RPMS/noarch/servicemap-0.16-1.noarch.rpm<br /> /var/www/html/servicemap<br /> /var/www/html/servicemap/amq.png<br /> /var/www/html/servicemap/amqfail.png<br /> /var/www/html/servicemap/amqreportingprov1prov1.png<br /> /var/www/html/servicemap/amqreportingprov1prov2.png<br /> /var/www/html/servicemap/amqreportingprov2prov1.png<br /> /var/www/html/servicemap/amqreportingprov2prov2.png<br /> /var/www/html/servicemap/amqsdrprov1prov1.png<br /> /var/www/html/servicemap/amqsdrprov1prov2.png<br /> /var/www/html/servicemap/amqsdrprov2prov1.png<br /> /var/www/html/servicemap/amqsdrprov2prov2.png<br /> /var/www/html/servicemap/amqslee1fail.png<br /> /var/www/html/servicemap/amqslee1prov1.png<br /> /var/www/html/servicemap/amqslee1prov2.png<br /> /var/www/html/servicemap/amqslee2fail.png<br /> /var/www/html/servicemap/amqslee2prov1.png<br /> /var/www/html/servicemap/amqslee2prov2.png<br /> /var/www/html/servicemap/amqvqeprov1prov1.png<br /> /var/www/html/servicemap/amqvqeprov1prov2.png<br /> /var/www/html/servicemap/amqvqeprov2prov1.png<br /> /var/www/html/servicemap/amqvqeprov2prov2.png<br /> /var/www/html/servicemap/amqwebserviceprov1prov1.png<br /> /var/www/html/servicemap/amqwebserviceprov1prov2.png<br /> /var/www/html/servicemap/amqwebserviceprov2prov1.png<br /> /var/www/html/servicemap/amqwebserviceprov2prov2.png<br /> /var/www/html/servicemap/checks.php<br /> /var/www/html/servicemap/config.php<br /> /var/www/html/servicemap/hash.png<br /> /var/www/html/servicemap/index.php<br /> /var/www/html/servicemap/nagios.php<br /> /var/www/html/servicemap/script.php<br /> /var/www/html/servicemap/sleevipactivenotok.png<br /> /var/www/html/servicemap/style.php<br /> /var/www/html/servicemap/ttprov1.png<br /> /var/www/html/servicemap/ttprov1prov2.png<br /> /var/www/html/servicemap/ttprov2.png<br /> /var/www/html/servicemap/ttprov2prov1.png<br /> /var/www/html/servicemap/ttprovfail.png<br /> /var/www/html/servicemap/ttslee1.png<br /> /var/www/html/servicemap/ttslee1slee2.png<br /> /var/www/html/servicemap/ttslee2.png<br /> /var/www/html/servicemap/ttsleefail.png<br /> /var/www/html/servicemap/ttvipactivenotok.png<br /> /var/www/html/servicemap/ttvipactiveok.png<br />