OPNsense Forum

English Forums => General Discussion => Topic started by: HollinCH on April 20, 2022, 02:42:20 PM

Title: Ping from firewall across VPN
Post by: HollinCH on April 20, 2022, 02:42:20 PM
Hi there,

With Fortigate firewalls one can specify the IP address of an available LAN interface to use as source address in order to ping an address reachable across a VPN, which comes in handy to check if connectivity works.

Does OpnSense have a similar feature available?

Thanks, kind regards,
Jaap
Title: Re: Ping from firewall across VPN
Post by: HollinCH on April 20, 2022, 02:48:54 PM
OK found it, you can specify -S <source ip> in the ping command.

So for example:
root@vesenaz:~ # ping -S 192.168.74.1 192.168.73.10
PING 192.168.73.10 (192.168.73.10) from 192.168.74.1: 56 data bytes
64 bytes from 192.168.73.10: icmp_seq=0 ttl=127 time=5.848 ms
64 bytes from 192.168.73.10: icmp_seq=1 ttl=127 time=5.519 ms
64 bytes from 192.168.73.10: icmp_seq=2 ttl=127 time=5.290 ms