StreisandEffect / discussions

30 stars 3 forks source link

Raspberry Pi as openconnect gateway #169

Open Pingy-The-Saint opened 5 years ago

Pingy-The-Saint commented 5 years ago

I love this project and have to thank all the contributors for all their efforts they did.

What I would like to do is a follows: Own VPN server (in Germany for some reasons) with 1blu.de (vServer 4R) that is based on Virtuozzo/OpenVZ. @ home have a Raspberry Pi as VPN Gateway Gateway will used if required as needed (something like https://github.com/mr-canoehead/vpn_client_gateway).

I managed to setup Streisand on my mentioned server but due to limitations of the server only OpenConnect / Cisco AnyConnect OpenVPN (direct) OpenVPN (stunnel) Shadowsocks SSH

As OpenVPN in my country is not available (blocked and cannot connect) I died OpenConnect hand have quite a good working connection from my RasPi.

BUT, how to make they connection now available for other computer in my network as the gateway to the VPN?

Example: Router is IP 192.168.100.1 Raspberry is 192.168.100.2 Rest of the network is 192.168.100.20 onwards

Normally all computers use the 192.168.100.1 gateway / router to connect. Now I would like to change the router for some of the computers to use the RasPi (192.168.100.2) to connect via the existing VPN of the RasPi.

Is that possible? I tried many iptables already, but so far no success?

Would that be a project that might be interesting here?

Thanks to all of you in advance.

The Saint