BASH   54

vpn linux

Guest on 29th April 2022 05:16:26 AM

  1. ###  VPN On Debian
  2. ### Port 1723
  3. ### http://pptpclient.sourceforge.net/howto-debian.phtml#mppe
  4.  
  5. 0. Compile Kernel Support MPPE/MPPC
  6.         download mppe kernel patch from http://www.polbox.com/h/hs001/
  7.         cp linux-2.*.*-mppe-mppc-1.0.patch.gz /usr/src
  8.         gunzip linux-2.*.*-mppe-mppc-1.0.patch.gz
  9.         patch -p0 -i linux-2.*.*-mppe-mppc-1.0.patch
  10.         make menuconfig (or the config tool of your choice)
  11.                 go to  Networking device support -> select "PPP support" and then select "Microsoft PPP compression/encryption (MPPC/MPPE)"
  12.  
  13.         echo ppp_mppe_mppc >> /etc/modules
  14.  
  15. 1. Install pppd support for mppe /etc/apt/sources.list
  16.         deb http://www.backports.org/debian/ woody ppp
  17.         apt-get update
  18.         apt-get install ppp
  19.         apt-get install pptpd
  20.  
  21. 2. Config /etc/pptpd.conf
  22.         speed 115200
  23.         option /etc/ppp/pptpd-options
  24.         localip 192.168.4.1
  25.         remoteip 192.168.4.10-20
  26.  
  27. 3. Config /etc/ppp/pptpd-options
  28.         debug
  29.         name *
  30.         lock
  31.         mtu 1450
  32.         mru 1450
  33.         nodefaultroute
  34.         proxyarp
  35.         domain reg.cmu.ac.th
  36.         auth
  37.         +chap
  38.         +mschap-v2
  39.         +mppe-128
  40.         ms-dns 202.28.25.58
  41.         ms-wins 192.168.4.1
  42.         netmask 255.255.255.0
  43.         ipcp-accept-remote
  44.         ipcp-accept-local
  45.         lcp-echo-failure 3
  46.         lcp-echo-interval 5
  47.  
  48. 4. Add user /etc/ppp/chap-secrets
  49.         # Secrets for authentication using CHAP
  50.         # client                server  secret                  IP addresse
  51.             appuser        *            apppasswd               *
  52.  
  53. 5. Start pptpd
  54.         /etc/init.d/pptpd start
  55.  
  56. 6. Enable Kernel Forward /etc/network/options
  57.         ip_forward=yes
  58.  
  59. 7. iptables MASQUERADE
  60.         iptables  -t nat  -A POSTROUTING -d 0/0 -s 192.168.4.0/255.255.255.0 -j MASQUERADE
  61.  
  62.  
  63. ### Windows XP SP2 User Please Read ###
  64. Please Addport On Windows XP Firewall
  65. Port    1723    VPN
  66. Port    47              GRE

Raw Paste


Login or Register to edit or fork this paste. It's free.