Categories
Network UBNT 笔记 路由、设备

Hijack DnsPod HttpDNS

By @sskaje
Link: https://sskaje.me/2019/04/hijack-dnspod-httpdns/


劫持DNS是个很简单的工作,家用路由器基本都自带dnsmasq,直接加解析就行。

之前某次尝试劫持某视频App的广告接口解析到一个空的本地服务器上,发现该App使用了DnsPod的HttpDNS服务,所以传统的DNS劫持方案不好用。而EdgeRouter的DPI功能也没有对外开放墙一般的高级接口,所以这次用NAT来实现。



Hijack DnsPod HttpDNS by @sskaje: https://sskaje.me/2019/04/hijack-dnspod-httpdns/

Incoming search terms:

Categories
Network UBNT 路由、设备

EdgeRouter DNAT for Remote Socks Proxy Server

By @sskaje
Link: https://sskaje.me/2016/06/edgerouter-dnat-remote-socks-proxy-server/

I set up an HAProxy for socks 5 proxy server on my edgerouters, listening on 0.0.0.0:31080, forwarding to proxy server tunneled at 10.99.99.2:31080. You can find it: UBNT VPN + Socks5 代理.

I chose this because of failure on setting destination NAT.

The BAD thing is, HAProxy DOES NOT SUPPORT UDP. If I set foxyproxy resolving names from remote, connections are lost.

I tried many many times, and find out why I got failed setting DNAT.

EdgeRouter DNAT for Remote Socks Proxy Server by @sskaje: https://sskaje.me/2016/06/edgerouter-dnat-remote-socks-proxy-server/