OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Virtual private networks »
  • How to get IPv6 from Wireguard to OPNsense?
« previous next »
  • Print
Pages: [1]

Author Topic: How to get IPv6 from Wireguard to OPNsense?  (Read 507 times)

novel

  • Full Member
  • ***
  • Posts: 140
  • Karma: 0
    • View Profile
How to get IPv6 from Wireguard to OPNsense?
« on: November 22, 2024, 06:26:28 pm »
Hi,


My ISP gives me ONLY IPv4. I paid a VPS then I installed Wireguard VPN on the VPS, then IPv4 and comes to OPNsense's WAN.  OPNsense run as Wireguard client. This setup works fine.

The problem is that I cannot get from VPS IPv6 IP to OPNsense's WAN. Wireguard server on the VPS works fine with IPv6, I tested on my linux laptop. I made a wireguard client on my linux laptop then I connected directly to VPS with IPv4 and IPv6.

 
So I would like to get directly from VPS to OPNsense's Wan then traffic goes to LAN . I read a lot of examples here but I didn't solve it.

VPS gives a IPv6 with /64 subnet but I can get one more with /64 subnet.
« Last Edit: November 22, 2024, 08:44:18 pm by novel »
Logged

novel

  • Full Member
  • ***
  • Posts: 140
  • Karma: 0
    • View Profile
Re: How to get IPv6 from Wireguard to OPNsense?
« Reply #1 on: November 23, 2024, 04:53:41 pm »

I was wonder nobdy here know something for my question? I will try to make simpler. My setup is ISP --> Wireguard server on VPS --> Wireguard client on OPNsense wg0 --> WAN --> LAN


In the past I had IPv6 from ISP but IPV6 cannot pass from OPNsense. The problem is OPNsense.


Actually I would like to setup IPv6 on OPNsense?
Logged

RamSense

  • Hero Member
  • *****
  • Posts: 595
  • Karma: 11
    • View Profile
Re: How to get IPv6 from Wireguard to OPNsense?
« Reply #2 on: November 23, 2024, 09:36:35 pm »
maybe this guides can help you getting started:
https://homenetworkguy.com/how-to/set-up-a-fully-functioning-home-network-using-opnsense/
or ipv6 only: https://homenetworkguy.com/how-to/configure-ipv6-opnsense-with-isp-such-as-comcast-xfinity/

his tutorials have helpt me also in the beginning to get things started.
Logged

novel

  • Full Member
  • ***
  • Posts: 140
  • Karma: 0
    • View Profile
Re: How to get IPv6 from Wireguard to OPNsense?
« Reply #3 on: November 24, 2024, 11:16:12 pm »
Quote from: RamSense on November 23, 2024, 09:36:35 pm
maybe this guides can help you getting started:
https://homenetworkguy.com/how-to/set-up-a-fully-functioning-home-network-using-opnsense/
or ipv6 only: https://homenetworkguy.com/how-to/configure-ipv6-opnsense-with-isp-such-as-comcast-xfinity/

his tutorials have helpt me also in the beginning to get things started.


I read all of them with no luck.
Logged

tiermutter

  • Hero Member
  • *****
  • Posts: 1103
  • Karma: 61
    • View Profile
Re: How to get IPv6 from Wireguard to OPNsense?
« Reply #4 on: November 25, 2024, 07:23:04 am »
You cannot delegate a /64 to your LAN, though what you need is NAT for IPv6 using ULAs in LAN (and other interfaces if needed).

Please provide screenshots of you intefaces overview first.

Then you need to enable manual configuration for LAN interface, go to services/router advertisements and select assisted mode for LAN.
Next go to interfaces/virtual IPs and add ULA address for LAN interface, e.g. fd00:10:10:10::1/64.
Then go to firewall/NAT/outbound and select hybrid mode. Add a manual rule with interface = WG network, IP version = v6, source address = fd00:10:10::/64

Make sure your LAN clients gets v6 addresses via SLAAC, e.g. fd00:10:10:10:1234:abcd:a1b2:e3f6

I guess this should work, I only do so for my VPN client networks to give them v6 connectivity without delegeting GUAs (since this is not really static in my case).
Logged
i am not an expert... just trying to help...

novel

  • Full Member
  • ***
  • Posts: 140
  • Karma: 0
    • View Profile
Re: How to get IPv6 from Wireguard to OPNsense?
« Reply #5 on: November 26, 2024, 08:30:37 pm »
Quote from: tiermutter on November 25, 2024, 07:23:04 am
You cannot delegate a /64 to your LAN, though what you need is NAT for IPv6 using ULAs in LAN (and other interfaces if needed).

Please provide screenshots of you intefaces overview first.

Then you need to enable manual configuration for LAN interface, go to services/router advertisements and select assisted mode for LAN.
Next go to interfaces/virtual IPs and add ULA address for LAN interface, e.g. fd00:10:10:10::1/64.
Then go to firewall/NAT/outbound and select hybrid mode. Add a manual rule with interface = WG network, IP version = v6, source address = fd00:10:10::/64

Make sure your LAN clients gets v6 addresses via SLAAC, e.g. fd00:10:10:10:1234:abcd:a1b2:e3f6

I guess this should work, I only do so for my VPN client networks to give them v6 connectivity without delegeting GUAs (since this is not really static in my case).

there isn't  services/router advertisements

my devices connects to user interface not Lan.
« Last Edit: November 26, 2024, 08:36:53 pm by novel »
Logged

tiermutter

  • Hero Member
  • *****
  • Posts: 1103
  • Karma: 61
    • View Profile
Re: How to get IPv6 from Wireguard to OPNsense?
« Reply #6 on: November 26, 2024, 08:36:54 pm »
 
Quote from: tiermutter on November 25, 2024, 07:23:04 am
you need to enable manual configuration for LAN interface,
Logged
i am not an expert... just trying to help...

tiermutter

  • Hero Member
  • *****
  • Posts: 1103
  • Karma: 61
    • View Profile
Re: How to get IPv6 from Wireguard to OPNsense?
« Reply #7 on: November 26, 2024, 08:37:50 pm »
The do it all for "User" interface ;)
Logged
i am not an expert... just trying to help...

novel

  • Full Member
  • ***
  • Posts: 140
  • Karma: 0
    • View Profile
Re: How to get IPv6 from Wireguard to OPNsense?
« Reply #8 on: November 26, 2024, 08:43:03 pm »
Quote from: tiermutter on November 26, 2024, 08:37:50 pm
The do it all for "User" interface ;)


I said there isn't manual configuration in services
Logged

tiermutter

  • Hero Member
  • *****
  • Posts: 1103
  • Karma: 61
    • View Profile
Re: How to get IPv6 from Wireguard to OPNsense?
« Reply #9 on: November 26, 2024, 08:44:47 pm »
It is in Interface config, not services...
Logged
i am not an expert... just trying to help...

novel

  • Full Member
  • ***
  • Posts: 140
  • Karma: 0
    • View Profile
Re: How to get IPv6 from Wireguard to OPNsense?
« Reply #10 on: November 26, 2024, 08:46:57 pm »
Quote from: tiermutter on November 26, 2024, 08:44:47 pm
It is in Interface config, not services...




I found it Now?
Router Advertisements  assisted?

not pinging

All devices gets ipv6 but actually not work
« Last Edit: November 26, 2024, 09:14:28 pm by novel »
Logged

novel

  • Full Member
  • ***
  • Posts: 140
  • Karma: 0
    • View Profile
Re: How to get IPv6 from Wireguard to OPNsense?
« Reply #11 on: November 29, 2024, 01:05:37 pm »
Can anyone help??
Logged

tiermutter

  • Hero Member
  • *****
  • Posts: 1103
  • Karma: 61
    • View Profile
Re: How to get IPv6 from Wireguard to OPNsense?
« Reply #12 on: November 29, 2024, 03:44:55 pm »
Quote from: tiermutter on November 25, 2024, 07:23:04 am
Then go to firewall/NAT/outbound and select hybrid mode. Add a manual rule with interface = WG network, IP version = v6, source address = fd00:10:10::/64

Done?
Logged
i am not an expert... just trying to help...

novel

  • Full Member
  • ***
  • Posts: 140
  • Karma: 0
    • View Profile
Re: How to get IPv6 from Wireguard to OPNsense?
« Reply #13 on: November 30, 2024, 10:59:15 am »
Quote from: tiermutter on November 29, 2024, 03:44:55 pm
Quote from: tiermutter on November 25, 2024, 07:23:04 am
Then go to firewall/NAT/outbound and select hybrid mode. Add a manual rule with interface = WG network, IP version = v6, source address = fd00:10:10::/64

Done?

Yes! I have been attached pictures. Vpn interfaces is wg0
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Virtual private networks »
  • How to get IPv6 from Wireguard to OPNsense?
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2