Hi there,

I am having trouble setting up the following tunnels on the tx path.

#!/bin/bash

sudo ip link add name fou11 \
type ipip \
remote 192.168.1.1 \
local 192.168.2.1 \
encap fou \
encap-sport 21001 \
encap-dport 21001


sudo ip link add name fou21 \
type ipip \
remote 192.168.1.1 \
local 192.168.2.1 \
encap fou \
encap-sport 21002 \
encap-dport 21002

this script returns:

RTNETLINK answers: File exists

which tells me that the kernel doesn't use sport and/or dport to
identify a tunnel.

Is it possible to configure a tunnel with different dport and/or sport?
If so how?

P.S. On the other hand if this was possible then the kernel would need
some policy to decide which dport and/or sport to use for each packet
arriving in this tunnel.

br,md.


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to