Hello
I want to create two separate openvpn config for system admins and clients.
My servers network is 192.168.10.0/24
Sytemadmins openvpn network is 10.8.1.0/24 (will access entire network)
Clients openvpn network is 10.8.2.0/24 (will access to 192.168.10.100)
I applied this tutorial
https://openvpn.net/community-resources/configuring-client-specific-rules-and-access-policies/
My server.conf file
port 1194
proto udp
dev tun
user nobody
group nogroup
persist-key
persist-tun
keepalive 10 120
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
route 10.8.1.0 255.255.255.0
route 10.8.2.0 255.255.255.0
client-config-dir ccd
client-to-client
push "route 10.8.1.0 255.255.255.0"
push "route 10.8.2.0 255.255.255.0"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
push "redirect-gateway def1 bypass-dhcp"
dh none
ecdh-curve prime256v1
tls-crypt tls-crypt.key
crl-verify crl.pem
ca ca.crt
cert server_6Wqz252nWCdohmcL.crt
key server_6Wqz252nWCdohmcL.key
auth SHA256
cipher AES-128-GCM
ncp-ciphers AES-128-GCM
tls-server
tls-version-min 1.2
tls-cipher TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
client-config-dir /etc/openvpn/ccd
status /var/log/openvpn/status.log
verb 3
ccd/sysadmin
ifconfig-push 10.8.1.1 10.8.1.2
ccd/client
ifconfig-push 10.8.2.1 10.8.2.2
iptables rules
sysadmin rule
iptables -A FORWARD -i tun0 -s 10.8.1.0/24 -d 192.168.10.0/24 -j ACCEPT
client rule
iptables -A FORWARD -i tun0 -s 10.8.2.0/24 -d 192.168.10.100 -j ACCEPT
How should I get ip as above configuration? Because i get ip as 10.8.0.3 and i access all network.