Coder Social home page Coder Social logo

eyedeekay / apt-transport-i2p Goto Github PK

View Code? Open in Web Editor NEW
19.0 5.0 0.0 16.67 MB

An apt transport method enabling i2p using the SAM bridge.

License: MIT License

Makefile 5.23% Go 94.77%
i2p i2p-transport sam-bridge apt-transport transport apt-get

apt-transport-i2p's Introduction

i2p transport for apt

This is a simple transport for downloading debian packages from a repository over i2p. It uses the SAM bridge and is pretty much just a modified version of diocles/apt-tranport-http-golang, a plain HTTP transport for apt, and by modified I mean like, a couple dozen lines. This way, it uses an ephemeral destination instead of the HTTP proxy which could be associated with your other traffic.

Besides that, I think most would agree that it is simpler to use an apt transport to detect when a package should be retrieved from an i2p service. Especially in cases where the user is mixing packages from Tor, I2P, and Clearnet sources, this process can become confusing and involve configuring multiple applications along with apt. Instead, apt-transport-i2p works with other apt transports like apt-transport-tor and requires no configuration on the vast majority of systems.

WARNING: I'm introducing a change which will break existing installations of this software. When you update, make sure to update your sources.list to use the new namespace. Change all occurrences of "i2p://" to "i2psam://"

This application does not have outproxy support. If you need anonymous access to Debian packages over the clearnet, consider apt-transport-tor or the forthcoming apt-transport-i2phttp, which makes use of the HTTP proxy.

This application is beta software, more-or-less. I don't plan to change it, but I will respond to any issues that you submit. The branch tunnel-multiplexer is pre-alpha, and will become the second version of apt-transport-i2p.

To install it:

If you're using Java I2P, you'll need to enable your SAM Application Bridge to be able to use the SAM API. In the browser you use to visit the router console, open 127.0.0.1:7657/configclient and check the box to run the SAM Application bridge at startup, then save your client configuration.

Enable the SAM bridge

Then click the ">" arrow to the right of the check box to manually start the SAM bridge on the running router.

Once you've enabled the just:

    make build && sudo make install

to install bin/apt-transport-i2p to /usr/lib/apt/methods/i2psam

To use it:

Adding this to your sources.list.d will configure apt to seek updates to ppa.launchpad.net/i2p-maintainers from a caching proxy at the b32 address: h2knzawve56vtiimbdsl74bmbuw7xr65xhgrdjtjnbfxxw4hsqlq.b32.i2p

    deb i2psam://h2knzawve56vtiimbdsl74bmbuw7xr65xhgrdjtjnbfxxw4hsqlq.b32.i2p/ppa.launchpad.net/i2p-maintainers/i2p/ubuntu bionic main
    deb-src i2psam://h2knzawve56vtiimbdsl74bmbuw7xr65xhgrdjtjnbfxxw4hsqlq.b32.i2p/ppa.launchpad.net/i2p-maintainers/i2p/ubuntu bionic main

apt-transport-i2p's People

Contributors

eyedeekay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

apt-transport-i2p's Issues

Guinea-Pigging

Before going on the labs page, I need to:

  • update the readme to include a clear use case and explanation why this solves a problem.
  • update the readme to clarify that the stable version is not able to use an outproxy
  • a usable example repository with a working configuration file
  • instructions on how to add i2p-based repositories via the synaptic GUI
  • Change the namespace "i2p:" in use to "i2psam:" to make it easier to delineate HTTP proxy transport and SAM-based transport
  • A configurable SAM host:port pair in the master branch
  • A proper package (Pretty much, but it's not built from a stable tag)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.