HOME BLOG iPhone SCRIPTS MUSIC

Archive for August, 2009

Spambots… here’s my iptables list so far…

Monday, August 24th, 2009

I never understand why spambot operators think spam advertising would result in a sale. I would NEVER do business with someone who SPAM’d me. Anyways, every day I check my blog and there are many reply posts that are just spambots.

So, here it is: My list of IP’s that spam me. I block them at my firewall and never hear from them again. The list grows every day, so I will update the list from time to time. It’s good for Google to see the addresses in a bad context.

EDIT:

The list got kind of long so I changed it to a link you can click and get the list real time:

http://tranquilpenguin.com/spamlist.php

The reports are confusing…

Sunday, August 16th, 2009

Well, I’ve spent the day getting caught up on Linux issues, and I just say I’m confused.

On the one hand, it seems that Linux Desktop sales are falling short of expectations. That’s bad, and I really can’t understand it. I guess there are still a lot of folks that are afraid to make the switch.

The funny thing is, when you read the direction of technology in general, the Linux philosophy seems to pervade the industry. Google Docs, Cloud Computing, Netbooks, and Cellular Phones are all at the forefront of recent articles.

So, which is it? Is Linux winning or losing? It’s hard to tell. All I can say is it has won the battle hands down in my book.

My New Project

Sunday, August 16th, 2009

Well,

It’s been a while since I took on a new project for self-education, so I thought I’d lay out my new project idea.

There are many PHP-based Forum software packages out there, (SMF, PHPBB, PHPNuke, Drupal) to name just a few, and I’ve done quit a bit of code and design work with them. There are a few things that those packages offer, however, that are a bit over my ability, so I decided that I would write a Forum package from scratch!

I will use the coding as topics here from time to time. I’m open to suggestions if anyone see’s a better way to do things, too.

Anyways, you can monitor progress here: http://tranquilpenguin.com/simpleforum Feel free to sign up for an account (once that part of the site is designed :P

Peace.

Wireless Router - Epilog - R.I.P.

Tuesday, August 11th, 2009

Well,

It doesn’t work after all. Sure, I can connect. I can pull and IP via DHCP. I can surf the net… but it doesn’t work.

For reasons I don’t understand, (Driver issues I assume?) My network is incredibly slow. It seems that Ad-Hoc WiFi still has a ways to go in Linux. Whenever I connect, power goes to 0 and I experience 50% packet loss while pinging.

I don’t really have another WiFi card to try in the server, so this project is R.I.P. … At least for now…

Wireless Router Part II

Monday, August 10th, 2009

Some time back, I failed to create a wireless router out of a linux box. I got it working finally. This may not be the best way to do it, but it worked for me with only some minor issues.

In the machine I have the following:

NIC 1: Static IP hooked to a public IP. I am not using this NIC at all.
NIC 2: This is wired to my local LAN
NIC 3: Wireless NIC.

GATEWAY: This resides at my firewall and is at 192.168.1.1

DHCP/DNS SERVER: This resides on another PC at 192.168.1.101

Ok, here is the strategy:

My internal lan is 192.168.1.X. The DHCP Server issues IP’s 192.168.1.5-25, and assigns G/W 192.168.1.1 and DNS 192.168.1.101.

The wired portion of the LAN worked as expected. Now on to the Wireless portion.

Do accomplish this, I had to employ a network bridge. These instructions are for my Fedora 9 box, so you may need to adjust the instruction for you particular distrobution.

1. Create and/or edit the following files:

/etc/sysconfig/networking/devices/ifcfg-eth1 (NIC 2 above)

DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
USERCTL=no
BOOTPROTO=none
NM_CONTROLLED=no
BRIDGE=br0

/etc/sysconfig/networking/devices/ifcfg-wlan0

DEVICE=wlan0
TYPE=Wireless
ONBOOT=yes
USERCTL=no
BOOTPROTO=none
ESSID=MYSSID
MODE=Ad-Hoc
RATE=Auto
CHANNEL=1
NM_CONTROLLED=no
BRIDGE=br0

/etc/sysconfig/networking/devices/ifcfg-br0

DEVICE=br0
ONBOOT=yes
TYPE=Bridge
IPADDR=192.168.1.3 # IP address of the interface here
NETMASK=255.255.255.0 # IP address mask here
GATEWAY=192.168.1.1 # Default gateway here

After creating/editing these files, start system-config-network and enable the new interfaces, so they are present to the current network profile.

I was able to connect to see and attach to the WiFi with my laptop and all worked perfectly.

There is only one real downside to this setup. I am still researching this, but there may be no way to use WEP while in Ad-Hoc mode. This is a problem but a work-around is to disable dynamic IP assignments with DHCP. My network is small enough (Less than 10 PC’s) that I can simply map MAC’s to IP. All unused IP’s can simply be stopped by IPTABLES.

If anyone has a method for using WEP in Ad-Hoc, I’d love to hear from you.

Enjoy.

Linux Command Reference - Part 1

Sunday, August 9th, 2009

ls – directory listing
ls -al – formatted listing with hidden files
cd dir - change directory to dir
cd – change to home
pwd – show current directory
mkdir dir – create a directory dir
rm file – delete file
rm -r dir – delete directory dir
rm -f file – force remove file
rm -rf dir – force remove directory dir *
cp file1 file2 – copy file1 to file2
cp -r dir1 dir2 – copy dir1 to dir2; create dir2 if it doesn’t exist
mv file1 file2 – rename or move file1 to file2 if file2 is an existing directory, moves file1 into directory file2
ln -s file link – create symbolic link link to file
touch file – create or update file
cat > file – places standard input into file
more file – output the contents of file
head file – output the first 10 lines of file
tail file – output the last 10 lines of file
tail -f file – output the contents of file as it grows, starting with the last 10 lines


© 2009 BLMServices.com
Currently: Sunny: 45F