The server config is:
Code: Select all
client-to-client
cipher AES-256-CBC
port 80
proto tcp
dev tun
ca keys/ca.crt
cert keys/photon.crt
key keys/photon.key
dh keys/dhparams.pem
duplicate-cn
topology subnet
server 192.168.1.0 255.255.255.0
ifconfig-pool-persist ips.txt
keepalive 10 120
persist-key
persist-tun
status openvpn-status.log
log-append /var/log/openvpn.log
verb 3
client-config-dir ccd
Client config file of my office server:
Code: Select all
cipher AES-256-CBC
client
#mssfix
dev tun1
#tun-mtu 1440
proto tcp
tls-client
remote 172.16.55.40 80
resolv-retry infinite
nobind
persist-key
persist-tun
log-append /var/log/photon-openvpn.log
#comp-lzo
verb 3
keepalive 10 120
#tls-version-min 1.0
# Disable this if it causes issues.
#tls-cipher "DEFAULT:@SECLEVEL=0"
<ca>
xxx
</ca>
<key>
xxx
</key>
<cert>
xxx
</cert>
Code: Select all
10.34.48.88 via 192.168.1.10 tun1
X via 192.168.1.10 tun1
and so on.
Code: Select all
192.168.1.0/24 dev tun1 proto kernel scope link src 192.168.1.8