Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ipip_tunnel [2021/04/24 15:11]
cubebuilder created
ipip_tunnel [2022/02/27 04:58] (current)
onekopaka change the tunnel endpoints to unfiltered IP
Line 1: Line 1:
-//[This how-to tutorial was created by BuyVM. Please consider BuyVM for your [[http://buyvm.net|OpenVZ and KVM VPS]] needs. We offer reliable VPS hosting at affordable rates with features other hosting companies don't have, like Anycast, DDoS filtering, Offloaded MySQL, and Stallion our control panel.]//+This how-to tutorial was created by BuyVM. We offer affordable and reliable **[[https://buyvm.net/kvm-dedicated-server-slices/|Dedicated KVM Slices]]** with features other hosting companies don't have, like Anycast, DDoS filtering, Offloaded MySQL, and Stallion our control panel.
 {{buyvm_logo.png?300|}} {{buyvm_logo.png?300|}}
  
Line 26: Line 26:
 ===== Supported Operating Systems ==== ===== Supported Operating Systems ====
  
-It is possible to use Windows to create, and forward your IPIP tunnel.  If you need to protect a Windows server please consider purchasing a KVM plan.+It is possible to use Windows to create, and forward your IPIP tunnel. 
  
 In this document we'll only be covering a Linux IPIP tunnel configuration.  In this document we'll only be covering a Linux IPIP tunnel configuration. 
  
-This guide will work 100% on both our KVM, and OpenVZ based plans. +This guide will work 100% on a BuyVM KVM Slice.
 ===== Prerequisites ===== ===== Prerequisites =====
  
Line 38: Line 37:
    * A kernel with IPIP support (Linux includes this by default - ''ipip'' kernel module)    * A kernel with IPIP support (Linux includes this by default - ''ipip'' kernel module)
    * A list of ports you need forwarded to your destination    * A list of ports you need forwarded to your destination
-   * A BuyVM VPS (starting as low as $15/yr for our [[http://buyvm.net|128MB OpenVZ VPS]] or $25/yr for our [[http://buyvm.net|128MB KVM VPS]]) +   * A BuyVM KVM Slice (starting as low as [[https://buyvm.net/kvm-dedicated-server-slices/|$2.00 for a 512MB KVM Slice]] or [[https://buyvm.net/kvm-dedicated-server-slices/|$3.50]] for 1GB.
-   * A [[http://buyvm.net/features.php|BuyVM DDoS filtered IP]] ($3.00/m per IP. 209.141.38.x & 209.141.39.x are the current filtered subnets)+   * A [[http://buyvm.net/ddos-protection/|BuyVM DDoS filtered IP]] ($3.00/m per IP)
  
  
Line 51: Line 50:
 echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf
 sysctl -p sysctl -p
-iptunnel add ipip1 mode ipip local YOUR_FILTERED_IP remote DESTINATION_SERVER_IP ttl 255+iptunnel add ipip1 mode ipip local YOUR_UNFILTERED_IP remote DESTINATION_SERVER_IP ttl 255
 ip addr add 192.168.168.1/30 dev ipip1 ip addr add 192.168.168.1/30 dev ipip1
 ip link set ipip1 up ip link set ipip1 up
Line 59: Line 58:
  
 <code> <code>
-iptunnel add ipip1 mode ipip local DESTINATION_SERVER_IP remote YOUR_FILTERED_IP ttl 255+iptunnel add ipip1 mode ipip local DESTINATION_SERVER_IP remote YOUR_UNFILTERED_IP ttl 255
 ip addr add 192.168.168.2/30 dev ipip1 ip addr add 192.168.168.2/30 dev ipip1
 ip link set ipip1 up ip link set ipip1 up