I have OpenVPN running perfectly fine w/TCP/1134:
port 1194
proto tcp
dev tun
ca ca.crt
cert my.crt
key my.key
dh dh4096.pem
server 10.0.8.0 255.255.255.0
ifconfig-pool-persist ipp-tcp.txt
push "route 10.0.0.0 255.255.255.0"
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
tls-auth ta.key 0
tls-cipher TLS-DHE-RSA-WITH-AES-256-CBC-SHA
cipher AES-256-CBC
comp-lzo
max-clients 10
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
log-append openvpn.log
verb 5
mode server
tls-server
remote-cert-tls client
I want to also run it on UDP/1194, so I was thinking of doing something like adding a new conf file like this:
port 1194
proto udp
dev tun
ca ca.crt
cert my.crt
key my.key
dh dh4096.pem
server 10.0.9.0 255.255.255.0
ifconfig-pool-persist ipp-tcp.txt
push "route 10.0.0.0 255.255.255.0"
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
tls-auth ta.key 0
tls-cipher TLS-DHE-RSA-WITH-AES-256-CBC-SHA
cipher AES-256-CBC
comp-lzo
max-clients 10
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
log-append openvpn.log
verb 5
mode server
tls-server
remote-cert-tls client
Is there any reason why this won't work?