IPTables Firewall Multiple Network Interfaces Question
I have been using the IPtables firewall with Fedora 13 Goddard
Currently, I have an IPTables script in the rc.local file
The script starts like this:
Then I am configuring about 10 external ip addresses like so:
ifconfig eth0:1 18.104.22.168 netmask 255.255.255.199
route add -host 22.214.171.124 dev eth0
ifconfig eth0:2 126.96.36.199 netmask 255.255.255.199
route add -host 188.8.131.52 dev eth0
1) When I had only 2 or 3 ip addresses it used to load fine.
But now that I have 10 ip addresses, on boot up - it doesn't configure all the ip addresses.
I have to open up a shell and type those in manually - then it works fine.
2) If the firewall is unplugged on eth0, it seems to lose the interface settings and I have to drop all rules, re-run the above command, followed by my iptables script.
Is there a way to configure the firewall properly on reboot and ensure that even if the upstream router or the network cable is unplugged, it seamlessly recovers from this event ?
Thank you for your assistance.