--- On Sat, 8/8/09, Aman Kumar Jain <[email protected]> wrote:
> From: Aman Kumar Jain <[email protected]>
> Subject: [PLUG] Block a port except for localhost.
> To: [email protected]
> 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/
_______________________________________
Pune GNU/Linux Users Group Mailing List