OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: bimmerdriver on June 04, 2018, 04:51:49 am

Title: Gateway Status Question
Post by: bimmerdriver on June 04, 2018, 04:51:49 am
On my system, the gateway status widget seems to be not working. For both the ipv4 and ipv6 gateways, the RTT is zero, which isn't possible. On my pfsense systems, it's around 6 ms for both. Also, the ipv6 gateway doesn't show the address of the gateway, which should be a link-local address.
Title: Re: Gateway Status Question
Post by: marjohn56 on June 04, 2018, 09:02:10 am
Because your WAN is link-local, you'll need to do things slightly differently under opnsense. You cannot get a ping back from the WAN using a link-local as the source address. You'll need to create new monitors. To do this go into gateways->single, add a new Gateway.

So....

For IPv6

Interface: WAN
Address Family: IPv6
Name: Whatever you like
Gateway: Your LAN IPv6 Address.
Default Gateway: Unticked
Far Gateway: Ticked
Disable Gateway Monitoring: Unticked
Monitor IP: Target address on the WAN, e.g. I use one of the BBC's IP Addresses, but pick one that you know is reasonably close, ISP DNS or something.
Mark Gateway Down: Unticked
Advanced: Leave alone
Description: Whatever you like.


For V4, just change the addresses to V4 equivalents and set the address family to IPv4.


You will end up with four monitors, two that say zero and two that give you real figures.
Title: Re: Gateway Status Question
Post by: bimmerdriver on June 05, 2018, 03:34:36 am
For the record, the gateway status widget has worked fine on pfsense for as long as I've been using it. Considering neither the ipv4 or ipv6 gateways are reporting valid data, I think something is wrong.

Here is the result from pinging the gateway using its link-local address from the opnsense wan using its link-local address as the source. As you can see, it works fine.

PING6(56=40+8+8 bytes) fe80::215:5dff:fe5c:e233%hn0 --> fe80::ea4:2ff:fe29:5001%hn0
16 bytes from fe80::ea4:2ff:fe29:5001%hn0, icmp_seq=0 hlim=255 time=4.632 ms

--- fe80::ea4:2ff:fe29:5001%hn0 ping6 statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 4.632/4.632/4.632/0.000 ms
Title: Re: Gateway Status Question
Post by: marjohn56 on June 05, 2018, 06:20:32 am
Opnsense is not pfSense...


Your not pinging a WAN Global address. Your pinging the other end of the link-local. I'll PM you on this
Title: Re: Gateway Status Question
Post by: franco on June 05, 2018, 03:53:46 pm
> For both the ipv4 and ipv6 gateways, the RTT is zero, which isn't possible.

Did you enable gateway monitoring? It's off by default and will provide you with zero values in this case.


Cheers,
Franco
Title: Re: Gateway Status Question
Post by: marjohn56 on June 05, 2018, 03:55:53 pm
He's got the issue that we have just fixed.


bimmerdriver - Can you do an update to core the way I emailed you. That should fix you up.
Title: Re: Gateway Status Question
Post by: franco on June 05, 2018, 04:03:08 pm
Ah ok, sorry for the noise.