revanhernandy
Hi there,
I use openvpn as a gateway to connect between branches to HQ. I have a problem, for now all branches use HQ internet. How do I configure the server if I want to use openvpn to connect to the office network only, and for the internet branch using each user's local internet?
My conf looks like :
port 1194
proto udp
dev tun
ca /etc/openvpn/ca.crt
cert /etc/openvpn/server.crt
key /etc/openvpn/server.key
push "redirect-gateway def1 bypass-dhcp"
client-config-dir /etc/openvpn/user
push "dhcp-option DNS xx.xx.xxx.xx"
push "dhcp-option DNS xx.xxx.xxx"
dh /etc/openvpn/dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-to-client
username-as-common-name
auth-user-pass-verify /etc/openvpn/script/login.sh via-env
duplicate-cn
keepalive 10 120
tls-auth /etc/openvpn/ta.key 0
key-direction 0
cipher AES-128-CBC # AES
auth SHA256
comp-lzo
user nobody
persist-key
persist-tun
thank you in advance