Quickly add and remove ranges of rules from iptables.
Run ./IPYourTables.
Requires bash.
[t u] port[-endport] [i o] [+ -]
t
tcpu
udpport[-endport]
single or a range of portsi
incomingo
outgoing\+
add (default)\-
remove
t 80 i +
(tcp port 80 incoming add)
u 53 o +
(udp port 53 outgoing add)
t 5900-5910 i +
(tcp ports 5900 thru 5910 incoming add)
t 80 i -
(tcp port 80 incoming remove)
u 53 o -
(udp port 53 outgoing remove)
t 5900-5910 i -
(tcp ports 5900 thru 5910 incoming remove)