[PLUG] Block a port except for localhost.

murtuja bharmal murtuja_bharmal at yahoo.com
Thu Aug 13 12:26:47 IST 2009




--- On Sat, 8/8/09, Aman Kumar Jain <mails4aj at gmail.com> wrote:

> From: Aman Kumar Jain <mails4aj at gmail.com>
> Subject: [PLUG] Block a port except for localhost.
> To: plug-mail at plug.org.in
> Date: Saturday, 8 August, 2009, 7:05 AM
> Hi,
> 
>  
> 
> I have setup redis (http://code.google.com/p/redis/) on an ubuntu server
> which works on port 6379. 
> 
> How do I block the access to this port except from
> localhost?
> 


If you are using iptables 

iptables -A INPUT -i lo -p tcp --dport 6379 -j ACCEPT
iptables  -A INPUT -p tcp --dport 6379 -j DROP

murtuja bharmal
website: http://null.co.in


      Looking for local information? Find it on Yahoo! Local http://in.local.yahoo.com/




More information about the Plug-mail mailing list