Expose GoPhish
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.3k
- Forks
- 206
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I’ve installed RedCloud on a AWS infrastructure (Kali, with all traffic authorized), and then installed GoPhish from the template. However, I have not been able to add any rules in Traeffik to expose the ports remotely.
I’ve tried to modify the docker-compose file and I added some label to expose the 3333 GoPhish’s administration port from an URL with Traefik.
The problem is that when I tried to access to the URL https://my-aws-ip/gophish/ I have an error: “500 internal server error”.
When I install GoPhish on its own on the machine I can access to the GoPhish pages (https://my-aws-ip:3333) so it’s not an AWS rules problem. The listening URL for the GoPhish is 0.0.0.0:3333 in the configuration file.
Here is the lignes that I added in the docker-compose file:
gophish:
image: matteoggl/gophish
container_name: “gophish”
networks:
- default
- inside
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- certs:/certs
- logs:/logs
labels:
- “traefik.frontend.rule=PathPrefixStrip:/gophish”
- “traefik.port=3333”
- “traefik.passHostHeader=true”
- “traefik.docker.network=default”
- “traefik.frontend.redirect.regex=^(.*)/gophish$$”
- “traefik.frontend.redirect.replacement=$$1/gophish/”
- “traefik.frontend.rule=PathPrefix:/gophish;ReplacePathRegex: ^/gophish/(.*) /$$1”
I’ve also modify the traefik.toml file:
[entryPoints]
[entryPoints.http]
address = “:80”
[entryPoints.http.redirect]
entryPoint = “https”
rule = “Path:/portainer,/files/api,/gophish”
[…]
[gophish]
entryPoint = “gophish”
Do you have any idea of what might cause this error?
Thank you for your time,
Aurélien
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the docker-compose file and traefik.toml configuration shown in the issue, then compare the GoPhish service routing with the repository’s existing Traefik services. Reproduce the deployment and inspect the proxy response for /gophish/. Done means the GoPhish administration page is reachable through the requested URL without a 500 error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, docker
- Domain
- cloud, devops, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100