You are not logged in.

#1 2012-05-09 22:47:31

lgeek
Member
From: Europe, Portugal
Registered: 2012-03-09
Posts: 70

Setup UFW Rules (Allow Dynamic DNS instead of putting an IP Adress)

It is possible that instead putting my ip address, that I can put a dynamic dns. Example: test.no-ip.org
sudo ufw allow test.no-ip.org
Is this Possible?
I was until now using firestarter, but it's become buggy and doesn't show active connections.
For seeing active connections I use: lsof -i -n -P and with some grep action works fine for fiding active services. Example: sudo lsof -i -n -P| grep sshd
Thanks.

Last edited by lgeek (2012-05-09 22:56:19)

Offline

#2 2012-05-10 00:22:41

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,226
Website

Re: Setup UFW Rules (Allow Dynamic DNS instead of putting an IP Adress)

lgeek wrote:

It is possible that instead putting my ip address, that I can put a dynamic dns. Example: test.no-ip.org
sudo ufw allow test.no-ip.org
Is this Possible?

Yes, but the address will be resolved to an IP Address at the time you run that command. If the DNS is updated to a new address, you will need to rerun the command.

This is a limitation of the fact that the firewall operates at OSI Layer 3 and 4 where hostnames and DNS do not exist.

Offline

#3 2012-05-10 18:11:43

lgeek
Member
From: Europe, Portugal
Registered: 2012-03-09
Posts: 70

Re: Setup UFW Rules (Allow Dynamic DNS instead of putting an IP Adress)

If I do: sudo ufw allow test.no-ip.org
It gives me this: ERROR: Could not find a profile matching 'test.no-ip.org'
Is there a solution, or nedd to use other command?

Offline

#4 2012-05-10 23:16:06

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,226
Website

Re: Setup UFW Rules (Allow Dynamic DNS instead of putting an IP Adress)

Ah ok, sorry I misinterpreted your query a little bit... I don't use ufw so I'm not sure on the exactly syntax but ufw is just an abstraction of iptables so I would extremely surprised (and add another reason to the list why I don't use ufw) if it doesn't support something so basic somehow.

Offline

#5 2012-05-11 06:17:54

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Setup UFW Rules (Allow Dynamic DNS instead of putting an IP Adress)

What are you trying to accomplish exactly? The ip address to which 'test.no-ip.org' will resolve belongs to a machine behind the box that will be running ufw and you're trying to set up some basic access control? What does your network setup look like (generally, don't need every specific detail)?


Burninate!

Offline

#6 2012-05-11 06:37:01

barko
Member
From: SLV
Registered: 2011-05-31
Posts: 72

Re: Setup UFW Rules (Allow Dynamic DNS instead of putting an IP Adress)

For basic understanding of the UFW/Firewall you should check first this page: https://wiki.archlinux.org/index.php/Ufw
And you can install gufw package from AUR: http://aur.archlinux.org/packages.php?ID=57480

Easy to manage. Have fun! smile

Last edited by barko (2012-05-11 06:39:29)

Offline

Board footer

Powered by FluxBB