{"action":"created","issue":{"url":"https://api.github.com/repos/softwaredownload/openwrt-fanqiang/issues/12","labels_url":"https://api.github.com/repos/softwaredownload/openwrt-fanqiang/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/softwaredownload/openwrt-fanqiang/issues/12/comments","events_url":"https://api.github.com/repos/softwaredownload/openwrt-fanqiang/issues/12/events","html_url":"https://github.com/softwaredownload/openwrt-fanqiang/issues/12","id":119350542,"number":12,"title":"这样添加国内ip这样添加可以解决有些某些国内站点走ss而不能正常访问的问题。","user":{"login":"idonknown","id":16067236,"avatar_url":"https://avatars.githubusercontent.com/u/16067236?v=3","gravatar_id":"","url":"https://api.github.com/users/idonknown","html_url":"https://github.com/idonknown","followers_url":"https://api.github.com/users/idonknown/followers","following_url":"https://api.github.com/users/idonknown/following{/other_user}","gists_url":"https://api.github.com/users/idonknown/gists{/gist_id}","starred_url":"https://api.github.com/users/idonknown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idonknown/subscriptions","organizations_url":"https://api.github.com/users/idonknown/orgs","repos_url":"https://api.github.com/users/idonknown/repos","events_url":"https://api.github.com/users/idonknown/events{/privacy}","received_events_url":"https://api.github.com/users/idonknown/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-29T10:21:31Z","updated_at":"2015-12-20T12:43:21Z","closed_at":null,"body":"wget -O- 'http://ftp.apnic.net/apnic/stats/apnic/delegated-a\r\npnic-latest' | awk -F\\| '/CN\\|ipv4/ { printf(\"%s/%d\\n\", $4,\r\n32-log($5)/log(2)) }' > cn_ip\r\n这句命令获得一个apnic上的中国ip列表。\r\n再用下面的命令添加进iptable规则，用的时间有10分钟左右。\r\n# Ignore Asia IP address\r\nfor white_ip in `cat cn_ip`;\r\ndo\r\niptables -t nat -A SHADOWSOCKS_WHITELIST -d \"${white_ip}\" -j\r\n MARK --set-mark 1\r\ndone"},"comment":{"url":"https://api.github.com/repos/softwaredownload/openwrt-fanqiang/issues/comments/166113967","html_url":"https://github.com/softwaredownload/openwrt-fanqiang/issues/12#issuecomment-166113967","issue_url":"https://api.github.com/repos/softwaredownload/openwrt-fanqiang/issues/12","id":166113967,"user":{"login":"softwaredownload","id":1546341,"avatar_url":"https://avatars.githubusercontent.com/u/1546341?v=3","gravatar_id":"","url":"https://api.github.com/users/softwaredownload","html_url":"https://github.com/softwaredownload","followers_url":"https://api.github.com/users/softwaredownload/followers","following_url":"https://api.github.com/users/softwaredownload/following{/other_user}","gists_url":"https://api.github.com/users/softwaredownload/gists{/gist_id}","starred_url":"https://api.github.com/users/softwaredownload/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/softwaredownload/subscriptions","organizations_url":"https://api.github.com/users/softwaredownload/orgs","repos_url":"https://api.github.com/users/softwaredownload/repos","events_url":"https://api.github.com/users/softwaredownload/events{/privacy}","received_events_url":"https://api.github.com/users/softwaredownload/received_events","type":"User","site_admin":false},"created_at":"2015-12-20T12:43:21Z","updated_at":"2015-12-20T12:43:21Z","body":"Could submit a pull request?"}}