Skip to main content

Here is some basic iptable rules.  Thanks goes to the cloud support team at Rackspace.  

This rule appends the rule.  This particular rule  opens inbound port 5432 to the ipaddress 111.222.33.44


iptables -A RH-Firewall-1-INPUT -p tcp -s 111.222.33.44 --dport 5432 -j ACCEPT

This rule inserts the rule at the start of the chain.  

iptables -I RH-Firewall-INPUT -s 111.222.33.44 -p tcp -m tcp --dport 5432 -j ACCEPT

After adding rules you need to issue this command to save the rules.

service iptables save

After saving you need to issue the restart command
service iptables restart

If you want to see the available chains in your firewall use this command:
iptables -L

Comments

Popular posts from this blog

How to get ProxyPass to ignore a URL so you can still use Apache HTACCESS

On a few of my servers I use Apache with Apache Tomcat. and ProxyPass to forward requests from apache over to Tomcat for my Coldfusion pages.

The part I have been struggling with for so long was how to do password protected directories in apache.  Either by adding the config to the VirtualHost directive or by .htaccess.

It seemed no matter what I did, requests were getting proxied and there was nothing I could do about it.

Tonight I finally found my answer:

The ProxyPass !  combo:

ProxyPass /dealers/ !

Here is the whole apache configuration I use for connecting Apache to Tomcat and URL Rewriting:






I found this mentioned on a Sitepoint Post

UPS - User Id and Shipper Number combination is not qualified to receive negotiated rates.

Today I started to receive the following message from the UPS API:

User Id and Shipper Number combination is not qualified to receive negotiated rates.

and to make matters worse, the result of this issue caused the checkout process to error preventing our customers from finishing their orders.

So after doing a little research on my end I ended up calling the UPS technical support phone number for the United States:

Over the phone we went over the following steps:

UPS.COM
You must add and authenticate your account using Account Summary to view Negotiated Rates in UPS Internet Shipping, Time and Cost Calculator on ups.com, and the UPS Developer Kit - Shipping and Rating APIs.

To add and authenticate an account:

1. Login to ups.com using your My UPS ID and password.
2. Select the My UPS tab at the top of the page.
3. Select Account Summary from the navigation menu or the tab rollover.
4. From there select Add an Existing UPS Account.
5. Follow the steps to authenticate the account. To authenticate…

Jetty Locking Files on Windows

I went to edit a css file today on a server an OpenBD Jetty install and the file was locked.  After doing some research I found this http://docs.codehaus.org/display/JETTY/Files+locked+on+Windows

I chose to just stop and restart Jetty because I was on a dev box.  The instructions seem to be straight forward.

My question is though.  If I disable the memory mapped files will there a performance degradation?