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

SSL only working when --verbose is on #62

Open
jcbrand opened this issue May 17, 2016 · 2 comments
Open

SSL only working when --verbose is on #62

jcbrand opened this issue May 17, 2016 · 2 comments

Comments

@jcbrand
Copy link

jcbrand commented May 17, 2016

Hi @twonds

I'm running punjab as so: ./bin/twistd -n punjab --port=33773 --ssl=true --ssl_privkey=/etc/ssl/private/xxx.key --ssl_cert=/etc/ssl/certs/xxx.pem

Here's the log output:

2016-05-17 08:57:43+0200 [-] Log opened.
2016-05-17 08:57:43+0200 [-] twistd 16.1.1 (/home/punjab/punjab.buildout/bin/python 2.7.11) starting up.
2016-05-17 08:57:43+0200 [-] reactor class: twisted.internet.epollreactor.EPollReactor.
2016-05-17 08:57:43+0200 [-] Site (TLS) starting on 33773
2016-05-17 08:57:43+0200 [-] Starting factory <twisted.web.server.Site instance at 0x7fd79fe2c710>

I then try to load http-bind in a browser:

elinks https://localhost:33773/http-bind

And only get the message Making connection

With journalctl -f I see the following log message:

May 17 08:57:46 xxx kernel: TCP: request_sock_TCP: Possible SYN flooding on port 33773. Dropping request. Check SNMP counters.

Now the funny/strange thing, when I start punjab in verbose mode with -v, then suddenly I can make HTTPS connections and I don't get SYN flooding errors.

Do you have any idea what might be going on here? I'm thinking that perhaps SSL is not enabled when verbose mode is on?

I tried this on two different Hetzner VServers, and get the same result on both. On a root server from a different provider I am able to start Punjab with SSL (without -v) and there everything works fine, so I'm wondering whether it's a VServer issue.

Any help greatly appreciated.

@twonds
Copy link
Owner

twonds commented May 19, 2016

This is very strange. I do not know of any reason this would happen. I have not had time to look though. I want to find out though. Please let me know if you find anything new.

@Neustradamus
Copy link

@jcbrand: Any news?

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

No branches or pull requests

3 participants