User Tools

Site Tools


openvpn_-_configuring_client-specific_rules_and_access_policies

This is an old revision of the document!


OpenVPN Configuring client-specific rules and access policies

Introduction

Gargoyle by default uses the same OpenVPN server rules for all VPN clients. For custom per client rules we need to manually edit files in the “ccd” folder. Each time a new client is added via the GUI a config file with the same name is created in the ccd folder. Edit the config file via SSH through putty, WinSCP or other SSH client.

/etc/openvpn/ccd/ 
/etc/openvpn/ccd/livestream
ifconfig-push 10.8.0.16 255.255.255.0
iroute 192.168.200.0 255.255.255.0
push "route 192.168.150.0 255.255.255.0 10.8.0.1"
push "redirect-gateway def1"

In this example (push “redirect-gateway def1”) has been added so all VPN traffic is routed through the VPN server.

openvpn_-_configuring_client-specific_rules_and_access_policies.1522535497.txt.gz · Last modified: 2018/03/31 22:31 by ispyisail