Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - sorg

#1
General Discussion / ipip6 tunnelling
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).