Class: Spior::Iptables::Tor

Inherits:
Root
  • Object
show all
Defined in:
lib/spior/iptables/tor.rb

Overview

Make Local Redirection Through Tor.

Instance Method Summary collapse

Methods inherited from Root

#run!, #stop!

Constructor Details

#initializeTor

Returns a new instance of Tor.



7
8
9
10
11
# File 'lib/spior/iptables/tor.rb', line 7

def initialize
  super
  @non_tor = %W[#{@lo_addr}/8 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8]
  @tables  = %w[nat filter]
end