rtunnel 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest.txt CHANGED
@@ -1,8 +1,12 @@
1
1
  History.txt
2
2
  Manifest.txt
3
3
  README.txt
4
+ rtunnel_client.rb
5
+ rtunnel_server.rb
4
6
  bin/rtunnel_client
5
7
  bin/rtunnel_server
8
+ lib/rtunnel_client_cmd.rb
9
+ lib/rtunnel_server_cmd.rb
6
10
  lib/client.rb
7
11
  lib/core.rb
8
12
  lib/server.rb
data/README.txt CHANGED
@@ -11,6 +11,7 @@ http://code.google.com/p/rtunnel
11
11
 
12
12
  == SYNOPSIS:
13
13
 
14
+ reverse tunneling client/server
14
15
 
15
16
  == REQUIREMENTS:
16
17
 
data/bin/rtunnel_client CHANGED
@@ -1,24 +1,3 @@
1
- $LOAD_PATH << 'lib'
1
+ #!/usr/bin/ruby
2
2
 
3
- require 'client'
4
-
5
- $debug = true
6
-
7
- control_address = tunnel_from_address = tunnel_to_address = remote_listen_address = nil
8
-
9
- (opts = OptionParser.new do |o|
10
- o.on("-c", "--control-address ADDRESS") { |a| control_address = a }
11
- o.on("-f", "--remote-listen-port ADDRESS") { |a| remote_listen_address = a }
12
- o.on("-p", "--tunnel-port ADDRESS") { |a| tunnel_port = a }
13
- o.on("-t", "--tunnel-to ADDRESS") { |a| tunnel_to_address = a }
14
- end).parse! rescue (puts opts; exit)
15
-
16
- (puts opts; exit) if [control_address, remote_listen_address, tunnel_to_address].include? nil
17
-
18
- client = RTunnel::Client.new(
19
- :control_address => control_address,
20
- :remote_listen_address => remote_listen_address,
21
- :tunnel_to_address => tunnel_to_address
22
- )
23
- client.start
24
- client.join
3
+ load 'rtunnel_client_cmd.rb'
data/bin/rtunnel_server CHANGED
@@ -1,20 +1,3 @@
1
- $LOAD_PATH << 'lib'
1
+ #!/usr/bin/ruby
2
2
 
3
- require 'server'
4
-
5
- $debug = true
6
-
7
- control_address = tunnel_port = nil
8
-
9
- (opts = OptionParser.new do |o|
10
- o.on("-c", "--control ADDRESS") { |a| control_address = a }
11
- o.on("-t", "--tunnel-port PORT") { |a| tunnel_port = a }
12
- end).parse! rescue (puts opts; exit)
13
-
14
- server = RTunnel::Server.new(
15
- :control_address => control_address,
16
- :tunnel_port => tunnel_port
17
- )
18
-
19
- server.start
20
- server.join
3
+ load 'rtunnel_server_cmd.rb'
data/lib/core.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module RTunnel
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
 
4
4
  DEFAULT_CONTROL_PORT = 19050
5
5
  DEFAULT_TUNNEL_PORT = 19051
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/ruby
2
+
3
+ $LOAD_PATH << 'lib'
4
+
5
+ require 'client'
6
+
7
+ $debug = true
8
+
9
+ control_address = tunnel_from_address = tunnel_to_address = remote_listen_address = nil
10
+
11
+ (opts = OptionParser.new do |o|
12
+ o.on("-c", "--control-address ADDRESS") { |a| control_address = a }
13
+ o.on("-f", "--remote-listen-port ADDRESS") { |a| remote_listen_address = a }
14
+ o.on("-p", "--tunnel-port ADDRESS") { |a| tunnel_port = a }
15
+ o.on("-t", "--tunnel-to ADDRESS") { |a| tunnel_to_address = a }
16
+ end).parse! rescue (puts opts; exit)
17
+
18
+ (puts opts; exit) if [control_address, remote_listen_address, tunnel_to_address].include? nil
19
+
20
+ client = RTunnel::Client.new(
21
+ :control_address => control_address,
22
+ :remote_listen_address => remote_listen_address,
23
+ :tunnel_to_address => tunnel_to_address
24
+ )
25
+ client.start
26
+ client.join
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/ruby
2
+
3
+ $LOAD_PATH << 'lib'
4
+
5
+ require 'server'
6
+
7
+ $debug = true
8
+
9
+ control_address = tunnel_port = nil
10
+
11
+ (opts = OptionParser.new do |o|
12
+ o.on("-c", "--control ADDRESS") { |a| control_address = a }
13
+ o.on("-t", "--tunnel-port PORT") { |a| tunnel_port = a }
14
+ end).parse! rescue (puts opts; exit)
15
+
16
+ server = RTunnel::Server.new(
17
+ :control_address => control_address,
18
+ :tunnel_port => tunnel_port
19
+ )
20
+
21
+ server.start
22
+ server.join
data/rtunnel_client.rb ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/ruby
2
+
3
+ load 'lib/rtunnel_client_cmd.rb'
data/rtunnel_server.rb ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/ruby
2
+
3
+ load 'lib/rtunnel_server_cmd.rb'
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: rtunnel
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.2.2
6
+ version: 0.2.3
7
7
  date: 2007-11-25 00:00:00 +07:00
8
8
  summary: The author was too lazy to write a summary
9
9
  require_paths:
@@ -32,8 +32,12 @@ files:
32
32
  - History.txt
33
33
  - Manifest.txt
34
34
  - README.txt
35
+ - rtunnel_client.rb
36
+ - rtunnel_server.rb
35
37
  - bin/rtunnel_client
36
38
  - bin/rtunnel_server
39
+ - lib/rtunnel_client_cmd.rb
40
+ - lib/rtunnel_server_cmd.rb
37
41
  - lib/client.rb
38
42
  - lib/core.rb
39
43
  - lib/server.rb