Next
Previous
Contents
If you have to use exactly the same subnet for the vpn-clients and the
lan-clients, the vpn-gw must also work as an arp proxy. Therefore you
have to enable arp proxy support in the kernel configuration and activate
it with:
echo 1 > /proc/sys/net/ipv4/conf/ethX/proxy_arp
For further details see the
Linux Advanced Routing and Traffic Control HOWTO
If you have to distinguish between vpn-clients and lan-clients in some
cases, split your network (virtually) in two parts:
- use 192.168.0.0/23 for the whole lan
- use 192.168.0.0/24 for the vpn-clients
- use 192.168.1.0/24 for the lan-clients
- if the vpn-gw is not your default gw, add a rule to the default gw
which forwards all 192.168.0.0/24 traffic to the vpn-gw.
- use 192.168.0.0/23 for access restrictions where both lan- and
vpn-clients are accepted
- use 192.168.0.0/24 for access restrictions where only the vpn-clients
are accepted
- use 192.168.1.0/24 for access restrictions where only the lan-clients
are accepted
Next
Previous
Contents