Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/oefenweb/ansible-tsocks

Ansible role to set up tsocks in Debian-like systems
https://github.com/oefenweb/ansible-tsocks

ansible debian proxy tsocks ubuntu

Last synced: about 1 month ago
JSON representation

Ansible role to set up tsocks in Debian-like systems

Awesome Lists containing this project

README

        

## tsocks

[![CI](https://github.com/Oefenweb/ansible-tsocks/workflows/CI/badge.svg)](https://github.com/Oefenweb/ansible-tsocks/actions?query=workflow%3ACI)
[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-tsocks-blue.svg)](https://galaxy.ansible.com/Oefenweb/tsocks)

Set up tsocks in Debian-like systems.

#### Requirements

None

#### Variables

* `tsocks_install`: [default: `[]`]: Additional packages to install

* `tsocks_local`: [default: `[]`]: Local networks
* `tsocks_path`: [default: `[]`]: Paths declaration
* `tsocks_path.{n}.directives`: [default: `[]`]: Directives (e.g. `['reaches 150.0.0.0/255.255.0.0']`)
* `tsocks_server`: [default: `127.0.0.1`]: Default server
* `tsocks_server_type`: [default: `5`]: SOCKS version used by the server
* `tsocks_server_port`: [default: `1080`]: The port on which the SOCKS server receives request

## Dependencies

None

#### Example

```yaml
---
- hosts: all
roles:
- oefenweb.tsocks
vars:
tsocks_local:
- 192.168.0.0/255.255.255.0
- 10.0.0.0/255.0.0.0

tsocks_path:
- directives:
- reaches 150.0.0.0/255.255.0.0
- reaches 150.1.0.0:80/255.255.0.0
- server 10.1.7.25
- server_type 5
- default_user delius
- default_pass hello

tsocks_server: 192.168.0.1
```

#### License

MIT

#### Author Information

Mischa ter Smitten

#### Feedback, bug-reports, requests, ...

Are [welcome](https://github.com/Oefenweb/ansible-tsocks/issues)!