<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-21316547</id><updated>2024-08-27T23:16:46.847-06:00</updated><title type='text'>Geofrey R. Burgos</title><subtitle type='html'>General creativity (usually something related to coding)</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://grburgos.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21316547/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://grburgos.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10794846192241489286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-21316547.post-4410601800128539034</id><published>2013-05-30T10:16:00.001-06:00</published><updated>2014-01-21T09:54:36.969-06:00</updated><title type='text'>Setup Tomcat 7 port redirects</title><content type='html'>&lt;br /&gt;
*This guide is for a CentOS 6 (or Red Hat derivatives) server that has Tomcat 7. No Apache or any other web servers are installed. (Just Tomcat)&lt;br /&gt;
&lt;br /&gt;
*Must be as root&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Redirect traffic from 80 to 8080:&lt;/b&gt;&lt;br /&gt;
&quot;iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080&quot;&lt;br /&gt;
&quot;iptables -t nat -A OUTPUT -p tcp --dport 80 -lo -j REDIRECT --to-port 8080&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Redirect traffic from 443 to 8443:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&quot;iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 8443&quot;&lt;br /&gt;
&quot;iptables -t nat -A OUTPUT -p tcp --dport 443 -lo -j REDIRECT --to-port 8443&quot;&lt;br /&gt;
&lt;br /&gt;
Then save your changes&lt;br /&gt;
&quot;/sbin/service iptables save&quot;&lt;br /&gt;
&lt;br /&gt;
You can verify the changes, if you look in the config file for iptables: &lt;br /&gt;
&quot;vi /etc/sysconfig/iptables&quot;&lt;br /&gt;
&lt;br /&gt;
Now in Tomcat 7 &quot;server.xml&quot; a minor configuration must be set. Here is the configuration for Tomcat to work with port 8080.&lt;br /&gt;
&lt;blockquote&gt;
&amp;lt;Connector compression=&quot;on&quot; connectiontimeout=&quot;20000&quot; connector=&quot;&quot; port=&quot;8080&quot; protocol=&quot;HTTP/1.1&quot; redirectport=&quot;443&quot;/&amp;gt;&lt;/blockquote&gt;
&lt;br /&gt;
redirectPort must be set to 443. This option is used if your Java web application has the restriction of only allowing secured connection. Thus if Tomcat receives a request for that application on port 8080 Tomcat will reply by redirecting the request to port 443. Which means that the Tomcat server must have configuration set to work with SSL.&lt;br /&gt;
Here is the configuration for Tomcat to work with SSL&amp;nbsp; &lt;br /&gt;
&lt;blockquote&gt;
&amp;lt;Connector clientauth=&quot;false&quot; compression=&quot;on&quot; keystorefile=&quot;YOUR KEYSTORE FILE LOCATION&quot; keystorepass=&quot;KEYSTORE PASSWORD&quot; maxthreads=&quot;200&quot; port=&quot;8443&quot; protocol=&quot;HTTP/1.1&quot; scheme=&quot;https&quot; secure=&quot;true&quot; sslenabled=&quot;true&quot; sslprotocol=&quot;TLS&quot;/&amp;gt;
&lt;/blockquote&gt;
&lt;br /&gt;
You might ask why is Tomcat listening on 8443 and 8080 when the traffic will be on 80 and&amp;nbsp; 443? Well that&#39;s where Iptables comes into play. All traffic that comes in at port 80/443 will be redirected to 8080/8443 respectively.&lt;br /&gt;
&lt;br /&gt;
Besides making the installation of the Tomcat server a little easier and a step in the right direction in setting it up as a production server.&amp;nbsp; Having the ability to run Tomcat with a restricted user instead of root is a good start for securing your server. Security is very important now a days, if things can be simple and still be secure then DO IT!
</content><link rel='replies' type='application/atom+xml' href='http://grburgos.blogspot.com/feeds/4410601800128539034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/21316547/4410601800128539034' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21316547/posts/default/4410601800128539034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21316547/posts/default/4410601800128539034'/><link rel='alternate' type='text/html' href='http://grburgos.blogspot.com/2013/05/iptables-redirect-ports-80-to-8080-and.html' title='Setup Tomcat 7 port redirects'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10794846192241489286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21316547.post-3202528466851873133</id><published>2010-07-07T08:59:00.002-06:00</published><updated>2014-01-21T10:00:23.606-06:00</updated><title type='text'>Glassfish v3 with ssl (using verisign certificate)</title><content type='html'>Step by step guide on how to enable SSL on a Glassfish server.&lt;br /&gt;
&lt;br /&gt;
1) create the keystore with this command (this is found in the jdk/bin)&lt;br /&gt;
keytool -genkey -alias test -keysize 2048 -keyalg RSA -keystore mykeystore.jks -dname &quot;CN=www.testsite.hn, OU=testing, O=Org namel, L=City name, S=State, C=country&quot;&lt;br /&gt;
&lt;br /&gt;
*remember the CN is the url you wish to cerftify so place it as wished.&lt;br /&gt;
&lt;br /&gt;
2)&lt;br /&gt;
*Create the request that versign needs&lt;br /&gt;
keytool -certreq -alias test  -keystore mykeystore.jks -file testserver.cer&lt;br /&gt;
&lt;br /&gt;
3)&lt;br /&gt;
Get all 3 certificates that versign gives you as following&lt;br /&gt;
*Save the email certificate as email.cer,&lt;br /&gt;
*Save the intermediate certificate as intermediate.cer&lt;br /&gt;
*Save the root certificate as root.cer&lt;br /&gt;
*perform the next steps, you can just copy &amp;amp; paste on the commandline&lt;br /&gt;
&lt;br /&gt;
keytool -import -alias verisigncert -keystore mykeystore.jks -trustcacerts -file root.cer&lt;br /&gt;
&lt;br /&gt;
keytool -import -alias verisigninter -keystore mykeystore.jks -trustcacerts -file intermediate.cer&lt;br /&gt;
&lt;br /&gt;
keytool -import -alias test-server -keystore mykeystore.jks -trustcacerts -file email.cer&lt;br /&gt;
&lt;br /&gt;
*Once that is done, go to and place the mykeystore.jks at glassfish/domain/domainX folder (domainX is the domain you wish the certificate to work at)&lt;br /&gt;
&lt;br /&gt;
4)&lt;br /&gt;
*Now we configure the ssl, to make this simple go and use the web admin consule, go to network config/Network Listener/http-listener-2&lt;br /&gt;
-Enable security&lt;br /&gt;
-port to listen 443 (MAKE SURE NO OTHER APP HAS USED THIS PORT)&lt;br /&gt;
&lt;br /&gt;
* Go to the SSL tab&lt;br /&gt;
Certificate NickName: test&lt;br /&gt;
Key Store: mykeystore.jks&lt;br /&gt;
&lt;br /&gt;
5)&lt;br /&gt;
*Go to the virtual servers and add&lt;br /&gt;
hosts:www.testsite.hn&lt;br /&gt;
(Has to be the same as the CN in the first step)&lt;br /&gt;
(Set the app as the default app for the url)&lt;br /&gt;
Default Web Module: YOURapp&lt;br /&gt;
&lt;br /&gt;
6)&lt;br /&gt;
* if your under windows go to windows/system32/drivers/hots and add&lt;br /&gt;
127.0.0.1 www.testsite.hn&lt;br /&gt;
&lt;br /&gt;
7) *restart glassfish and run your app</content><link rel='replies' type='application/atom+xml' href='http://grburgos.blogspot.com/feeds/3202528466851873133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/21316547/3202528466851873133' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21316547/posts/default/3202528466851873133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21316547/posts/default/3202528466851873133'/><link rel='alternate' type='text/html' href='http://grburgos.blogspot.com/2010/07/glassfish-v3-with-ssl-using-verisign.html' title='Glassfish v3 with ssl (using verisign certificate)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10794846192241489286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21316547.post-8828199111348552834</id><published>2009-02-11T09:21:00.016-06:00</published><updated>2009-03-11T19:21:40.628-06:00</updated><title type='text'>LINEH V1</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;LINEH (Linux en las escuelas de Honduras)&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://2.bp.blogspot.com/_0vXyBV2CpLE/SbBPNdPm2oI/AAAAAAAAABE/0JcOLajgv4c/s1600-h/bootup.PNG&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;&quot; src=&quot;http://2.bp.blogspot.com/_0vXyBV2CpLE/SbBPNdPm2oI/AAAAAAAAABE/0JcOLajgv4c/s320/bootup.PNG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5309831053276797570&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://2.bp.blogspot.com/_0vXyBV2CpLE/SbBPNo3h9GI/AAAAAAAAABM/OhpeiC3-KEw/s1600-h/gdm.PNG&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 239px;&quot; src=&quot;http://2.bp.blogspot.com/_0vXyBV2CpLE/SbBPNo3h9GI/AAAAAAAAABM/OhpeiC3-KEw/s320/gdm.PNG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5309831056397038690&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;El sistema operativo brinda asistencia a los maestros y alumnos en sus actividades diarias dentro y fuera de las escuelas.  Esta asistencia se brinda por medio de varias configuraciones y programas, son estas configuraciones y programas que permiten a los usuarios dedicarse a su labor y no preocuparse en lo que ocupen para realizarlo.&lt;br /&gt;Este sistema operativo es un derivado de Ubuntu Hardy. Por lo cual se puede instalar programas que se encuentran dentro de sus servidores.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://3.bp.blogspot.com/_0vXyBV2CpLE/SbBOf8kBHUI/AAAAAAAAAA8/shzfBxA6oXw/s1600-h/Lineh_Desktop.PNG&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 241px;&quot; src=&quot;http://3.bp.blogspot.com/_0vXyBV2CpLE/SbBOf8kBHUI/AAAAAAAAAA8/shzfBxA6oXw/s320/Lineh_Desktop.PNG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5309830271409921346&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Dentro muy poco se va publicar la pagina web.&lt;br /&gt;&lt;br /&gt;Actualmente esta distribución se puede obtener por medio de torrent en &lt;a href=&quot;http://www.mininova.org/tor/2270043&quot;&gt;www.mininova.org&lt;/a&gt;.&lt;br /&gt;Al igual se puede encontrar en los siguientes links directos.&lt;br /&gt;&lt;a href=&quot;http://www.mediafire.com/?sharekey=ef4a91fcf5f204db75a4fc82078ae6c84c332c26072adf3fb8eada0a1ae8665a&quot;&gt;media Fire&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://florida.dns2.us/lineh/&quot;&gt;florida dns&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;La meta distribución fue creada por mi parte, como mi proyecto de graduación.  Pretendo seguir dándole mantenimiento a el. Lo cual sera de gran ayuda sus comentarios.&lt;br /&gt;&lt;br /&gt;Problemas conocidos:&lt;br /&gt;&lt;br /&gt;Existen 2 URLS de los repositorios que estan obsoletos y daran error al actualizar. Se tiene que eliminar los siguientes urls:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;http://ppa.launchpad.net/network-manager/ubuntu hardy main&lt;/li&gt;&lt;li&gt;http://ppa.launchpad.net/openoffice-pkgs/ubuntu hardy main&lt;/li&gt;&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://grburgos.blogspot.com/feeds/8828199111348552834/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/21316547/8828199111348552834' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21316547/posts/default/8828199111348552834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21316547/posts/default/8828199111348552834'/><link rel='alternate' type='text/html' href='http://grburgos.blogspot.com/2009/02/lineh-v1.html' title='LINEH V1'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10794846192241489286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_0vXyBV2CpLE/SbBPNdPm2oI/AAAAAAAAABE/0JcOLajgv4c/s72-c/bootup.PNG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21316547.post-114447982662007438</id><published>2006-04-08T00:44:00.000-06:00</published><updated>2014-01-21T09:57:50.141-06:00</updated><title type='text'>Image Gallery</title><content type='html'>&lt;a href=&quot;http://photos1.blogger.com/blogger/873/2155/1600/chaos.1.jpg&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://photos1.blogger.com/blogger/873/2155/200/chaos.1.jpg&quot; height=&quot;150&quot; style=&quot;cursor: hand; float: left; height: 100px; margin: 0px 10px 10px 0px; width: 151px;&quot; width=&quot;151&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://photos1.blogger.com/blogger/873/2155/1600/chaos%203.0.jpg&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://photos1.blogger.com/blogger/873/2155/200/chaos%203.0.jpg&quot; height=&quot;86&quot; style=&quot;cursor: hand; float: left; height: 86px; margin: 0px 10px 10px 0px; width: 138px;&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://photos1.blogger.com/blogger/873/2155/1600/chaos%202.1.jpg&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://photos1.blogger.com/blogger/873/2155/200/chaos%202.1.jpg&quot; height=&quot;76&quot; style=&quot;cursor: hand; float: left; height: 104px; margin: 0px 10px 10px 0px; width: 130px;&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://photos1.blogger.com/blogger/873/2155/1600/chaos%204.0.jpg&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://photos1.blogger.com/blogger/873/2155/200/chaos%204.1.jpg&quot; height=&quot;105&quot; style=&quot;cursor: hand; float: left; height: 105px; margin: 0px 10px 10px 0px; width: 132px;&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://grburgos.blogspot.com/feeds/114447982662007438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/21316547/114447982662007438' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21316547/posts/default/114447982662007438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21316547/posts/default/114447982662007438'/><link rel='alternate' type='text/html' href='http://grburgos.blogspot.com/2006/04/mi-galeria-de-imagenes-que-he-hecho.html' title='Image Gallery'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10794846192241489286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>