LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-17-2015, 03:47 PM   #1
mcfip
LQ Newbie
 
Registered: Sep 2012
Posts: 2

Rep: Reputation: 0
IPIP Encapsulation


I am trying to setup IPIP for Encapsulation vs. IPIP Tunneling.

I want to do Direct Server Return from a load balancer, where my pool members are behind a separate network (so packets must be routed to the pool). We have configured IPIP on the Load Balancer and the packets are making it to the pool member. Our pool member is currently a Ubuntu server.

I can see the packet arrive on the ethernet interface as IPIP. What I now need is for the server to unencapsulate the packet and forward it to the loopback interface that has the VIP IP on it for processing.

We do not have a "tunnel" setup between the load balancer and the VIP and hoping I do not need to.



=====
This is what is setup:
Requester: 10.10.10.100/24

Router: 10.10.10.1/24 10.10.20.1/24

Load Balancer (LB) public facing: 10.10.20.50/24
LB VIP: 10.10.20.100/32
LB private facing: 10.10.30.100/24

Router: 10.10.30.1/24 10.10.40.1/24

Router: 10.10.40.2/24 10.10.50.1/24

Pool Member (PM) server: 10.10.50.100/32
PM Loopback IP: 10.10.20.100/24



=====
This is what I am expecting:
Requester performs a DNS Query:
10.10.10.100 -> 10.10.20.100 on UDP Port 53 (DNS Query)

LB receives packet. Forwards as IPIP to 10.10.50.100
10.10.30.100 -> 10.10.50.100 (10.10.10.100 -> 10.10.20.100)

PM unencapsulates the packet:
10.10.10.100 -> 10.10.20.100

PM forwards packet to loopback interface and the loopback handles the request.

PM replies to the DNS query directly to the client.
10.10.20.100 -> 10.10.10.100 UDP port 53


=====
What is happening is:
PM receives and unencapsulates the packet.
PM replies ICMP - Unreachable protocol 4 port XX



=====
If I define a tunnel interface on the PM, tunl0, w/ the same IP as the ethernet interface:
tunl0 10.10.50.100/24

Then, the PM fowards the unencapsulated packet to the tunl0 interface and the packet dies there.


Three question:
1) Is it possible to use IPIP for packet encapsulation w/o having to define a tunnel?

2) If so, what might I have incorrect?

3) If not, is it enought to define the tunnel interface, or do I need more configuration on the PM?


Thanks,
Mike
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IPIP tunnel fandar Linux - Networking 3 12-20-2013 04:10 AM
IPIP Tunnel ali2011 Programming 0 05-30-2012 11:49 AM
Changing IPIP drSivaPrakash Linux - Software 3 03-09-2005 08:32 PM
Changing ipip.c drSivaPrakash Programming 1 03-09-2005 08:22 PM
IPIP Tunnel rickthemick Linux - Networking 1 11-26-2004 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration