We will need a non-127.0.0.1 alias address on the loopback interface for port forwarding. Here is shell script for this task /etc/rc.d/init.d/lo1network
#! /bin/bash
#
# lo1network Bring up interface lo:1
#
# chkconfig: 2345 11 89
# description: Activates special loopback interface for nat
#
### BEGIN INIT INFO
# Provides: $lo1network
### END INIT INFO
. /etc/init.d/functions
LO1IFACE="lo:1"
LO1ADDRESS="172.16.111.1"
LO1NETMASK="255.255.255.0"
test -r /etc/sysconfig/lo1network && . /etc/sysconfig/lo1network
/sbin/ifconfig $LO1IFACE $LO1ADDRESS netmask $LO1NETMASK
exit 0
Make it run on system bootRead more