1
24.1 Legacy Series / Re: Initial installer/setup: ipv6 gateway not set as "onlink"
« on: February 25, 2024, 02:41:11 pm »
Bump for visibility. I hope this is allowed.
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.
QuoteI added the LL I found in a tcpdump via the web UI (see attacchment), and the gw monitoring is working (it's pingable) but in the route table it looks like it's on loopback? Yet on the config page I assigned it to WAN ((which is vtnet1)
Sounds like you used a wrong LLA.
Try getting it from Interfaces>Diagnostics->NDP Table page. Locate the one that has a different MAC address than the one that has your GUA. You can also identify by Manufacturer name if it existed (eg: Cisco, Juniper etc).
root@OPNsense:~ # route -6 add 2607:5300:60:2fff:ff:ff:ff:ff/128 -iface vtnet1
add host 2607:5300:60:2fff:ff:ff:ff:ff/128: gateway vtnet1
root@OPNsense:~ # route -6 add default 2607:5300:60:2fff:ff:ff:ff:ff
add net default: gateway 2607:5300:60:2fff:ff:ff:ff:ff
root@OPNsense:~ # ping ipv6.google.com
PING6(56=40+8+8 bytes) 2607:5300:60:2f46::102:1 --> 2607:f8b0:4020:806::200e
16 bytes from 2607:f8b0:4020:806::200e, icmp_seq=0 hlim=115 time=1.262 ms
root@yul-vpnr01:~# ip a show dev ens18
2: ens18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 02:00:00:f3:a8:17 brd ff:ff:ff:ff:ff:ff
altname enp0s18
inet 198.50.158.185/32 scope global ens18
valid_lft forever preferred_lft forever
inet6 2607:5300:60:2f46::1:2/64 scope global
valid_lft forever preferred_lft forever
root@yul-vpnr01:~# grep -A9 routes: /etc/netplan/00-installer-config.yaml
routes:
- to: default
via: 192.95.32.254
on-link: true
- to: 173.161.5.168/29
via: 192.95.32.254
on-link: true
- to: default
via: 2607:5300:60:2fff:ff:ff:ff:ff
on-link: true
root@yul-vpnr01:~# ping 2607:5300:60:2fff:ff:ff:ff:ff
PING 2607:5300:60:2fff:ff:ff:ff:ff(2607:5300:60:2fff:ff:ff:ff:ff) 56 data bytes
64 bytes from 2607:5300:60:2fff:ff:ff:ff:ff: icmp_seq=1 ttl=64 time=0.709 ms
root@yul-vpnr01:~# traceroute 2607:5300:60:2fff:ff:ff:ff:ff
traceroute to 2607:5300:60:2fff:ff:ff:ff:ff (2607:5300:60:2fff:ff:ff:ff:ff), 30 hops max, 80 byte packets
1 _gateway (2607:5300:60:2fff:ff:ff:ff:ff) 0.825 ms 0.922 ms 1.038 ms
root@OPNsense:~ # ifconfig vtnet1 | grep inet\
inet 158.69.185.70 netmask 0xffffffff broadcast 158.69.185.70
root@OPNsense:~ # netstat -4 -rn | grep default
default 192.95.32.254 UGS vtnet1
root@OPNsense:~ # ping 192.95.32.254
PING 192.95.32.254 (192.95.32.254): 56 data bytes
64 bytes from 192.95.32.254: icmp_seq=0 ttl=255 time=0.479 ms
64 bytes from 192.95.32.254: icmp_seq=1 ttl=255 time=0.623 ms
64 bytes from 192.95.32.254: icmp_seq=2 ttl=255 time=0.627 ms
^C
--- 192.95.32.254 ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.479/0.576/0.627/0.069 ms
root@OPNsense:~ # traceroute 192.95.32.254
traceroute to 192.95.32.254 (192.95.32.254), 64 hops max, 40 byte packets
1 192.95.32.254 (192.95.32.254) 0.684 ms 0.736 ms 0.794 ms
myupdaterecord = requests.request("POST", postRecordURL, auth=(api_key, api_secret), json=json.dumps(myonerecord_response))
print(myupdaterecord.content)
b'{"result":"failed"}'