Mike Fisher (mfisher) wrote,
Mike Fisher

FreeBSD port connectivity workaround

FreeBSD ports use without DNS/direct connectivity.

1) Set up an SSH SOCKS5 tunnnel.

$ ssh -fND localhost:1080 routed_host

2) Override the fetch(1) defaults (documented in /usr/ports/Mk/bsd.port.mk).

$ export DISABLE_SIZE=1
$ export FETCH_CMD="curl --socks5-hostname localhost --remote-name"

3) Work normally. If using sudo(8), remember "-E" (to pass the environment variables above).

4) Clean up by killing the SSH SOCKS5 tunnel.

  • Request Tracker Note

    At my job, we use Request Tracker for managing our help desks. We basically love it -- but we keep adding new queues for different requirements,…

  • Where's the Love, Frontier?

    "If Google built its own network, we estimate it would cost $5,000 per household," said Ann Burr, chairman and general manager of Frontier…

  • (no subject)

    Submission to the Google Fiber for Communities site: Q: Why should Google build a fiber to the home network where you live? A: Rochester has a…

  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.