Seperating VPN Traffic from Non VPN Traffic
-
Why don't you post your rules and we can talk a look see.
-
Why don't you post your rules and we can talk a look see.
Thanks johnpoz for your help.
Here are my firewall Rules:
![Firewall Rules Wan.JPG](/public/imported_attachments/1/Firewall Rules Wan.JPG)
![Firewall Rules Wan.JPG_thumb](/public/imported_attachments/1/Firewall Rules Wan.JPG_thumb)
![Firewall rules Lan.JPG](/public/imported_attachments/1/Firewall rules Lan.JPG)
![Firewall rules Lan.JPG_thumb](/public/imported_attachments/1/Firewall rules Lan.JPG_thumb)
![Firewall Rules IVPN.JPG](/public/imported_attachments/1/Firewall Rules IVPN.JPG)
![Firewall Rules IVPN.JPG_thumb](/public/imported_attachments/1/Firewall Rules IVPN.JPG_thumb)
![Firewall Rules Open VPN.JPG](/public/imported_attachments/1/Firewall Rules Open VPN.JPG)
![Firewall Rules Open VPN.JPG_thumb](/public/imported_attachments/1/Firewall Rules Open VPN.JPG_thumb) -
I don't see anything in those rules that would send traffic out your vpn.. I see a rule that would send traffic out your wan dhcp connection if dest is not the lan network and are in the source alias.
Is wan_dhcp not set to default in your routes, gateway section? And your vpn is?
-
Yeah, that ! LAN Net is worthless. You will never see traffic coming into your LAN interface destined for LAN net. The hosts on LAN net will just communicate directly on the local subnet.
-
I don't see anything in those rules that would send traffic out your vpn.. I see a rule that would send traffic out your wan dhcp connection if dest is not the lan network and are in the source alias.
Is wan_dhcp not set to default in your routes, gateway section? And your vpn is?
wan_dhcp is set to default. Vpn is not.
Thanks johnpoz
@ Derelict,
Thanks for the info . A friend of mine helped me set it up and he thought the ! Lan Net would work . -
There aren't any rules that send traffic to a VPN based on what you've shown. Are you sure you're using the VPN?
-
There aren't any rules that send traffic to a VPN based on what you've shown. Are you sure you're using the VPN?
Yes I am using a VPN. I checked under status/Openvpn and it says Service is running. I checked in System Logs/Open VPN and everything looks good. When I do an ip check I do get the ip of the server. as I have stated in aliases I have listed all the non-vpn clients by ip's and I have verified that that these clients do not go through the VPN.
Thanks Derelict
-
Then you must be getting a default route from the VPN server. Typically one has to turn on Don't pull routes in the OpenVPN client config then policy route just the traffic they want over the VPN otherwise everything goes over the VPN.
As long as it's working for you…
-
Then you must be getting a default route from the VPN server. Typically one has to turn on Don't pull routes in the OpenVPN client config then policy route just the traffic they want over the VPN otherwise everything goes over the VPN.
As long as it's working for you…
Yes Derelict it does work this way. I have been messing with it all weekend, however, I would like to learn how to set it up where I select only the 2 computers that I want to use the VPN and all others are excluded from VPN.
What Info can I provide so I can figure this out??
Thanks again.
-
Just look at the OpenVPN threads. There's a really long one about PIA that covers all this. Sorry, I don't have a bookmark for it.
There's a checkbox in the OpenVPN client config that says don't pull routes. With that checked make an alias for the hosts you want to go out the VPN and set the VPN as a gateway in a matching rule.
-
Just look at the OpenVPN threads. There's a really long one about PIA that covers all this. Sorry, I don't have a bookmark for it.
There's a checkbox in the OpenVPN client config that says don't pull routes. With that checked make an alias for the hosts you want to go out the VPN and set the VPN as a gateway in a matching rule.
Appreciate the help. Will look for the post on PIA so I can figure it out.