Hi,
Previously I had a (HTTP,DNS) server in my LAN, and as my router's default route was via my public IP, traffic from the server to WAN clients was correctly routed.
I have set up a VPN and now my default route is via my VPN. This means replies from my server are now routed via the VPN gateway, which prevents HTTP and other services from working properly.
What I'm trying to achieve:
LAN clients such as desktop and wifi clients have their traffic routed via the default VPN gateway.
WAN HTTP,DNS traffic to my public IP gets routed to my server.
WAN HTTP,DNS traffic from my server gets routed via my public IP and public gateway, not the VPN gateway.
What I have done so far:
Added a 3rd VLAN tag to my switch to allow me to configure the port my server is plugged into separately:
Added an interface called SERVER to manage the server connection:
Added a firewall zone called host and allowed traffic to be forwarded to and from lan and wan. I'm under the impression this should allow lan members to ping host members and vice versa.
Set my server's IP and gateway to 10.0.1.2 and 10.0.1.1.
What is happening:
My server can ping my 10.0.0.1 and 10.0.1.1 which are my LAN and SERVER device IPs.
My server can't ping my LAN clients other than my router.
Why can't I ping my LAN clients from my server?
Assuming I was able to ping, how could I configure my WAN interface to be the default route for SERVER interface traffic?
Is there an easier way of doing this?
Screenshots don't provide enough information. Please post the following files:
/etc/config/network
/etc/config/firewall
/etc/config/openvpn (or if not that specific file, the openvpn config file for your server)
and your openvpn client config file.