1*de922be4SDavid Wang#!/bin/bash 2*de922be4SDavid Wang 3*de922be4SDavid Wangsource="172.18.1.5" 4*de922be4SDavid Wang 5*de922be4SDavid Wangiptables -t raw -I PREROUTING -s "$source" -j LOG --log-prefix "target in raw.prerouting>" 6*de922be4SDavid Wangiptables -t mangle -I PREROUTING -s "$source" -j LOG --log-prefix "target in mangle.prerouting>" 7*de922be4SDavid Wangiptables -t nat -I PREROUTING -s "$source" -j LOG --log-prefix "target in nat.prerouting>" 8*de922be4SDavid Wangiptables -t mangle -I INPUT -s "$source" -j LOG --log-prefix "target in mangle.input>" 9*de922be4SDavid Wangiptables -t filter -I INPUT -s "$source" -j LOG --log-prefix "target in filter.input>" 10*de922be4SDavid Wangiptables -t raw -I OUTPUT -s "$source" -j LOG --log-prefix "target in raw.output>" 11*de922be4SDavid Wangiptables -t mangle -I OUTPUT -s "$source" -j LOG --log-prefix "target in mangle.output>" 12*de922be4SDavid Wangiptables -t nat -I OUTPUT -s "$source" -j LOG --log-prefix "target in nat.output>" 13*de922be4SDavid Wangiptables -t filter -I OUTPUT -s "$source" -j LOG --log-prefix "target in filter.output>" 14*de922be4SDavid Wangiptables -t mangle -I FORWARD -s "$source" -j LOG --log-prefix "target in mangle.forward>" 15*de922be4SDavid Wangiptables -t filter -I FORWARD -s "$source" -j LOG --log-prefix "target in filter.forward>" 16*de922be4SDavid Wangiptables -t mangle -I POSTROUTING -s "$source" -j LOG --log-prefix "target in mangle.postrouting>" 17*de922be4SDavid Wangiptables -t nat -I POSTROUTING -s "$source" -j LOG --log-prefix "target in nat.postrouting>" 18