Giter VIP home page Giter VIP logo

tunnels's Introduction

Tunnels

image

Tunnels is a proxy to http from https.

You can run the Pow over SSL!

Installation

$ gem install tunnels

Run

$ sudo tunnels

If you are using rvm:

$ rvmsudo tunnels

By default, proxy to 80 port from 443 port.

specify "http" port and "https" port:

$ sudo tunnels 443 3000

or

$ sudo tunnels 127.0.0.1:443 127.0.0.1:3000

Copyright

Copyright (c) 2012 jugyo, released under the MIT license.

tunnels's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar

tunnels's Issues

Unable to install on OS X El Capitan GM Candidate 1

I'm getting this error while trying to install on OS X 10.11 (15A282b):

Building native extensions.  This could take a while...
ERROR:  Error installing tunnels:
    ERROR: Failed to build gem native extension.

    ~/.rbenv/versions/2.2.2/bin/ruby -r ./siteconf20150918-12329-1xmlmni.rb extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... no
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for inotify_init() in sys/inotify.h... no
checking for __NR_inotify_init in sys/syscall.h... no
checking for writev() in sys/uio.h... yes
checking for rb_thread_fd_select()... yes
checking for rb_fdset_t in ruby/intern.h... yes
checking for pipe2() in unistd.h... no
checking for accept4() in sys/socket.h... no
checking for SOCK_CLOEXEC in sys/socket.h... no
checking for rb_wait_for_single_fd()... yes
checking for rb_enable_interrupt()... no
checking for rb_time_new()... yes
checking for sys/event.h... yes
checking for sys/queue.h... yes
CFLAGS= -O3 -Wno-error=shorten-64-to-32  -pipe  -Wall -Wextra -Wno-deprecated-declarations -Wno-ignored-qualifiers -Wno-unused-result
CPPFLAGS=-I~/.rbenv/versions/2.2.2/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT $(DEFS) $(cppflags) -Wall -Wextra -Wno-deprecated-declarations -Wno-ignored-qualifiers -Wno-unused-result
checking for clock_gettime()... no
checking for gethrtime()... no
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling binder.cpp
In file included from binder.cpp:20:
./project.h:116:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
         ^
1 error generated.
make: *** [binder.o] Error 1

make failed, exit code 2

Could not find Tunnels Exception

sudo tunnels
/Users/kevin/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find tunnels (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.5.4, minitest-2.5.1, rake-0.9.2.2, rdoc-3.9.4] (Gem::LoadError)
    from /Users/kevin/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
    from /Users/kevin/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems.rb:1208:in `gem'
    from /Users/kevin/.rvm/gems/ruby-1.9.3-p125/bin/tunnels:18:in `<main>'

Crashes when request is received OS X 10.11

Tunnels installs, and starts without an issue on El Capitan, but when it receives a request it crashes.

⋊> ~/D/s/sylva on master ⨯ sudo tunnels
127.0.0.1:443 --(--)--> 127.0.0.1:80
Ready :)


>  browser navigates to https://sylva.dev


libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: Encryption not available on this event-machine

Running Ruby 2.2.3

⋊> ~/D/s/sylva on master ⨯ ruby --version                
ruby 2.2.3p173

With the following gems:

actionmailer (4.2.4)
actionpack (4.2.4)
actionview (4.2.4)
activejob (4.2.4)
activemodel (4.2.4)
activerecord (4.2.4)
activesupport (4.2.4)
addressable (2.3.8)
arel (6.0.3)
bcrypt (3.1.10)
bigdecimal (1.2.6)
binding_of_caller (0.7.2)
builder (3.2.2)
bundler (1.10.6)
byebug (6.0.2)
coffee-rails (4.1.0)
coffee-script (2.4.1)
coffee-script-source (1.9.1.1)
css_parser (1.3.7)
daemons (1.2.3)
debug_inspector (0.0.2)
devise (3.5.2)
erubis (2.7.0)
eventmachine (1.0.5)
execjs (2.6.0)
faker (1.5.0)
foreman (0.78.0)
globalid (0.3.6)
haml (4.0.7)
haml-rails (0.9.0)
html2haml (2.0.0)
htmlentities (4.3.4)
i18n (0.7.0)
io-console (0.4.3)
jbuilder (2.3.2)
jquery-rails (4.0.5)
json (1.8.3, 1.8.1)
jwt (1.5.1)
loofah (2.0.3)
mail (2.6.3)
mailcatcher (0.6.1)
mime-types (2.6.2)
mini_portile (0.6.2)
minitest (5.8.1, 5.4.3)
multi_json (1.11.2)
nokogiri (1.6.6.2)
orm_adapter (0.5.0)
pg (0.18.3)
power_assert (0.2.2)
premailer (1.8.6)
premailer-rails (1.8.2)
psych (2.0.8)
puma (2.14.0)
rack (1.6.4)
rack-cors (0.4.0)
rack-protection (1.5.3)
rack-test (0.6.3)
rails (4.2.4)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.7)
rails-html-sanitizer (1.0.2)
rails_12factor (0.0.3)
rails_serve_static_assets (0.0.4)
rails_stdout_logging (0.0.4)
railties (4.2.4)
rake (10.4.2)
rdoc (4.2.0)
responders (2.1.0)
ruby_parser (3.7.1)
sass (3.4.18)
sass-rails (5.0.4)
sdoc (0.4.1)
sexp_processor (4.6.0)
sinatra (1.4.6)
skinny (0.2.3)
spring (1.4.0)
sprockets (3.3.5)
sprockets-rails (2.3.3)
sqlite3 (1.3.11)
test-unit (3.0.8)
thin (1.5.1)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.1)
tunnels (1.2.2)
tzinfo (1.2.2)
uglifier (2.7.2)
warden (1.2.3)
web-console (2.2.1)

SSL certificate confusion

Hi,

Really love this gem, very useful. One thing that confused me was the SSL certificate that was used when using tunnels in its default setup of proxying requests on port 443 to port 80.

After trawling through the code I discovered the SSL certificate that is used is from within the eventmachine gem. I was initially quite concerned when I saw the cert was for steamheat.net, but it's OK.

Might be worth mentioning this in the README to avoid any potential future concerns ?

Thanks,

Ash.

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.