redteaminfra / redteam-infra

100 stars 25 forks source link

Proxypass setup #108

Closed devzspy closed 5 months ago

devzspy commented 7 months ago

This will automatically setup the proxy pass protocols on port 80, 443 and 2222 from all edge nodes to middles and middles to proxies.

Resolves Issue #87

devzspy commented 7 months ago

Updated the output files to account for the commits that were inadvertently being reverted.

willk commented 7 months ago

Let's use ansible for all the configuration over running a python script that gets added to the host.

Make this specific to tcp connection back in (just ssh in this case).

Your server block should look similar to: stream-template.conf.j2. Note that proxy_protocol on; is only needed if you need to pass proxy information on to a host down the line. I could be useful for logging, but I'm not sure if it is compatible with ssh.

You should also ensure that nginx is installed on edges and middles. Currently that is part of configuring edges and middle; however, that is not guaranteed in the future.

devzspy commented 5 months ago

Updates made in latest commit

willk commented 5 months ago

Slow to review, but I haven't forgotten about it