eibgrad
Part of the Furniture
What would be the best way to stack 4 addresses (say 192.168.81.180, 192.168.81.185, 192.168.81.192, 192.168.81.200)?
Would I just create the 2 lines 4 times (with the addresses), or is there a way to combine the addresses in the 2 lines?
iptables -I INPUT -i br0 -s 192.168.81.180 -p tcp -m multiport --dports 139,445,8200 -m time --timestart 22:00 --timestop 00:00 --weekdays Mon,Tue,Wed,Thu,Fri,Sat,Sun --kerneltz -j REJECT
iptables -I INPUT -i br0 -s 192.168.81.180 -p tcp -m multiport --dports 139,445,8200 -m time --timestart 00:00 --timestop 08:00 --weekdays Mon,Tue,Wed,Thu,Fri,Sat,Sun --kerneltz -j REJECT
Code:
iptables -I INPUT -i br0 -s 192.168.81.180,192.168.81.185,192.168.81.192,192.168.81.202 -p tcp -m multiport --dports 139,445,8200 -m time --timestart 22:00 --timestop 00:00 --weekdays Mon,Tue,Wed,Thu,Fri,Sat,Sun --kerneltz -j REJECT
iptables -I INPUT -i br0 -s 192.168.81.180,192.168.81.185,192.168.81.192,192.168.81.202 -p tcp -m multiport --dports 139,445,8200 -m time --timestart 00:00 --timestop 08:00 --weekdays Mon,Tue,Wed,Thu,Fri,Sat,Sun --kerneltz -j REJECT