Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firewall rules #8

Closed
leebaird opened this issue Aug 21, 2022 · 4 comments
Closed

Firewall rules #8

leebaird opened this issue Aug 21, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@leebaird
Copy link
Collaborator

leebaird commented Aug 21, 2022

If Nebula is not being used, suggest the following:

  1. Configure /var/www/html/.htaccess on each redirector and set the first proxy rule with the IP address of the C2 server.
  2. Configure the C2 server firewall to allow port 443 from each redirector.
@ezra-buckingham
Copy link
Owner

After looking further, it is going to be very difficult to implement IP and port. Implementing the IP is easy, but there are some flaws with port as I will need to have it taken in as a CLI param since the redirectors can map to any non-standard port to transfer C2 comms over Nebula / internet.... still working on it though

@leebaird leebaird changed the title htaccess Firewall rules Aug 31, 2022
@leebaird leebaird added the enhancement New feature or request label Sep 8, 2022
@ezra-buckingham
Copy link
Owner

I didn't use that branch, but changes have been pushed to address this, it now has a "blanket" approve for all firewall rules across the cluster. So all resources can freely communicate with each other over the internet (not great, but best I can do given ports may differ if you use containers)

@leebaird
Copy link
Collaborator Author

I thought you told me this only worked with Nebula.

@ezra-buckingham
Copy link
Owner

As it worked in the past, yes, but I was able to make it work as long as all of your resources are routable directly from the internet. Also, there’s no granular control of allowed ports in the solution I committed, it’s allow all from all resources in a build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants