![]() Change the remote ip address to localhost with the right port we just set before on sTunnel config file and add those new directives redirect-gateway def1 and route remote_vpn_ip_address 255.255.255.255 net_gateway that will route all internet traffic to the VPN gateway except the one in destination to our remote vpn ip address. I will not describe how to setup the openVPN client, but there’s 2 mandatory modifications to bring to our conf file. This config file will create a tunnel from localhost on port 1000 to the remote ip 80.247.81.210 on port 1000, change the ip 80.247.81.210 and the port following your current network configuration. Output = /usr/local/etc/stunnel/stunnel.log After completing homebrew installation run this command: Mac OS X stunnel client installation and configurationįirst we need to install homebrew, installation guide is on HomeBrew‘s website. Openssl req -new -x509 -key key.pem -out cert.pem -days 1095Ĭat key.pem cert.pem > /etc/stunnel/stunnel.pemĬheck stunnel.log to make sure there’s no error. ![]() # Location of the certificate that we createdĪfter the installation if there’s no stunnel.pem file, we need to create the certificate by running this following command. We will start by installing the package, run this command to install sTunnel:įollow the installation wizard and edit /etc/stunnel/nf with your favorite editor like bellow: Debian 8 stunnel server installationįirst OpenVPN should be configured to use TCP instead of UDP, on this example we open port number 1000 and redirect the traffic to localhost port number 443 which is my openVPN server port. ![]() The principle is quite simple, we create a tunnel between our computer and the openVPN server which is encrypted by a certificate, then we send our openVPN traffic through this tunnel. OpenVPN is more and less banned in some countries, therefore to be able to use it there, we need to make it stealthy by installing a 3rd party software like Tor, SSH Tunnel or Stunnel which hides openVPN traffic from governmental firewall detection. ![]()
0 Comments
Leave a Reply. |