Access Denied - even when allow all IPs
Hi,
I am hosting Ibeam as docker in ec2. Following all the steps and within the conf.yaml, for testing purpose, i have already accept all IP and no deny IP.
However I am still getting 'Access Denied' when i visit my site's ip "https://3.25.XX.XX:5000/"
all the is mentioned in the the wiki have been tested and still showing 'Access Denied'. I have no idea where to look now
Hey @bbbbho thanks for sharing your issue - could you please post the full debug log from IBeam? We need to first verify that it can read this config file.
where is the log file?
@bbbbho see: https://docs.docker.com/reference/cli/docker/container/logs/
Your conf.yaml is not recognised, otherwise you'd see 'Custom conf.yaml found and will be used by the Gateway' printed. Please ensure it is provided through the inputs directory:
https://github.com/Voyz/ibeam/wiki/Gateway-Configuration
but my conf.yaml is already under inputs directly.
is this screenshot a directory on the container running IBeam? In such case the default place of inputs directory is /srv/inputs. You can modify it with IBEAM_INPUTS_DIR env var.
yes. I am already doing that.
i already put in -v /root/inputs:/srv/inputs , which conf.yaml is in root/inputs
Well I can't figure out the setup on your end remotely, but that's what you need to figure out: how to mount the inputs correctly, as currently the conf.yaml doesn't seem to be present in the container's /srv/inputs.
To verify it, access the container's filesystem and browse to /srv/inputs, and verify if the conf.yaml is there.
The screenshot you shared shows ~/inputs which I'd imagine would be your home directory - possibly that's different than /root?
Also, ensure you're not setting IBEAM_INPUTS_DIR in env.list.
You are very right. i have figured out where and everything is working now. Thank you!
Nice, happy to hear! 🙌 Feel free to close this issue when you're ready
Thank you.
Just one more question is should i use the ibapi and connect my server's ip running ibeam to make request to my IB account? I am trying to find out which one is the best python library to connect to this ibeam's IP and how to control to connect live account and paper account?
Mind to advise on this?
If you'd like to discuss Python client libraries, I'd suggest you open a separate issue for clarity. I'd recommend using IBind
I believe the issue is that you are allowing 0.0.0.0.
Instead, you need to allow 0.0.0.0/0
You also need to remove 0.0.0.0/0 from deny section, if it is listed there.