Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Apache2 and uWSGI #5

Open
brenard opened this issue Nov 27, 2015 · 3 comments
Open

Apache2 and uWSGI #5

brenard opened this issue Nov 27, 2015 · 3 comments

Comments

@brenard
Copy link

brenard commented Nov 27, 2015

Hello,

I try to install vpn-ws server using Apache2 (on Debian Jessie) but it's does not work. But with the same client and the same server using Nginx it's work like a charm. On Apache, I'm using mod_uswgi with a simple configuration :

<Location /vpn>
    SetHandler uwsgi-handler
    uWSGISocket 127.0.0.1:5235
</Location>

With this configuration, my client can connect to the server :

brenard@aconit:~/dev/vpn-ws$ ((detached from v0.2)) sudo ./vpn-ws-client --exec "ifconfig vpn0 172.16.0.2 netmask 255.255.255.0; ip link set mtu 1490 dev vpn0; ifconfig vpn0 up" vpn0 ws://vpn-ws.zionetrix.net:80/vpn --no-verify
[Fri Nov 27 20:24:53 2015] connecting to vpn-ws.zionetrix.net port 80 (transport: ws)
[Fri Nov 27 20:24:53 2015] connected to vpn-ws.zionetrix.net port 80 (transport: ws)

And my server see this new client :

root@gaston:~$ ./vpn-ws --tuntap vpn0 127.0.0.1:5235 --exec 'ifconfig vpn0 172.16.0.1 netmask 255.255.255.0; ip link set mtu 1490 dev vpn0; ifconfig vpn0 up'
[Fri Nov 27 20:24:53 2015] registered new peer 8 MAC=02:76:4A:0B:B4:D3 REMOTE_ADDR=109.190.110.196 REMOTE_USER= DN=

But a ping between to host does work. A tcpdump on vpn0 show that ARP request does not get reply.

Do you have an idea what could be the problem ? Do you have an example of functional configuration with apache ? I also try with mod_proxy_uwsgi but I have the same issue..

Thank you

@brenard
Copy link
Author

brenard commented Dec 3, 2015

Anyone have an idea about this problem ? I still search a solution, by adding debug on vpn-ws code, using tcpdump to watch traffic between hosts and applications and I'm able to say that is Apache witch bloc traffic between vpn-ws client and server. I also try to use undocumented Apache mod_Ruwsgi module and it's does not work.

Any ideas are welcome !

@unbit
Copy link
Owner

unbit commented Dec 3, 2015

Have you checked if some kind of traffic reached the vpn-ws daemon when behind apache ?

@brenard
Copy link
Author

brenard commented Dec 4, 2015

Yes I checked : I have traffic between Apache and vpn-ws daemon until HTTP Upgrade during WS handshake. After that step, I have nothing behind Apache but a could see request and answer between browser and Apache.

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

No branches or pull requests

2 participants