EdgeRouter PPtP Server访问本地DNS服务

UBNT EdgeRouter 自带了PPTP Server,典型的配置方法是

官方参考guide: https://help.ubnt.com/hc/en-us/articles/205220840-EdgeMAX-PPTP-VPN-with-local-users-RADIUS 这个案例里,我的路由eth0是LAN口,eth0的IP是,这个配置下我的pptp客户端能正常访问到我的内网的机器。 但是如果我需要把DNS设成,DNS请求就会一直没响应。 路由端抓 UDP 53 的包,可以看到pptp客户端发出的dns请求,但是没有回包。 看了眼/etc/dnsmasq.conf:

man dnsmasq -i, –interface= Listen only on the specified interface(s). Dnsmasq automatically adds the loopback (local) interface to the list of interfaces to use when the –interface option is used. If no –interface or –listen-address options are given … Continue reading “EdgeRouter PPtP Server访问本地DNS服务”

Notes: PPTP/L2TP Server on Ubuntu

From: https://help.ubuntu.com/community/PPTPServer and https://help.ubuntu.com/community/L2TPServer This is an integrated & simplified intro about installing pptp/l2tp server on ubuntu 12.04. Install pptpd, xl2tpd, openswan are needed. ppp should be installed by default, you can apt-get install ppp just for sure. dnsmasq is needed to simplify dns issue. So, just type commands:

Environment Server ip is assigned … Continue reading “Notes: PPTP/L2TP Server on Ubuntu”

Make FTP Active Mode Passive

First thing I should say is about the FTP active/passive mode, or say PORT/PASV mode. We can read the differences from wikipedia or Active FTP vs. Passive FTP, a Definitive Explanation. The two mode indicates who initialise the data connection and the active/passive is used to describe server’s action. Active mode: server create a connection … Continue reading “Make FTP Active Mode Passive”