OPNsense Forum

English Forums => General Discussion => Topic started by: sorg on May 28, 2023, 05:03:26 PM

Title: ipip6 tunnelling
Post by: sorg on May 28, 2023, 05:03:26 PM
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).
Title: Re: ipip6 tunnelling
Post by: dough29 on February 18, 2024, 02:52:38 PM
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.
Title: Re: ipip6 tunnelling
Post by: Maurice on February 18, 2024, 05:13:34 PM
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