iptables: matching multiple ip addresses
- by Tax
Hi guys,
I am working on a iptables rule to apply after my shorewall script has initialized my firewall. I want a spicific IP (10.0.1.19) address in my lan to be redirected to 10.0.64.1 except if it is going to paypal.
I have the following rule, and that works like a charm
iptables -t nat -A PREROUTING ! -d 1.2.3.4 -s 10.0.1.19 -j DNAT --to 10.0.64.1
My problem is that paypal uses multiple ip addresses, and I am not allowed to have multiple IP-addresses.
https://ppmts.custhelp.com/cgi-bin/ppdts.cfg/php/enduser/std%5Fadp.php?p%5Ffaqid=92
On top of this problem I would like to know how to remove the rule again, without having to restart shorewall.
Kind regards
Tax