{"id":315,"date":"2005-03-01T17:09:30","date_gmt":"2005-03-01T09:09:30","guid":{"rendered":"http:\/\/blog.axqd.net\/?p=315"},"modified":"2005-03-01T17:09:30","modified_gmt":"2005-03-01T09:09:30","slug":"is-this-still-the-vpn","status":"publish","type":"post","link":"https:\/\/blog.axqd.net\/?p=315","title":{"rendered":"Is This Still The VPN?"},"content":{"rendered":"<p><strong>VPN Server:<\/strong>PPTPD For Linux<br \/>\n<strong>VPN Client:<\/strong>PPTP Client For Linux<br \/>\n<strong>Connect\/Disconnect Command:<\/strong>pon \/ poff $Tunnel<br \/>\n<strong>Requirement:<\/strong><br \/>\nMPPE support in kernel<br \/>\n* How to Check:modprobe ppp-compress-18 &amp;&amp; echo Success<br \/>\n* How to Install:<br \/>\na.Prepare the system for kernel package building:<br \/>\ngcc bin86 libc6-dev bzip2 kernel-package kernel-patch-mppe<br \/>\nb.Install, unpack, and clean the kernel source package<br \/>\nmake-kpkg clean<br \/>\nc.Copy \/boot\/config* .\/.config<br \/>\nd.Build the kernel package:<br \/>\nmake-kpkg<br \/>\n&#8211;added-patches mppe<br \/>\n&#8211;append-to-version -mppe<br \/>\n&#8211;config oldconfig<br \/>\n[&#8211;initrd kernel-image](Not Woody Version)<br \/>\ne. When you are prompted for the CONFIG_PPP_MPPE option, type m and press Enter.<br \/>\nf. Don&#8217;t forget to reboot.<br \/>\n<strong>ServerSide:<\/strong><br \/>\n\/etc\/ppp\/chap-secret for username &amp; password<br \/>\n\/etc\/pptpd.conf for remoteip<br \/>\n<strong>ClientSide:<\/strong><br \/>\n\/etc\/ppp\/chap-secret for host &amp; username &amp; password<br \/>\n\/etc\/ppp\/peers\/ for tunnel<br \/>\n<strong>For Ease:<\/strong><br \/>\npptpconfig(GUI):Helper to config the pptp client.<br \/>\n<strong>Case Study:<\/strong><br \/>\n202.*.*.200: VPN Server(VPN:192.168.0.1)(Eth0:172.*.17.1)<br \/>\n202.*.*.233: VPN Client(VPN:172.*.0.35)(It&#8217;s mine:()<br \/>\n<strong>What is interesting:<\/strong><br \/>\nGet blocked without the IP assigned by the DHCP Server<br \/>\nSo How to make use of the 172.*.0.35?<br \/>\na.Transfer the DHCP information through the VPN Tunnel(Under Study)<br \/>\nb.iptables &amp; &#8216;ip route&#8217;:<br \/>\niptables -t nat -A PREROUTING -i eth0 -d 172.*.17.1 -j DNAT &#8211;to<br \/>\n172.*.0.35<br \/>\niptables -t nat -A POSTROUTING -s 172.*.0.35 -j SNAT &#8211;to<br \/>\n172.*.17.1<br \/>\n(Client)route add -net 172.*.0.0\/16 dev eth*<br \/>\n<strong>But I Wonder:<\/strong><br \/>\nIs This Still The VPN?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>VPN Server:PPTPD For Linux VPN Client:PPTP Client For L &hellip; <a href=\"https:\/\/blog.axqd.net\/?p=315\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cIs This Still The VPN?\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,10],"tags":[122,159],"class_list":["post-315","post","type-post","status-publish","format-standard","hentry","category-9","category-10","tag-pptpd","tag-vpn"],"_links":{"self":[{"href":"https:\/\/blog.axqd.net\/index.php?rest_route=\/wp\/v2\/posts\/315","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.axqd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.axqd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.axqd.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.axqd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=315"}],"version-history":[{"count":0,"href":"https:\/\/blog.axqd.net\/index.php?rest_route=\/wp\/v2\/posts\/315\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.axqd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.axqd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.axqd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}