1) Filter Table
Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.
| // 访问URL地址并返回Body内容字符串 | |
| // 参数信息: | |
| // urlAddr: 访问的URL地址 | |
| // method: 访问方式 | |
| // proxyUri: 代理地址,例如 socks5://127.0.0.1:1080 或 http://127.0.0.1:8080 等 | |
| // 返回值: | |
| // result: 访问结果 | |
| // err: 返回错误信息,nil表示执行成功,数据存放在results中 | |
| func fetchUrl(urlAddr string, proxyUri string, method string, headers map[string]string) (results string,err error) { |
1) Filter Table
Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.