cod3fr3ak
February 6th, 2006, 12:48
I have a Solaris 9 server running IPF version 3.4.35, and Tomcat version 5.x.
I need to place this server in the DMZ in place of an ailing Apache/mod_jk/Tomcat server.
Tomcat runs on port 8080 and 8443, in order to facilitate webadmins shutting down and restarting the server.
here is a copy of my ipnat.conf:
# ipnat.conf - 080905
# Redirect port 80 to 8080
rdr eri0 x.x.x.137/32 port 80 -> x.x.x.137 port 8080 tcp
# Redirect port 443 to 8443
rdr eri0 x.x.x.137/32 port 443 -> x.x.x.137 port 8443 tcp
Here is the ipf.conf:
# ipf.conf - 080905
# Deny all incoming
block in all
# inbound traffic - http, https
pass in quick on eri0 proto tcp from any to x.x.x.137 port = 8080 flags S keep state
pass in quick on eri0 proto tcp from any to x.x.x.137 port = 8443 flags S keep state
# Allow all outgoing
pass out quick on eri0 from any to any keep state
Is this correct? This works but it leaves the proxy ports open. I'd prefer that cleints not
have direct access to 8080, only 80.
After working with PF for so long, working with IPF is really a pain, not mention
I have been unable to compile the lastest source, in order to upgrade.
I need to place this server in the DMZ in place of an ailing Apache/mod_jk/Tomcat server.
Tomcat runs on port 8080 and 8443, in order to facilitate webadmins shutting down and restarting the server.
here is a copy of my ipnat.conf:
# ipnat.conf - 080905
# Redirect port 80 to 8080
rdr eri0 x.x.x.137/32 port 80 -> x.x.x.137 port 8080 tcp
# Redirect port 443 to 8443
rdr eri0 x.x.x.137/32 port 443 -> x.x.x.137 port 8443 tcp
Here is the ipf.conf:
# ipf.conf - 080905
# Deny all incoming
block in all
# inbound traffic - http, https
pass in quick on eri0 proto tcp from any to x.x.x.137 port = 8080 flags S keep state
pass in quick on eri0 proto tcp from any to x.x.x.137 port = 8443 flags S keep state
# Allow all outgoing
pass out quick on eri0 from any to any keep state
Is this correct? This works but it leaves the proxy ports open. I'd prefer that cleints not
have direct access to 8080, only 80.
After working with PF for so long, working with IPF is really a pain, not mention
I have been unable to compile the lastest source, in order to upgrade.