ufw syntax errors

shantanu pavgi shantanu.uab at gmail.com
Wed Jan 19 19:45:03 UTC 2011


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/34f45074/attachment.html>


More information about the ubuntu-users mailing list