정보&강의 EdgeRouter Lite dnsmasq Adblocking 광고제거 기능 설정하기
- 운영자
- 356
- 0
첨부 1
출처 : https://community-experiment.ubnt.com/topic/170060
개요
EdgeMax dnsmasq Blacklist and Adware Blocking uses dynamically updated online lists of flagged adware and malware sites to create redirect lists for dnsmasq. Anytime a flagged address is matched by dnsmasq, it will redirect to a configured black hole IP address, thus preventing access to that address
기능
- Generates configuration files used directly by dnsmasq to redirect dns lookups
- Integrated with the EdgeMax OS CLI
- Any FQDN in the blacklist will force dnsmasq to return the configured dns redirect IP address
호환성
- update-dnsmasq.pl has been tested on the EdgeRouter Lite family of routers, versions v1.7.0-v1.9.1.1
- Since the EdgeOS is a fork and port of Vyatta 6.3, this script could be adapted to work on VyOS and Vyatta derived ports
설치
- To install:
- IMPORTANT, Replace <VERSION> with the downloaded version # and <PATH> with the download link to the desired version!
- upload install_dnsmasq_blklist.v<VERSION>.tgz to your router using
- curl -o /tmp/install_dnsmasq_blklist.v<VERSION>.tgz <COPY DOWNLOAD LINK HERE>
- cd /tmp
- sudo tar zxvf ./install_dnsmasq_blklist.v<VERSION>.tgz
- bash ./install_dnsmasq_blklist.v<VERSION>
- select menu option #1 if installing for the first time
- select menu option #2 to completely remove blacklisting if you have a previous version, then run install again using option #1
삭제
- sudo /tmp/install_dnsmasq_blklist.v<VERSION>
- select option #2
리스트 업데이트 설정
show system task-scheduler
task update_blacklists {
executable {
path /config/scripts/update-dnsmasq.pl
}
interval 1D
}
dnsmasq 데몬 재시작
admin@ubnt$ sudo service dnsmasq restart
리스트 수동 업데이트 설정
admin@ubnt$ sudo /config/scripts/update-dnsmasq.pl
국내적용 광고서버 리스트
- 자동적용 : blacklist > hosts> 에 http://godpeople.or.kr/hosts.txt 추가
- prefix : 127.0.0.1
- 수동적용 sudo vi /etc/dnsmasq.d/hosts.godpeople.blacklist.conf 로 편집 후, sudo service dnsmasq restart 로 재시작
이런 글도 찾아보세요!
댓글 0
권한이 없습니다. 로그인