How to create a url alias?
-
hello,
i cannot seem to create a url alias say http://www.facebook.com on the create url alias tab. i am always getting this error:
"The following input errors were detected: You must provide a valid URL. Could not fetch usable data."
i am using pfsense 2.0.1 version. ???
-
did you tried just www.facebook.com on your alias?
-
did you tried just www.facebook.com on your alias?
i just did but the error now says:
"The following input errors were detected:
You must provide a valid URL."
The error "could not fetch usable data." is gone.
-
Are you trying url table alias? ???
You need a simple alias with www.facebook.com, not url table alias.
Include apps.facebook.com on this alias too.
-
no. url alias only. entering http://www.anywebsite.com or just www.anywebsite.com results in that error. ???
-
i found this thread
http://forum.pfsense.org/index.php?topic=38720.0
and i'm wondering if url alias is fixed?? on the latest pfsense version. ???
-
-
There is no problem with that.
the alias type is host, not url. ;)
there is an alias type url. :)
-
The alias type url downloads alias list from a url
Sample:
Http://192.168.1.1/mylist.php
Mylist.php returns
Www.facebook.com
apps.facebook.com -
i will try alias by host type tomorrow as i am not on my server at the moment. i did not try that because as you can see from your screenshot that host entries by this type should be entered by their ip address not by its web address or fqdn name??? please correct me if i am wrong with that. thanks for the help :)
-
Use alias=host and ip=fqdn.
-
just food for thought… if you create a host or url alias(having it point to a list with domain names in it) doesn't pfsense just grab the first IP address it resolves and puts in in a table?
-
Yes, it will. Every apply or rules reload.
If dns changes you do not need to find old alias ip to replace.
But it will not work on sites from akamai.net for example.
-
It does take every IP that comes back though, so if you feed it www.facebook.com it only returns one IP, such as 69.171.228.14 - so that table would only have a single IP.
But if you give it something like www.google.com which returns 6 IPs at once, then all 6 would be in the table.
-
alias by host type is really what i need and it works. thanks marcelloc :)