Can't add curl package?
-
So I'm trying to set up port forwarding for my VPN, and I'm following the instructions laid out here:
ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/LatestI'm stuck on adding curl and xmlstarlet packages. I ssh to my PfSense box and when I try to install them, I get this error:
: pkg_add -r curl Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/Latest/curl.tbz: Can't open data connection pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/Latest/curl.tbz' by URL
What's wrong?
-
Can you download anything from the command line? For example:
[2.1.1-PRERELEASE][root@pfsense.localdomain]/root(17): fetch -o /dev/null http://updates.pfsense.org/_updaters/version /dev/null 100% of 12 B 100 kBps
If not it could be this:
https://doc.pfsense.org/index.php/Controlling_IPv6_or_IPv4_PreferenceSteve
-
Yes, Steve, that works. I get the same output as you.
[2.1-RELEASE][admin@pfsense.localdomain]/root(17): fetch -o /dev/null http://updates.pfsense.org/_updaters/version /dev/null 100% of 12 B 212 kBps
-
What about the actual package file:
[2.1.1-PRERELEASE][root@pfsense.localdomain]/root(5): fetch -o /dev/null ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/Latest/curl.tbz /dev/null 100% of 1291 kB 479 kBps
Steve
-
Nope.
[2.1-RELEASE][admin@pfsense.localdomain]/root(18): fetch -o /dev/null ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/Latest/curl.tbz fetch: ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/Latest/curl.tbz: Can't open data connection
-
Ok, that got me thinking. I tuned off my VPN and I was able to install both packages.
Problem solved, I think.
-
Some odd routing going on perhaps. ;)
Steve
-
So, maybe it's not working as I thought.
[2.1-RELEASE][admin@pfsense.localdomain]/var/log(46): pkg_add -r curl Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/Latest/curl.tbz... Done. pkg_add: package 'curl-7.24.0' or its older version already installed [2.1-RELEASE][admin@pfsense.localdomain]/var/log(47): curl curl: Command not found.
What's going on?
-
Either you already installed it or pfSense already has a newer version of curl that has been included for some feature or security update. It's easy to cause problems in pfSense by installing FreeBSD packages. pfSense has many, many patches from the FreeBSD release and if you overwrite those bad things happen. ;)
Steve
-
So how do I get curl working?
-
What's not working about it if it's already installed? What are you trying to do? Not that I have much experience using curl. ;)
Steve
-
When I run the curl command, I just get "command not found"
I'm trying to get port forwarding to work with PIA. Following the instructions here:
https://forum.pfsense.org/index.php/topic,71725.msg399818.html
-
What other packages do you have installed on that box, either pfSense or FreeBSD packages?
You might have to specify the path to curl if it's not in the system path. You'll notice the script specified a whole host of directories.
Steve
-
Of course, the path! Thanks. I'll specify the path and see how that goes. Thanks.
-
If you installrf curl and command is not found just try a simple rehash.
rehash curl