recipes [was: Possible addition to README for use of NAT]

Nikos Mavrogiannopoulos n.mavrogiannopoulos at gmail.com
Fri Jul 31 06:47:56 PDT 2015


On Fri, Jul 31, 2015 at 2:31 PM, P Cause <pcause at hotmail.com> wrote:
> Thanks for ocserv.  I was able to build easily and start and connect but
> network routing wasn't working. After a lot of time and searching I found
> these steps and thought perhaps the README could be updated to add the
> steps.  I found at
> https://www.vultr.com/docs/setup-openconnect-vpn-server-for-cisco-anyconnect-on-ubuntu-14-04-x64
> What I suggest be added:
> Steps to enable NAT
>
> Enable NAT in iptables
> iptables -t nat -A POSTROUTING -j MASQUERADE
> Enable IPv4 forwarding. Edit the file /etc/sysctl.conf.
> net.ipv4.ip_forward=1
>
> Apply the changes
> sysctl -p /etc/sysctl.conf

Incidentally I've created a recipes repository which has recipes for
certain use of openconnect (server or client). Feel free to add yours
with a pull request.

https://github.com/openconnect/recipes

regards,
Nikos



More information about the openconnect-devel mailing list