I have local network (192.168.1.0/24) facing interface: en0 with address 192.168.1.243.
When I am connected to the VPN, I have also the utun4 interface with address: 10.19.20.5. The VPN also installs a second default route with gateway to this address (overriding the original one), and adds I flag to my previous default route via 192.168.1.1. Because of this, all the packets going out having the 10.19.20.5 as source address and are going out via the utun4 interface.
The default route cannot be changed or deleted when connected to the VPN, because it reverts it back almost immediately.
My question is: which pf rules do I need to be able to access my local network? So packets destined to 192.168.1.0/24 are going out on en0 interface with source address of the en0 interface, and the reply packets are routed back to the utun4 interface with destination address of the utun4 interface.
When I am connected to the VPN, I have also the utun4 interface with address: 10.19.20.5. The VPN also installs a second default route with gateway to this address (overriding the original one), and adds I flag to my previous default route via 192.168.1.1. Because of this, all the packets going out having the 10.19.20.5 as source address and are going out via the utun4 interface.
The default route cannot be changed or deleted when connected to the VPN, because it reverts it back almost immediately.
Code:
netstat -rn
Routing tables
Internet:
Destination Gateway Flags Netif Expire
default 10.19.20.5 UGScg utun4
default 192.168.1.1 UGScIg en0
My question is: which pf rules do I need to be able to access my local network? So packets destined to 192.168.1.0/24 are going out on en0 interface with source address of the en0 interface, and the reply packets are routed back to the utun4 interface with destination address of the utun4 interface.