The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Passive fetch with ports
Author: Robert Goff 
Date:   02-08-01 20:31

I recently improved my firewall rules to block ports for all the unused services on my machine (the standard rc.firewall "simple" configuration with the patch recommended in a problem report I can't find again). By default, this blocks the ftp-data port from outside the local network.

FTP clients, including fetch, have a "passive" mode to deal with this. However, if you're simply typing 'make' in a ports directory, the 'make fetch' target will fail because it invokes fetch without passive mode. My first solution was to open the ftp-data port in the firewall rules, but I wanted the 'make fetch' target to use a passive fetch.

The answer was to add 'FETCH_CMD = /usr/bin/fetch -P' to /etc/make.conf. The name, 'FETCH_CMD', is documented in the ports man page, but not where to put it.

Reply To This Message
 
 Perfect thank you
Author: Anonymous 
Date:   28-01-03 14:30

Perfect Thank you

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org