Changes

Jump to: navigation, search

BlackBlockGoogle

8 bytes added, 11:46, 27 April 2018
iptsetup.sh
You would do, for example:
* root@OpenWrt:~# ./iptsetup.sh google.com gl 1
* That would create for you add_gl.sh and del_gl.sh in the current working directory.
* Then run ./add_gl.sh and all packets destined to google will be marked with MARK 1
#!/bin/sh
#
## setup iptsetup.sh domain.com name fwmark#
#
IP=`nslookup $1 | grep -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | tail -n1 | cut -d\ -f3`
13
edits

Navigation menu