| 1 | # This file contains Perl statements that allows additional (useful) forwardings | ||
| 2 | |||
| 3 | # enter forwardings of incoming connections like this: | ||
| 4 | # $B->forward(23=>'192.168.10.35:22'); | ||
| 5 | |||
| 6 | # allow incoming domain and time services to be forwarded to connected LAN(s) | ||
| 7 | $B->iptables(["-A FORWARD -p udp --source-port domain -d $_ -j ACCEPT", | ||
| 8 | "-A FORWARD -p udp --source-port ntp -d $_ -j ACCEPT"] | ||
| 9 | ) foreach map {$B->net($_)} $B->lan_services; | ||
| 10 | |||
| 11 |