In the command
ip tun add ampr0 mode ipip ttl 64 local <your_public_interface_ip>
The address is not the tunnel address. It is the address on witch it listens
for incoming IPIP packets, and on whitch it sends out the encapsulated
traffic.
The IP address for that interface is assigned by ifconfig ot other
tools/scripts.
So you have an eth0 interface (just as an example) which is your uplink
interface with a public IP, let's say 1.2.3.4.
Then you create the tunnel on that interface:
ip tun add ampr0 mode ipip ttl 64 local 1.2.3.4
and configure that interface (I missed that tstep in my example):
ifconfig ampr0 44.1.1.1 netmask 255.255.255.0 up
So you will get an interface called ampr0 with IP 44.1.1.1 and network
44.1.1.0/24 with tunnel endpoint 1.2.3.4
-----Original Message-----
From: 44net-bounces+marius=yo2loj.ro(a)hamradio.ucsd.edu
[mailto:44net-bounces+marius=yo2loj.ro@hamradio.ucsd.edu] On Behalf Of Arno
Verhoeven
Sent: Friday, December 26, 2014 21:24
To: 44net(a)hamradio.ucsd.edu
Subject: Re: [44net] How to make traffic coming in on the tunnel interface
get answered from that interface?
(Please trim inclusions from previous messages)
_______________________________________________
On 26-12-14 19:38, Marius Petrescu wrote:
First you need to bring up the tunnel:
ip tun add ampr0 mode ipip ttl 64 local <your_public_interface_ip>
Why should the tunnel interface have the same ip address as the wan
interface?
I gave it a 44-net address (44.137.24.1).
_________________________________________
44Net mailing list
44Net(a)hamradio.ucsd.edu
http://hamradio.ucsd.edu/mailman/listinfo/44net