Thursday, February 26, 2009

Ubuntu Linux | Multiple IP | IP Aliasing | Howto

Here is a quick guide on how to do IP aliasing on Linux, now you ask why use IP aliasing why not just get another ethernet card, actually getting another ethernet card is the best, solution the problem is some small company is cheap and doesn't have any budget for IT or for an extra ethernet card, trust me this actually happened to me :) anyway here is the command

ifconfig eth0:0 ipaddresshere subnethere
ifconfig eth0:1 ipaddresshere subnethere

If you have set eth0:0 on a different IP block and you want it to still be able to communicate with eth0:1 IP block you will need to add route on the routing table.

After adding the route you just want the eth0:0 to be able to access certain services or port on eth0:1 block you can do this using Iptables, port forwarding and Post route.

Here is how to do it in Iptables

I assume we set default DROP on all tables iptables -P FORWARD DROP

In the example below we want eth0:0 to be able to access eth0:1 on port 25 to be able to send SMTP only

iptables -A FORWARD -p TCP -s eth0:0IPHere -d eth0:1IPHere --dport 25 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT

Now we need to let eth0:1 to be able to reply to eth0:0 request, basically we will allow all traffic from eth0:1 to go to eth0:0 but not the other way around

iptables -A FORWARD -p ALL -s eth0:1IPHere -d eth0:0IPHere -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT

Now we set a post route

iptables -t nat -A POSTROUTING -s eth0:0IPHere -d eth0:1IPHere -o eth1 -j SNAT --to-source IPofanUnsedIPforeth0:1Network>

that is it for now :)


Other Linux Howto

Monday, February 16, 2009

Howto jailbreak iPhone and Ipod touch 2.2 Firmware

This is a simple howto on jailbreaking iPod Touch and iPhone with firmware 2.2.1 whether your using the 1st generation or the 2nd generation most of the instruction should work for you, if you have an first generation iPod Touch like me and you still have firmware 1.1.4 you will need to first upgrade it to 1.1.5 through iTunes first then download the 2.2.1 frimware and update it to firmware 2.2.1, now to the stuff you need


Stuff you need

iTunes - Download and install iTunes if you don't have it
Firmware 2.2.1 - You can get it here or here (the one this site worked for me)
Quickpwn - Get the latest official release of Quickpwn for Mac or Windows here do remember to read Notes about it on the site.


Steps to Jailbreak-

Step 1 - Connect your iPod or Iphone to your computer using the USB cable and fire up iTunes
Step 2 - If you are using a 1st generation iPod Touch and still using 1.1.5 firmware, you will need to upgrade it first, hold your SHIFT key then click restore a windows will pop up, browse to the ipsw file you downloaded and click open, this will take awhile.
Step 3 - Once upgrade is done do not close iTunes and open up Quickpwn and follow the onscreen instruction then your done.


NOTE: By Upgrading firmware and Jailbreaking you will lose your iPod and Iphone content, just resync after doing so to restore your files.

Now if you want to install cracked apps, you will need to modify MobileInstaller and copy the hacked MobileInstaller file to your iPhone or iPod using SCP then SSH into the device and chmod 777 MobileInstaller, as well as other directories will update this part later.




Tech Blog's Quick List of other how to below:
For suggestion and concerns E-mail