Skip to content

cmur2/chef-tcpproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chef-tcpproxy

Build Status

Description

Configures the IPv4/IPv6 connection proxy - tcpproxy - from http://spreadspace.org/tcpproxy/ via /etc/tcpproxy.conf. But it does not install it since there are multiple ways.

Usage

Use recipe[tcpproxy::default] for configuring from the information in node['tcpproxy'].

Requirements

Platform

As long as the configuration for tcpproxy is located at /etc/tcpproxy.conf it works with any installation forms.

For supported Chef/Ruby version see Travis.

Recipes

default

Uses name => hash entries from node['tcpproxy']['listen'] to generate a configuration like this:

node['tcpproxy']['listen']['example1'] = {
	"local" => "* 8000",
	"resolv" => "ipv4",
	"remote" => "www.google.at 80",
	"remote-resolv" => "ipv6",
	"source" => "2a02:3e0:2002:1:218:deff:fe03:ed"
}

example1 is an internal name not expressed in the configuration for distinguishing the different listen entries. The above example produces:

listen * 8000 {
  resolv: ipv4;
  remote: www.google.at 80;
  remote-resolv: ipv6;
  source: 2a02:3e0:2002:1:218:deff:fe03:ed;
};

License

chef-tcpproxy is licensed under the Apache License, Version 2.0. See LICENSE for more information.