1 # test semi-automatic subchains
2 table filter chain INPUT {
3 proto udp @subchain "my-udp_subchain" {
4 daddr 192.168.1.0/24 ACCEPT;
7 dport (http https) ACCEPT;
8 dport (445 137:139) TARPIT;
11 interface eth1 saddr (1.2.3.4 1.2.3.5 2.3.4.5) @subchain {
18 table nat chain POSTROUTING {
19 outerface ppp0 @subchain {
20 saddr 192.168.1.0/24 MASQUERADE;
22 outerface wlan0 @gotosubchain {
23 saddr 192.168.2.0/24 MASQUERADE;