Skip to main content

Posts

Showing posts from September, 2012

two issue on pptp vpn with windows client

The default settings for setup a pptp vpn on a linux server may be working with windows client. I have found two main issue: 1) the DNS issue The windows client may not use the DNS on vpn server. Need to edit the registry table entry "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Linkage\Bind", move the line \Device\NdisWanIp to the first line of the value. 2)  The ms-chap v2/mppe issue With the issue, you shall found some website is not accessible but tcp connection is OK(like google talk), or some of website are working well but some not. You need to disable the encryption both on client/server setting. For pptp server, you need comment "require-mschap-v2" and "require-mppe-128" in /etc/ppp/pptpd-options. The issue may actually be caused by inconsistent mtu between the windows and linux server. You may check your windows mtu by "netsh interface ipv4 show subinterfaces". Or you may add a line in /etc/ppp/ip-up before the s

virtualbox bridge network with wireless card

I have bridge the network of virtualbox vm with my wireless card, and it may not working, some router found it ip or mac addresses conflict. And I found the following in virtualbox manual: Bridging to a wireless interface is done differently from bridging to a wired interface, because most wireless adapters do not support promiscuous mode. All traffic has to use the MAC address of the host's wireless adapter, and therefore VirtualBox needs to replace the source MAC address in the Ethernet header of an outgoing packet to make sure the reply will be sent to the host interface. When VirtualBox sees an incoming packet with a destination IP address that belongs to one of the virtual machine adapters it replaces the destination MAC address in the Ethernet header with the VM adapter's MAC address and passes it on. VirtualBox examines ARP and DHCP packets in order to learn the IP addresses of virtual machines. So I switch back to wired network card, everything goes well