Creating a secure firewall is essential for any openvpn configuration.
First of all, I’d strongly recommend grabbing a copy of Linux Firewalls.
Its got a great section on iptables, with a look at all the commands available to you
as well as an example firewall configuration.
I have setup an openVPN which has a configuration where there are three [...]
Entries from September 2008
Secure Firewall for OpenVPN
September 23rd, 2008 by Skilla Repok · No Comments
Tags: Programming
wxpython Segmentation Fault
September 19th, 2008 by Skilla Repok · No Comments
In some of my wx python apps, I have come across this error.
It usually appears like this on the command line
Segmentation Fault (core dumped)
The most common reason for me getting this error, has been when a non-main thread tries to directly manipulate something in wx. Be it to Hide() a window, or ShowModal() a dialog.
The [...]
Tags: Programming
Part 3: Setting up the schedule
September 17th, 2008 by Skilla Repok · No Comments
Part3: Setting up the schedule
So you’ve got the python screen capturer and emailer sorted. Now all we need to do is combine the two and set up a process to perform on a regular basis.
1. ScreenMailer
First, we’ll combine the two. When this module is run, it should grab a screen image and send it as [...]
Tags: Programming
Part 2: Python Emailer
September 17th, 2008 by Skilla Repok · No Comments
Part 2: Python Emailer
If you want to send emails using python’s smtplib, this is a good example.
The method sendMail takes 8 arguments and is able to send attached emails to an address.
Currently, this is only tested using my gmail account as the sender, but it should work elsewhere.
#emailer.py
import os.path
import sys, smtplib, MimeWriter, base64, StringIO
import smtplib
import [...]
Tags: Programming
Linux Windows Usage Surveillance in Python
September 17th, 2008 by Skilla Repok · No Comments
Lets say you want to keep track of a computers usage, for remote working. It should deliver hourly shots of computer usage to an email address that you’ll give it. It will also deliver screen shots every 2 minutes, but you can choose whether it does that or not!
Part 1: Python Screen Capture
Part 2: Python [...]
Tags: Programming
Import CSV in SugarCRM
September 16th, 2008 by dcouper · No Comments
I have been trying to import a CSV from an outlook address book into SugarCRM version 5.1.0. I was having a lot of trouble as everytime I would try to import the file it would only give me between 1 and 10 of the fields to map.
After messing around for the whole afternoon I imported [...]
Tags: Applications
