Article ID: 118484, created on Nov 6, 2013, last review on Jun 17, 2016

  • Applies to:
  • Virtuozzo
  • Virtuozzo containers for Linux
  • Virtuozzo hypervisor


To create a GRE PPTP tunnel inside a container, the following steps should be followed:

  1. Ensure that ip_gre and nf_conntrack_proto_gre modules are loaded on the node:

    # lsmod | egrep 'ip_gre|nf_conntrack_proto_gre'

    If they are not present, load them manually.

    # modprobe ip_gre
    # modprobe nf_conntrack_proto_gre

    If it is needed to load them automatically on boot, configure it in accordance with the corresponding OS instructions:

  2. Configure TUN/TAP devices inside the container
  3. Configure the container to support PPP device with ipgre feature:

    # vzctl set <CTID> --save --devnodes "ppp:rw net/tun:rw" --features "ppp:on ipgre:on"
  4. Configure the container to load ip_gre iptables module:

    • For Virtuozzo hypervisor(PSBM5) and Virtuozzo Containers 4.7 and earlier versions.

      # vzctl set <CTID> --save --iptables ip_gre
    • For Virtuozzo Server 6.0

      # prlctl set <CTID> --save --netfilter full

    For more detailed information on configuring iptables modules in containers, check this article

Note: ip_gre module is virtualized since CU-2.6.18-028stab064.4.

Search Words

virtuozzo tun





a26b38f94253cdfbf1028d72cf3a498b 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f e8e50b42231236b82df27684e7ec0beb 0dd5b9380c7d4884d77587f3eb0fa8ef

Email subscription for changes to this article
Save as PDF