Config Scrapbook
Resin 3.1

Documentation
Examples
Changes

Overview
Installation
Configuration
Quercus
SOA/IoC
JSP
Servlets and Filters
Admin (JMX)
EJB
Amber
Security
Performance
Hessian
XML and XSLT
Third-party
Troubleshooting/FAQ

tags
Common Tasks
Relax Schema
howto
Config FAQ
Scrapbook
DB Scrapbook
Config FAQ
Configuration
DB Scrapbook

A repository of notes and comments that will eventually make their way into the documentation. Please treat the information here with caution, it has often not been verified.

alternative to making resin executable for binding to port 80 on Linux?

Linux 2.2.x
ipchains -A input -i eth+ -j REDIRECT 8080 -p tcp --destination-port 80
        
Linux 2.4.x
IP=192.168.0.1

iptables -t nat -A PREROUTING -p tcp --dport 80 -d $IP -j DNAT --to $IP:8080

iptables -t nat -A PREROUTING -p tcp --dport 443 -d $IP -j DNAT --to $IP:8080
      
Using iptables to redirect ports 80 and 443
#!/bin/sh
SCRIPTLOCATION="/usr/local/bin/iptables/"
IPLIST="192.168.3.160 192.168.3.161 192.168.3.162 192.168.3.163 192.168.3.164"
CURRENTIP=""
IPTABLES="/sbin/iptables"
#Clear out any existing firewall rules, and any chains that might have
#been created
$IPTABLES -F
$IPTABLES -F INPUT
$IPTABLES -F OUTPUT
$IPTABLES -F FORWARD
$IPTABLES -F -t mangle
$IPTABLES -F -t nat
$IPTABLES -X

for CURRENTIP in $IPLIST; do
	$IPTABLES -t nat -A PREROUTING -p tcp --dport 80 -d $CURRENTIP -j DNAT --to $CURRENTIP:8080
done

$IPTABLES -t nat -A PREROUTING -p tcp --dport 443 -d 192.168.3.164 -j DNAT --to 192.168.3.164:8443
	
$IPTABLES-save > $SCRIPTLOCATION/tablesave

Config FAQ
Configuration
DB Scrapbook
Copyright © 1998-2006 Caucho Technology, Inc. All rights reserved.
Resin ® is a registered trademark, and Quercustm, Ambertm, and Hessiantm are trademarks of Caucho Technology.