[SOLVED] Help for IPv6 routing


I am using OpenWrt 18.06.2 and want to setup an IPv6 Routing.

Given the following configuration:


[ WAN ]---( PPPoE )---[ OpenWrt ]---( 1:1 NAT )---[ pfSense ]---[ LAN ]


[ WAN ]---( DHCPv6 )---[ OpenWrt ]---( ? Static Route ? )---[ pfSense ]---[ LAN ]

In short, IPv4 gets the IPv4 via PPPoE and IPv6 via Virtual dynamic interface (DHCPv6 client).
This works because of automatic set on Obtain IPv6-Address (Enable IPv6 negotiation on the PPP link).

On WAN_v6 I have IPv6-PD: 1234:4321:a12::/48.
ON LAN I have IPv6: 1234:4321:a12::1/64.

On WAN I have 1234:4321:a12::2/112 with Gateway 1234:4321:a12::1.

Now my question is, what needs to be done to have all IPv6 traffic forwarded to pfSense or a device behind pfSense in the LAN, like the 1:1 NAT for IPv4?

I suppose, there needs to be added some static route for IPv6?

uci -q delete pfs6fwd
uci set firewall.pfs6fwd="rule"
uci set firewall.pfs6fwd.name="Allow-pfSense-Forward-IPv6"
uci set firewall.pfs6fwd.src="wan"
uci set firewall.pfs6fwd.dest="lan"
uci set firewall.pfs6fwd.dest_ip="1234:4321:a12::2"
uci set firewall.pfs6fwd.family="ipv6"
uci set firewall.pfs6fwd.target="ACCEPT"
uci commit firewall
service firewall restart

@vgaetera exactly what I needed, thank you very much :partying_face:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.