Openvpn server on tcp


#1

Now that we can select te port for openvpn what about have the opportunity to change also the protocol?
Usually i’m behind a locked-down network where only 80 and 443 ports are opened. So i need to configure openvpn on tcp/443 to connect to my home lab.
Anyone interested?


(Giacomo Sanchietti) #2

You can achieve that with a custom template for the Roadwarrior server:

/etc/e-smith/templates-custom/etc/openvpn/host-to-net.conf
echo "proto tcp" >> /etc/e-smith/templates-custom/etc/openvpn/host-to-net.conf/90protocol
signal-event nethserver-openvpn-save

#3

wow tnx :slight_smile: easier than expected.
to make it work i’ve added new property (TCPPort and Protocol) to key openvpn, created custom template and some other probably useless things (to httdp/ssl to make it work on 443, and some change to client config)
I am a little ashamed :grin:
As soon as i’ll be in lab i’ll test… tnx!