Posts

Showing posts from March, 2019

Configure pptp-client with static IP on Centos 7

/etc/sysconfig/network-scripts/ifcfg-pptpserver ONBOOT=yes USERCTL=yes TYPE=Modem PEERDNS=no DEVICE=ppp0 /etc/ppp/peers/pptpserver #pty "pptp 31.31.31.31 --nolaunchpppd" name site #require-mppe-128 #persist holdoff 10 maxfail 0 lcp-echo-interval 15 lcp-echo-failure 4 pty "/usr/sbin/pptp 31.31.31.31 --nolaunchpppd" #usepeerdns nodefaultroute persist holdoff 30 noauth file /etc/ppp/options.pptp /etc/ppp/option.pptp ############################################################################### # $Id: options.pptp,v 1.3 2006/03/26 23:11:05 quozl Exp $ # # Sample PPTP PPP options file /etc/ppp/options.pptp # Options used by PPP when a connection is made by a PPTP client. # This file can be referred to by an /etc/ppp/peers file for the tunnel. # Changes are effective on the next connection.  See "man pppd". # # You are expected to change this file to suit your system.  As # packaged, it requires PPP 2.4.2 or later from htt...

Nginx 1.14 On UBUNTU 18.04 configure alias

This is simple example location /webmail {     alias /usr/share/roundcube;     try_files $uri $uri/ /index.php;     location ~ \.php$ {         include snippets/fastcgi-php.conf;             fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;     fastcgi_param SCRIPT_FILENAME $request_filename;     }    }