Routing traffic from one ip through openvpn interface
-
I have an openvpn connection set up and a single lan address routing through the VPN. This all works fine until the openvpn goes down. Then the address starts using the WAN interface instead when I'd rather it just be down until the VPN comes back. Even after I put a block rule to my WAN from the ip it still doesn't stop the address from going out WAN once the VPN drops. I'm not sure if i'm missing something or what. Any advice would be greatly appreciated.
-
I created a new subnet for the machine and redid openvpn rules for the new address. Works how I want it to now
-
I created a new subnet for the machine and redid openvpn rules for the new address. Works how I want it to now
Can you elaborate on this? I am also seeing this problem.
-
I ended up using an OPT interface in pfsense and giving it a seperate subnet from my lan. Just setup a rule in opt interface firewall rules to allow traffic from the opt subnet through the openvpn gateway.
I should also add that i'm using two nics on the machine i'm routing through the vpn. I also use forcebindip to force binding applications i want to to the nic connected to the opt interface.