I just want to access my web server from my local address:
iptables -I INPUT -p tcp --dport 80 -s ! 127.0.0.1 -j DROP -m comment --comment "Only for local address"
Setting up a proxy configuration:
# export http_proxy=”http://username:password@host:port”
Reloading Squid’s configuration:
# squid -k reconfigure
Specifications:
- Ubuntu Server 8.10 Intrepid Ibex
- Dell Poweredge 1650
SCSI with RAID Controller
Three SCSI hard disks, 32GB each
RAID 0, each hard disk has its own array controller
- dev/sda1 = /grub, /dev/sda2 = / , /dev/sda5 = swap
Problem:
- After Ubuntu Server installation has finished, server couldn’t boot normally. It stucked forever at BIOS screen, not even reached Grub.
- I reinstalled it with different RAID type, but the result was null.
Solution:
- Install Ubuntu Server
- Boot with Ubuntu Desktop (Live CD)
- Open Partition editor, select each partition’s flag to be marked the flag as “raid”, and “boot” + “raid” for boot partition.
- Open terminal, escalate to root, then reinstall Grub.
#grub
grub> root (hd0,0)
grub> setup hd0
grub> quit
- Edit menu.lst file, then add “root=/dev/sda5” to your kernel’s argument. I still can’t figure out, how could Grub data in /dev/sda1 to be read at /dev/sda5 partition after I boot it. But that’s the fact.
- Reboot the system, eject CD. If you are thrown into BusyBox, from that command prompt, try locate the Grub path. Then fix the kernel’s argument in menu.lst file.
Bad english huh? but … whatever….