blib/etc/balance/firewall/02.forward.pl untested

filter: Statementstmt 0.0% 0 / 4 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 4 SCAR -
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