Solutionist's Blog

Tech | Health | Life | Travel

Open Port 80 (HTTP Web Server Port) in CentOS / Redhat

The default configuration file for iptables based firewall under RHEL / CentOS / Fedora Linux is /etc/sysconfig/iptables.   # vi /etc/sysconfig/iptables Add extra lines in red   # Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m […]

policy / source based Routing – Linux

In the following example, we have 2 gateways to the internet and we have 1 default route. In this scenario, the default route(the link that all traffic will go out to), is WAN1. We want only SMTP/email traffic to go out via WAN2, but all other traffic to follow te default route via WAN1. The […]

NTFS read write – Mac OS X mountain lion

To Read/Write/Format NTFS from Mac OS X, here are some alternatives: For Mac OS X 10.4 or later (32 or 64-bit), install Paragon (approx $20) (Best Choice for Lion) For 32-bit Mac OS X, install NTFS-3G for Mac OS X (free) (does not work in 64-bit mode) For 64-bit Snow Leopard, read this: MacFUSE for […]

Squid – make HTTPS proxy

There seems to be a bit of confusion about configuring SQUID to transparently intercept SSL (read: HTTPS) connections. Some sites say it’s plain not possible: http://www.faqs.org/docs/Linux-mini/TransparentProxy.html#ss2.3 Recent development in SQUID features have made this possible. This article explores how to set this up at a basic level. The SQUID proxy will basically act as a […]

Squid https transparent proxy setup with SSL

Squid https transparent proxy setup with SSL Let’s understand first how squid proxy works in transparent mode. While setting up squid as a transparent proxy we can forward the entire request coming from port 80 to squid server’s port i.e. 3128 by default. When we talk about port 80 it means http protocol. What if […]

setup vacation auto responder with sendmail

Requirement: Vacation, Sendmail, SquirrelMail, SquirrelMail Local User Autoresponder and Mail Forwarder plugin, SquirrelMail Compatibility plugin, vsftp and CentOS 5 1. Download vacation-1.2.6.3.tar.gz from the link below: – http://vacation.sourceforge.net 2. Extract the vacation to a temporary directory as below: – tar xvfz vacation-1.2.6.3.tar.gz -C /tmp 3. Change directory to /tmp/vacation-1.2.6.3 as below: – cd /tmp/vacation-1.2.6.3 4. […]

mdadm – software raid lost after reboot- solved

mdadm  doesn’t record the raid settings automatically, after you set everything up, you have to remember to save the mdadm.conf file. Anyway, I forgot to do that, and on reboot, it hung my machine So here is how I recovered it. originally, my stripe was created with: mdadm -C /dev/md0 –level=raid0 –raid-devices=2 /dev/hda3 /dev/hdc1 and so […]

Free up inactive memory in Mac OSX Mountain Lion

Mac OS X has fairly good memory management but it’s not perfect, and sometimes RAM can be held unnecessarily in the “inactive” state despite the contents no longer being needed. If you’ve been participating in memory heavy activities or you just need to free up some available RAM you can actually force Mac OS X […]

how to install apt-get in Centos / Redhat

You may have noticed that “yum install apt” results in “nothing to do.” However, you can install it using YUM (centos uses YUM instead of APT). Since it requires downloading from a third party source (RPMforge). Please do so at your own risk. Download and install the rpm forge release, which will enable YUM to […]

Secured By miniOrange