1
General Discussion / Re: [SOLVED] OPNSense if_stf and ifconfig
« on: December 07, 2018, 04:57:16 pm »
Hello Franco and a big thank you for handing me the keys for final piece of the puzzle!
So, my final and working /etc/rc.conf relevant bits:
So the final hurdle was to use the ISP prefix on stf0 and it seems giving an IP to that interface is unnecessary as well.
The only slight problem still is that machines from internal net are unable to reach the other nic wlan0<->xxx0, but this is a minor annoyance only anymore that can be solved at my leisure.
/64 is problematic if you want to have our LAN clients use it. The route will not match up and traffic doesn't know where to go. You should see if you can get away with a /63 or greater.
So, my final and working /etc/rc.conf relevant bits:
Code: [Select]
ipv6_gateway_enable="YES" #Tell the system that we're acting as IPv6 gateway
ipv6_defaultrouter="-iface stf0" #Bind forward routing to tunnel interface
ifconfig_xxx0="SYNCDHCP" #My external NIC getting IP via DHCP
ifconfig_xxx0="inet 192.168.xx.yy netmask 255.255.255.0" #Setting up intenal net
ifconfig_xxx0_alias0="inet 192.168.xx.yy netmask 255.255.255.0" #As we serve rtadv via this,
ifconfig_xxx0_ipv6="inet6 -accept_rtadv <ISP 32 bit prefix>:<my ext addr in hex>::1" #thus -accept_rtadvd
cloned_interfaces="stf0" #6rd tunnel, using ISP supplied prefix
ifconfig_stf0_ipv6="inet6 accept_rtadv 2001:2003:54f8:1bc8::/32" #length as mask.
create_args_stf0="mtu 1480 stfv4net 84.248.27.200/32 stfv4br 80.221.111.254 link2" #Set up the tunnel
wlans_xxx0="wlan0"
create_args_wlan0="wlanmode hostap..." #And the wlan
ifconfig_wlan0="inet 192.168.xx.zz netmask 255.255.255.0" #Similar to internal wired
ifconfig_wlan0_ipv6="inet6 -accept_rtadv <ISP 32 bit prefix>:<my ext addr in hex>::2/64"
#ifconfig_wlan0_ipv6="inet6 -accept_rtadv"
rtsold_enable="YES" #Enable the routing daemons on relevant interfaces
rtadvd_enable="YES"
rtadvd_interfaces="rl0 wlan0"
So the final hurdle was to use the ISP prefix on stf0 and it seems giving an IP to that interface is unnecessary as well.
The only slight problem still is that machines from internal net are unable to reach the other nic wlan0<->xxx0, but this is a minor annoyance only anymore that can be solved at my leisure.