IPTables : How to make file for Multiple Destination Address

Anggi Lesmana alesmana2010 at gmail.com
Mon Oct 4 09:24:18 UTC 2010


Dear Ubunters,

I would like to make simple (not long) rule of my iptables
configuration. There is an example below.

-A FORWARD -p tcp -m multiport --dports
119,5000:5200,5150,5101,1638,8000:8002 -m mac --mac-source
00:1F:C6:86:B7:A0 -m comment --comment "ULLA" -j ACCEPT
-A FORWARD -d 98.137.132.14/32 -p tcp -m multiport --dports
80:82,443,5000:5050,5150,5101,1638,8000:8002 -m mac --mac-source
00:1F:C6:86:B7:A0 -m comment --comment "ULLA" -j ACCEPT
-A FORWARD -d 64.14.68.75/32 -p tcp -m multiport --dports
80:82,443,5000:5050,5150,5101,1638,8000:8002 -m mac --mac-source
00:1F:C6:86:B7:A0 -m comment --comment "ULLA" -j ACCEPT
-A FORWARD -d 206.190.60.37/32 -p tcp -m multiport --dports
80:82,443,5000:5050,5150,5101,1638,8000:8002 -m mac --mac-source
00:1F:C6:86:B7:A0 -m comment --comment "ULLA" -j ACCEPT
-A FORWARD -d 68.180.206.184/32 -p tcp -m multiport --dports
80:82,443,5000:5050,5150,5101,1638,8000:8002 -m mac --mac-source
00:1F:C6:86:B7:A0 -m comment --comment "ULLA" -j ACCEPT
-A FORWARD -d 64.14.68.75/32 -p tcp -m multiport --dports
80:82,443,5000:5050,5150,5101,1638,8000:8002 -m mac --mac-source
00:1F:C6:86:B7:A0 -m comment --comment "ULLA" -j ACCEPT
-A FORWARD -d 64.14.68.75/32 -p tcp -m multiport --dports
80:82,443,5000:5050,5150,5101,1638,8000:8002 -m mac --mac-source
00:1F:C6:86:B7:A0 -m comment --comment "ULLA" -j ACCEPT
-A FORWARD -d 64.14.68.75/32 -p tcp -m multiport --dports
80:82,443,5000:5050,5150,5101,1638,8000:8002 -m mac --mac-source
00:1F:C6:86:B7:A0 -m comment --comment "ULLA" -j ACCEPT
-A FORWARD -d 64.14.68.75/32 -p tcp -m multiport --dports
80:82,443,5000:5050,5150,5101,1638,8000:8002 -m mac --mac-source
00:1F:C6:86:B7:A0 -m comment --comment "ULLA" -j ACCEPT
-A FORWARD -d 98.137.132.14/32 -p tcp -m multiport --dports
80:82,443,5000:5050,5150,5101,1638,8000:8002 -m mac --mac-source
00:1F:C6:86:B7:A0 -m comment --comment "ULLA" -j ACCEPT
-A FORWARD -d 98.137.132.14/32 -p tcp -m multiport --dports
80:82,443,5000:5050,5150,5101,1638,8000:8002 -m mac --mac-source
00:1F:C6:86:B7:A0 -m comment --comment "ULLA" -j ACCEPT
-A FORWARD -d 98.137.132.14/32 -p tcp -m multiport --dports
80:82,443,5000:5050,5150,5101,1638,8000:8002 -m mac --mac-source
00:1F:C6:86:B7:A0 -m comment --comment "ULLA" -j ACCEPT
-A FORWARD -d 98.136.112.81/32 -p tcp -m multiport --dports
80:82,443,5000:5050,5150,5101,1638,8000:8002 -m mac --mac-source
00:1F:C6:86:B7:A0 -m comment --comment "ULLA" -j ACCEPT
-A FORWARD -d 124.108.120.31/32 -p tcp -m multiport --dports
80:82,443,5000:5050,5150,5101,1638,8000:8002 -m mac --mac-source
00:1F:C6:86:B7:A0 -m comment --comment "ULLA" -j ACCEPT
-A FORWARD -d 68.180.190.124/32 -p tcp -m multiport --dports
80:82,443,5000:5050,5150,5101,1638,8000:8002 -m mac --mac-source
00:1F:C6:86:B7:A0 -m comment --comment "ULLA" -j ACCEPT

What is it possible if I want to make multiple destination address of
these rule above to moved with a list file that created ?
 If yes, let me know how the rule of this issue ?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20101004/18a0f3ca/attachment.html>


More information about the ubuntu-users mailing list