ufw syntax errors

shantanu pavgi shantanu.uab at gmail.com
Wed Jan 19 19:52:26 UTC 2011


I had wrongly assumed the default destination address will be local/server
address. It's working after specifying server ip in the 'to'.

--
shantanu.

On Wed, Jan 19, 2011 at 1:45 PM, shantanu pavgi <shantanu.uab at gmail.com>wrote:

> Hi,
>
> I am trying to configure firewall using ufw and getting following errors:
> {{{
> bitnami at linux:~$ sudo ufw insert 1 allow from 10.0.0.0/255.255.0.0 to tcp
> port 22
> ERROR: Bad destination address
> bitnami at linux:~$ sudo ufw allow port 22
> ERROR: Need 'to' or 'from' clause
> }}}
>
> I am not sure what mistake I did in above command, but clearly I am missing
> something in the syntax with from/to/port.
>
> I ended up using iptables commands to add desired rule.
> {{{
> bitnami at linux:~$ sudo iptables -A INPUT -m tcp -p tcp -s 10.0.0.0/16--dport 22 -j ACCEPT
> bitnami at linux:~$ sudo /sbin/iptables-save
> }}}
>
> Any help with ufw syntax will be really helpful.
>
> --
> Thanks,
> Shantanu.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110119/fb79ec71/attachment.html>


More information about the ubuntu-users mailing list