Hosts on the public network can access the local server via 10.0.0.1
My problem is that they can also access the server and all the other hosts on the local network when they use the direct IP to the local network.
How can I prevent hosts on the public network from accessing the local hosts but still have access to the local server via 10.0.0.1 ?
I tried some tutorials on the web but none of them seem to be working for my setup.
a example would be appreciated.
So they have a route to 192.168.0.0/24 via 10.0.0.1? Huh.
You will have to use the IP firewall filter for this. You will still need to permit access to 192.168.0.2 because that’s the destination IP address of the packet after NAT. ether1 is assumed to be your LAN interface name. Adjust as required.
Thanks fewi.
After playing around a bit more, I managed to solve my problem with a couple of Firewall filters.
Just in case anybody wants to know what I did, I added the following firewall filters.
No. What I meant was, a host on the public network can access any host on the local network when using the local address.
Example: a host with IP 10.0.0.5 in the public network can access a host in the local network with IP 192.168.0.5