Here is my server.conf
port 1194
proto udp
dev tap0
ca /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.crt
cert /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/server.crt
key /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/server.key # This file should be kept secret
dh /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/dh1024.pem
ifconfig-pool-persist ipp.txt
server-bridge 192.168.10.1 255.255.255.0 192.168.10.100 192.168.10.110
push "dhcp-option DNS 192.168.10.1"
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
log /var/log/openvpn/tdt_openvpn.log
log-append /var/log/openvpn/tdt_openvpn.log
verb 3
inactive 1800
And here is my client config:
client
dev tap
proto tcp
remote public_ip 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
comp-lzo
verb 3
Network interface on the OpenVPN Server (also our firewall using iptables)
eth0 has the public ip address
eth1 has 192.168.10.1/24 -> for customers' use
eth2 has 192.168.2.1/24 -> this is our local LAN.
When our client ( let's call then Client A) connects, they get an ip address
from this range 192.168.10.100 - 192.168.10.110. They really don't have
a lot of servers here only 5. So I thought I can break up the Class C into four.
Give them one of the segment and another for the new client (Client B).
I guess eth1 will now have and ip_address/subnet_mask of 192.168.10.1/26.
I can put Client A in that segment. But how do I deal with Client B? They will
be on a separate segment all together.
Since we will be maintaining these customers' server, we need to access it
from our local LAN (192.168.2.0/24). On the current configuration we can do that
now. Can I still access Client B's network if it's in 192.168.10.64/26 network
and eth1 of the OpenVPN is in the 192.168.10.0/26 network?
How will the "server-bridge" line looks like for Client B's server config file?
Thanks in Advance