<br>I had wrongly assumed the default destination address will be local/server address. It's working after specifying server ip in the 'to'. <br><br>--<br>shantanu.<br><br><div class="gmail_quote">On Wed, Jan 19, 2011 at 1:45 PM, shantanu pavgi <span dir="ltr"><<a href="mailto:shantanu.uab@gmail.com">shantanu.uab@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>Hi,</div><div><br></div><div>I am trying to configure firewall using ufw and getting following errors: </div>
<div>{{{</div><div>bitnami@linux:~$ sudo ufw insert 1 allow from <a href="http://10.0.0.0/255.255.0.0" target="_blank">10.0.0.0/255.255.0.0</a> to tcp port 22</div>
<div>ERROR: Bad destination address</div><div>bitnami@linux:~$ sudo ufw allow port 22</div><div>ERROR: Need 'to' or 'from' clause</div><div>}}}</div><div><br></div><div>I am not sure what mistake I did in above command, but clearly I am missing something in the syntax with from/to/port. </div>

<div><br></div><div>I ended up using iptables commands to add desired rule. </div><div>{{{</div><div>bitnami@linux:~$ sudo iptables -A INPUT -m tcp -p tcp -s <a href="http://10.0.0.0/16" target="_blank">10.0.0.0/16</a> --dport 22 -j ACCEPT </div>

<div>bitnami@linux:~$ sudo /sbin/iptables-save </div><div>}}}</div><div><br></div><div>Any help with ufw syntax will be really helpful. </div><div><br></div><div>--</div><div>Thanks,</div><div>Shantanu.</div>
</blockquote></div><br>