Giter Site home page Giter Site logo

tamsky / chrome-app-connection-forwarder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kzahel/connection-forwarder

0.0 2.0 0.0 135 KB

Chromebook app for forwarding connections from/to different ports and interfaces (or to internal android IP)

Home Page: https://chrome.google.com/webstore/detail/connection-forwarder/ahaijnonphgkgnkbklchdhclailflinn

CSS 1.84% JavaScript 92.48% HTML 1.91% Shell 3.77%

chrome-app-connection-forwarder's Introduction

Connection Forwarder

(TCP Socket forwarder app)

Available in webstore: https://chrome.google.com/webstore/detail/connection-forwarder/ahaijnonphgkgnkbklchdhclailflinn

I made this app so that I could ssh into termux running on a chromebook without developer mode. Maybe you find it useful for something else.


Update 2: It's useful again as ports are not automatically forwarded for crostini (linux) containers

Update 1: Android container apps automatically forward listening ports to the LAN since Chrome 63.


  • Use case 1: make termux sshd available on the LAN, not just on the local chromebook.
  • Use case 2: make crostini container service available on LAN or localhost
  • Use case 3: make an android-based development server (such as apache or php etc) available on the local network
  • Use case 4: (??) Let me know [email protected] or create an issue

Background info: android runs on a chromebook on a NAT interface that is not exposed directly on the LAN. Certain services are forwarded (such as mDNS). Everything else, not. This app lets you setup simple forwarding rules to have certain ports get forwarded to the internal android interface.

Build / development setup notes

The nice react auto reload tools don't work very well in the chrome app context (which disallow eval, inline scripts, external resources (loaded via URL). Basically all app code must be statically present in the app directory at launch time.

  • git clone (this repository)
  • cd react-ui; npm install; ./node_modules/.bin/webpack --watch
  • Go to chrome://extensions, check the developer mode box, click load unpacked extension, select the "app" folder in this repository.
  • (optional) run sh scripts/reloader.sh (uses linux inotifywatch, for osx you'll need to modify this script)

Release History

  • 2017-11-4 - created react based UI
  • 2017-10-26 - Initial version used to get access to the SSH server running on tmux

TODO

  • UDP packet forwarding
  • cleanup/close sockets ✔️
  • create a UI to create/remove rules ✔️
  • add options such as autostart, backgrounding, etc ✔️
  • localhost listening API to list/add/remove forwards.

LICENSE

MIT

chrome-app-connection-forwarder's People

Contributors

kzahel avatar

Watchers

James Cloos avatar  avatar

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.