ipip6 tunnelling

Started by sorg, May 28, 2023, 05:03:26 PM

Previous topic - Next topic
Hi,

My ISP is providing ipv4 by tunneling it within a ipip6 tunnel.

I tried to establish such a tunnel using the opnsense GIF interface, however, I am not able to fill all the fields, as the remote ipv4 is not known.

Here is the linux equivalent setup:

allow-hotplug ip4tnl0
auto ip4tnl0
iface ip4tnl0 inet tunnel
  description wan4
  address 82.64.11.22/32 # My public ipv4
  mode ipip6
  local 2a01:e0a:1111:2222:0:ffff:ffff:0 # My IPV6 address
  endpoint 2a01:e00:29:200a::fffd # The relay
  tunnel-physdev eth0.836

  post-up ip -6 tunnel change ip4tnl0 encaplimit none

  post-up sysctl -q net.ipv4.conf.ip4tnl0.forwarding=1
  # Adds IPv4 default route to pass by this interface
  post-up ip -4 route add default dev ip4tnl0
  mtu 1500


Is it possible to achieve the same within opnsense ? (If necessary, i can use the CLI).

Hello,

Any news on this ?

I plan to switch to a similar ISP (Free in France) and would like to use my own router.

Thanks.

The remote IPv4 address is pretty much arbitrary since this is essentially a point-to-point connection. You can e. g. use 192.0.0.1/32.

Cheers
Maurice
OPNsense virtual machine images
OPNsense aarch64 firmware repository

Commercial support & engineering available. PM for details (en / de).