Ping on opt WAN



  • Hello there.

    I use 2 different WANs on my PFSense.

    In example below, WAN1 is my default and WAN2 my optional.

    I need to keep WAN1 working, but test WAN2 with ping test for 1hour+, is it possible?



  • Yes.  You use policy routing via firewall rules to determine which traffic goes out which gateway.


  • Rebel Alliance Global Moderator

    You can have as many wans as you want to be honest all active at same time if you so desire.  If you want to be able to ping wan2 then setup firewall rule on its interface to allow you to ping it.


  • Galactic Empire

    You can specify the source address from the cli :-

    [2.4.3-RELEASE][admin@pfsense]/root: ping -S 172.16.3.1 8.8.8.8
    PING 8.8.8.8 ( 8.8.8.8 ) from 172.16.3.1: 56 data bytes
    64 bytes from 8.8.8.8: icmp_seq=0 ttl=60 time=11.582 ms
    64 bytes from 8.8.8.8: icmp_seq=1 ttl=60 time=11.318 ms
    ^C
    –- 8.8.8.8 ping statistics ---
    2 packets transmitted, 2 packets received, 0.0% packet loss
    round-trip min/avg/max/stddev = 11.318/11.450/11.582/0.132 ms
    [2.4.3-RELEASE][admin@pfsense]/root:



  • @querichelli:

    I need to keep WAN1 working, but test WAN2 with ping test for 1hour+, is it possible?

    Whats the purpose of the Test? If your wanting to test WAN2 specifically for devices behind pfSense than the policy route via firewall rule as suggested would be the way to go. If you just wanting to see the quality of your WAN2 from ping results than I would suggest changing the monitoring IP for that gateway to 8.8.8.8 and let pfSense monitor this for you. This way you can see the current quality of your WAN2 when you login and also check the history of that link by going to Status –> Monitoring. If you haven't done so already, I would suggest doing this for WAN1 as well. In order for failover to work properly this should have already been done but maybe this isn't the purpose for your test.